KlusterKite
0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
|
The base connection using data actors More...
Public Member Functions | |
Connection (ActorSystem actorSystem, string dataActorPath, TimeSpan? timeout, RequestContext context) | |
async Task< MutationResult< TObject > > | Create (TObject newNode) |
async Task< MutationResult< TObject > > | Delete (TId id) |
async Task< QueryResult< TObject > > | Query (Expression< Func< TObject, bool >> filter, IEnumerable< SortingCondition > sort, int? limit, int? offset, ApiRequest apiRequest) |
async Task< MutationResult< TObject > > | Update (TId id, TObject newNode, ApiRequest apiRequest) |
Public Member Functions inherited from KlusterKite.API.Client.INodeConnection< TObject > | |
Task< QueryResult< T > > | Query (Expression< Func< T, bool >> filter, IEnumerable< SortingCondition > sort, int? limit, int? offset, ApiRequest apiRequest) |
Query the datasource for nodes More... | |
Task< MutationResult< T > > | Create (T newNode) |
Creates a new node More... | |
Task< MutationResult< T > > | Update (object id, T newNode, ApiRequest request) |
Updates a node More... | |
Task< MutationResult< T > > | Delete (object id) |
Removes a node from the data store More... | |
Static Protected Member Functions | |
static MutationResult< TObject > | CreateResponse (CrudActionResponse< TObject > response) |
Creates mutation response from actor response More... | |
Properties | |
RequestContext | Context [get] |
Gets the request context More... | |
string | DataActorPath [get] |
Gets the path to the data actor More... | |
ActorSystem | System [get] |
Gets the actor system More... | |
TimeSpan | Timeout [get] |
Gets the request timeout More... | |
The base connection using data actors
TObject | The type of entity |
TId | The type of object id |
TODO: remove TId type parameter and recover it from type data
TObject | : | class | |
TObject | : | IObjectWithId<TId> | |
TObject | : | new() |
Definition at line 37 of file Connection.cs.
KlusterKite.Data.CRUD.Connection< TObject, TId >.Connection | ( | ActorSystem | actorSystem, |
string | dataActorPath, | ||
TimeSpan? | timeout, | ||
RequestContext | context | ||
) |
Definition at line 41 of file Connection.cs.
async Task<MutationResult<TObject> > KlusterKite.Data.CRUD.Connection< TObject, TId >.Create | ( | TObject | newNode | ) |
Definition at line 70 of file Connection.cs.
|
staticprotected |
Creates mutation response from actor response
response | The actor response |
Definition at line 179 of file Connection.cs.
async Task<MutationResult<TObject> > KlusterKite.Data.CRUD.Connection< TObject, TId >.Delete | ( | TId | id | ) |
Definition at line 86 of file Connection.cs.
async Task<QueryResult<TObject> > KlusterKite.Data.CRUD.Connection< TObject, TId >.Query | ( | Expression< Func< TObject, bool >> | filter, |
IEnumerable< SortingCondition > | sort, | ||
int? | limit, | ||
int? | offset, | ||
ApiRequest | apiRequest | ||
) |
Definition at line 102 of file Connection.cs.
async Task<MutationResult<TObject> > KlusterKite.Data.CRUD.Connection< TObject, TId >.Update | ( | TId | id, |
TObject | newNode, | ||
ApiRequest | apiRequest | ||
) |
Definition at line 145 of file Connection.cs.
|
getprotected |
Gets the request context
Definition at line 52 of file Connection.cs.
|
getprotected |
Gets the path to the data actor
Definition at line 57 of file Connection.cs.
|
getprotected |
Gets the actor system
Definition at line 62 of file Connection.cs.
|
getprotected |
Gets the request timeout
Definition at line 67 of file Connection.cs.