KlusterKite
0.0.0
A framework to create scalable and redundant services based on awesome Akka.Net project.
|
Generic actor to perform basic crud operation on data objects More...
Protected Member Functions | |
BaseCrudActor (IComponentContext componentContext) | |
virtual void | AfterCreate< TObject > (TObject result) |
Method called after successful object creation in database More... | |
virtual void | AfterDelete< TObject > (TObject deletedObject) |
Method called after successful object removal from database More... | |
virtual void | AfterUpdate< TObject > (TObject newObject, TObject oldObject) |
Method called after successful object modification in database More... | |
override bool | AroundReceive (Receive receive, object message) |
virtual TObject | BeforeCreate< TObject > (TObject request) |
Method call before object creation in database More... | |
virtual TObject | BeforeDelete< TObject > (TObject oldObject) |
Method call before object removal database More... | |
virtual TObject | BeforeUpdate< TObject > (TObject newObject, TObject oldObject) |
Method called before object modification in database More... | |
abstract TContext | GetContext () |
Gets current data context More... | |
virtual async Task | OnCollectionRequest< TObject, TId > (CollectionRequest< TObject > collectionRequest) |
Process collection requests More... | |
virtual void | OnParcelException (ParcelException message) |
Handling the parcel receive exceptions More... | |
virtual async Task | OnRequest< TObject, TId > (CrudActionMessage< TObject, TId > request) |
Request process method More... | |
virtual TObject | OnSelect< TObject > (TObject result) |
Called on select. Sender will receive this method output. More... | |
virtual async Task< CrudActionResponse< TObject > > | ProcessRequest< TObject, TId > (CrudActionMessage< TObject, TId > request) |
Request process method More... | |
Properties | |
IComponentContext | ComponentContext [get] |
Gets the DI component context More... | |
Generic actor to perform basic crud operation on data objects
TContext | The database context |
TContext | : | IDisposable |
Definition at line 41 of file BaseCrudActor.cs.
|
protected |
Definition at line 55 of file BaseCrudActor.cs.
|
protectedvirtual |
Method called after successful object creation in database
TObject | The type of ef object |
result | Created object |
Reimplemented in KlusterKite.Data.BaseCrudActorWithNotifications< TContext >.
TObject | : | class |
Definition at line 86 of file BaseCrudActor.cs.
|
protectedvirtual |
Method called after successful object removal from database
TObject | The type of ef object |
deletedObject | removed object |
Reimplemented in KlusterKite.Data.BaseCrudActorWithNotifications< TContext >.
TObject | : | class |
Definition at line 98 of file BaseCrudActor.cs.
|
protectedvirtual |
Method called after successful object modification in database
TObject | The type of ef object |
newObject | The new Object. |
oldObject | The old Object. |
Reimplemented in KlusterKite.Data.BaseCrudActorWithNotifications< TContext >.
TObject | : | class |
Definition at line 115 of file BaseCrudActor.cs.
|
protected |
Definition at line 121 of file BaseCrudActor.cs.
|
protectedvirtual |
Method call before object creation in database
TObject | The type of ef object |
request | Object intended to be created |
TObject | : | class |
Definition at line 142 of file BaseCrudActor.cs.
|
protectedvirtual |
Method call before object removal database
TObject | The type of ef object |
oldObject | Object intended to be removed |
TObject | : | class |
Definition at line 156 of file BaseCrudActor.cs.
|
protectedvirtual |
Method called before object modification in database
TObject | The type of ef object |
newObject | The new Object. |
oldObject | The old Object. |
Reimplemented in KlusterKite.NodeManager.NodeManagerActor.
TObject | : | class |
Definition at line 177 of file BaseCrudActor.cs.
|
protectedpure virtual |
Gets current data context
Implemented in KlusterKite.NodeManager.NodeManagerActor, KlusterKite.NodeManager.ConfigurationCheckActor, and KlusterKite.Data.Tests.Mock.TestDataActor.
|
protectedvirtual |
Process collection requests
TObject | The type of ef object |
TId | The type of object identity field |
collectionRequest | Collection request |
TObject | : | class |
Definition at line 200 of file BaseCrudActor.cs.
|
protectedvirtual |
Handling the parcel receive exceptions
message | The parcel receive exception |
Definition at line 280 of file BaseCrudActor.cs.
|
protectedvirtual |
Request process method
TObject | The type of ef object |
TId | The type of object identity field |
request | The action request |
TObject | : | class |
Definition at line 306 of file BaseCrudActor.cs.
|
protectedvirtual |
Called on select. Sender will receive this method output.
TObject | The type of ef object |
result | Selected object from database |
Definition at line 343 of file BaseCrudActor.cs.
|
protectedvirtual |
Request process method
TObject | The type of ef object |
TId | The type of object identity field |
request | The action request |
TObject | : | class |
Definition at line 364 of file BaseCrudActor.cs.
|
getprotected |
Gets the DI component context
Definition at line 77 of file BaseCrudActor.cs.