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); }
public EventTransaction(RayGrain <TState, TStateKey> rayGrain) { this.rayGrain = rayGrain; this.eventSourcing = rayGrain.eventSourcing; this.mqPublisher = rayGrain.MQPublisher; this.State = this.Clone(rayGrain.State); }