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 EF objects and sends
of successful operations More...
Protected Member Functions | |
BaseCrudActorWithNotifications (IComponentContext componentContext, IActorRef notificationReceiver) | |
Initializes a new instance of the BaseCrudActorWithNotifications<TContext> class. More... | |
override void | AfterCreate< TObject > (TObject result) |
Method called after successful object creation in database More... | |
override void | AfterDelete< TObject > (TObject deletedObject) |
Method called after successful object removal from database More... | |
override void | AfterUpdate< TObject > (TObject newObject, TObject oldObject) |
Method called after successful object modification in database More... | |
Protected Member Functions inherited from KlusterKite.Data.BaseCrudActor< TContext > | |
BaseCrudActor (IComponentContext componentContext) | |
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 | |
IActorRef | NotificationReceiver [get] |
Gets the reference to actor to receive notifications More... | |
Properties inherited from KlusterKite.Data.BaseCrudActor< TContext > | |
IComponentContext | ComponentContext [get] |
Gets the DI component context More... | |
Generic actor to perform basic crud operation on EF objects and sends
of successful operations
TContext | The database context |
TContext | : | IDisposable |
Definition at line 28 of file BaseCrudActorWithNotifications.cs.
|
protected |
Initializes a new instance of the BaseCrudActorWithNotifications<TContext> class.
componentContext | The component context. |
notificationReceiver | Reference to actor to receive notifications |
Definition at line 40 of file BaseCrudActorWithNotifications.cs.
|
protectedvirtual |
Method called after successful object creation in database
TObject | The type of ef object |
result | Created object |
Reimplemented from KlusterKite.Data.BaseCrudActor< TContext >.
Definition at line 59 of file BaseCrudActorWithNotifications.cs.
|
protectedvirtual |
Method called after successful object removal from database
TObject | The type of ef object |
deletedObject | The removed object |
Reimplemented from KlusterKite.Data.BaseCrudActor< TContext >.
Definition at line 75 of file BaseCrudActorWithNotifications.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 from KlusterKite.Data.BaseCrudActor< TContext >.
Definition at line 96 of file BaseCrudActorWithNotifications.cs.
|
getprotected |
Gets the reference to actor to receive notifications
Definition at line 50 of file BaseCrudActorWithNotifications.cs.