KlusterKite
0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
|
Base class to provide basic CRUD operation for REST service More...
Public Member Functions | |
virtual async Task< IActionResult > | Create (TObject data) |
Creates the object More... | |
virtual async Task< IActionResult > | Delete (TId id) |
Removes object More... | |
virtual async Task< IActionResult > | Get (TId id) |
Gets an object by it's id More... | |
virtual async Task< IActionResult > | GetList (int count=100, int skip=0) |
Gets the list of all node templates More... | |
virtual async Task< IActionResult > | Update (TId id, [FromBody] TObject data) |
Updates the object data More... | |
Protected Member Functions | |
BaseRestController (ActorSystem system) | |
Initializes a new instance of the BaseRestController<TObject,TId> class. More... | |
abstract string | GetDbActorProxyPath () |
Gets akka actor path for database worker More... | |
virtual async Task< TObject > | SendRequest (CrudActionMessage< TObject, TId > request) |
Creates request to actor system and accepts response More... | |
Protected Attributes | |
virtual bool | DataListIsLarge => true |
The list of returned objects is large. More... | |
Properties | |
static bool | DataIsLarge [get] |
Gets a value indicating whether the individual data stored in entity is large enough to be send via parcels. More... | |
abstract Expression< Func< TObject, bool > > | DefaultFilter [get] |
Gets the filtering condition More... | |
abstract List< SortingCondition > | DefaultSort [get] |
Gets the sorting function More... | |
virtual TimeSpan | AkkaTimeout [get] |
Gets timeout for actor system requests More... | |
ActorSystem | System [get] |
Gets the actor system More... | |
Base class to provide basic CRUD operation for REST service
TObject | The type of ef object |
TId | The type of object identity field |
TObject | : | class |
Definition at line 46 of file BaseRestController.cs.
|
protected |
Initializes a new instance of the BaseRestController<TObject,TId> class.
system | The system. |
Definition at line 63 of file BaseRestController.cs.
|
virtual |
Creates the object
data | The object data |
Definition at line 114 of file BaseRestController.cs.
|
virtual |
Removes object
id | The object's unique id |
Definition at line 135 of file BaseRestController.cs.
|
virtual |
Gets an object by it's id
id | The object's unique id |
Definition at line 155 of file BaseRestController.cs.
|
protectedpure virtual |
Gets akka actor path for database worker
|
virtual |
Gets the list of all node templates
count | The count of elements to return. |
skip | The count of elements to skip. |
Definition at line 192 of file BaseRestController.cs.
|
protectedvirtual |
Creates request to actor system and accepts response
request | The request to the actor system |
Definition at line 270 of file BaseRestController.cs.
|
virtual |
Updates the object data
id | The object's unique id |
data | The object data |
Definition at line 246 of file BaseRestController.cs.
|
protected |
The list of returned objects is large.
Large data will be sent and received via parcels pipe. This will have impact on performance, but does not have message size limitations. In case of DataIsLarge this property will be ignored
Definition at line 98 of file BaseRestController.cs.
|
getprotected |
Gets timeout for actor system requests
Definition at line 89 of file BaseRestController.cs.
|
staticgetprotected |
Gets a value indicating whether the individual data stored in entity is large enough to be send via parcels.
Definition at line 74 of file BaseRestController.cs.
|
getprotected |
Gets the filtering condition
Definition at line 79 of file BaseRestController.cs.
|
getprotected |
Gets the sorting function
Definition at line 84 of file BaseRestController.cs.
|
getprotected |
Gets the actor system
Definition at line 104 of file BaseRestController.cs.