public TransactionCommitter( ITransactionCommitterConfiguration config, IGrainContextAccessor contextAccessor, ITransactionDataCopier <OperationState> copier, IGrainRuntime grainRuntime, ILogger <TransactionCommitter <TService> > logger) { this.config = config; this.context = contextAccessor.GrainContext; this.copier = copier; this.grainRuntime = grainRuntime; this.logger = logger; this.activationLifetime = new ActivationLifetime(this.context); }
public TransactionCommitter( ITransactionCommitterConfiguration config, IGrainActivationContext context, ITransactionDataCopier <OperationState> copier, IGrainRuntime grainRuntime, ILoggerFactory loggerFactory) { this.config = config; this.context = context; this.copier = copier; this.grainRuntime = grainRuntime; this.loggerFactory = loggerFactory; this.activationLifetime = new ActivationLifetime(this.context); }
public TransactionalState( TransactionalStateConfiguration transactionalStateConfiguration, IGrainContextAccessor contextAccessor, ITransactionDataCopier <TState> copier, IGrainRuntime grainRuntime, ILogger <TransactionalState <TState> > logger) { this.config = transactionalStateConfiguration; this.context = contextAccessor.GrainContext; this.copier = copier; this.grainRuntime = grainRuntime; this.logger = logger; this.copiers = new Dictionary <Type, object>(); this.copiers.Add(typeof(TState), copier); this.activationLifetime = new ActivationLifetime(this.context); }