public NonFaultTolerantWorkflowIndexedState( IServiceProvider sp, IIndexedStateConfiguration config ) : base(sp, config) { base.getWorkflowIdFunc = () => Guid.NewGuid(); }
public FaultTolerantWorkflowIndexedState( IServiceProvider sp, IIndexedStateConfiguration config, IGrainFactory grainFactory ) : base(sp, config) { this._grainFactory = grainFactory; base.getWorkflowIdFunc = () => this.GenerateUniqueWorkflowId(); }
public TransactionalIndexedState( IServiceProvider sp, IIndexedStateConfiguration config, IGrainActivationContext context, ITransactionalStateFactory transactionalStateFactory ) : base(sp, config, context) { var transactionalStateConfig = new IndexingTransactionalStateConfiguration(config.StateName, config.StorageName); this.transactionalState = transactionalStateFactory.Create <IndexedGrainStateWrapper <TGrainState> >(transactionalStateConfig); }
public Factory <IGrainActivationContext, object> GetFactory(MethodInfo creator, ParameterInfo parameter, IIndexedStateConfiguration indexingConfig) { // Use generic type args to specialize the generic method and create the factory lambda. var genericCreate = creator.MakeGenericMethod(parameter.ParameterType.GetGenericArguments()); var args = new object[] { indexingConfig }; return(context => this.Create(context, genericCreate, args)); }
public WorkflowIndexedStateBase(IServiceProvider sp, IIndexedStateConfiguration config, IGrainActivationContext context) : base(sp, config, context) { }
public WorkflowIndexedStateBase(IServiceProvider sp, IIndexedStateConfiguration config) { this.ServiceProvider = sp; this.IndexedStateConfig = config; }
public IndexedStateBase(IServiceProvider sp, IIndexedStateConfiguration config, IGrainActivationContext context) { this.ServiceProvider = sp; this.IndexedStateConfig = config; this.grainActivationContext = context; }