Exemplo n.º 1
0
 public EventTransaction(RayGrain <TState, TStateKey> rayGrain, IServiceProvider serviceProvider, IEventSourcing <TState, TStateKey> eventSourcing)
 {
     this.rayGrain      = rayGrain;
     this.serializer    = serviceProvider.GetRequiredServiceByName <ISerializer>(SerializationType.JsonUTF8);
     this.eventSourcing = eventSourcing;
     this.State         = this.Clone(rayGrain.State);
 }
Exemplo n.º 2
0
 public EventTransaction(RayGrain <TState, TStateKey> rayGrain)
 {
     this.rayGrain      = rayGrain;
     this.eventSourcing = rayGrain.eventSourcing;
     this.mqPublisher   = rayGrain.MQPublisher;
     this.State         = this.Clone(rayGrain.State);
 }