public SagaPersistenceBehavior(ISagaPersister persister, ISagaIdGenerator sagaIdGenerator, ICancelDeferredMessages timeoutCancellation, SagaMetadataCollection sagaMetadataCollection) { this.sagaIdGenerator = sagaIdGenerator; sagaPersister = persister; this.timeoutCancellation = timeoutCancellation; this.sagaMetadataCollection = sagaMetadataCollection; }
public TestingSagaDataPersister(ISagaPersister realPersister, IInboxStore realInbox, char threadId, Func <char, bool, Task> getBarrier) { this.realPersister = realPersister; this.realInbox = realInbox; this.threadId = threadId; this.getBarrier = getBarrier; }
public void DestroySagaPersisterContext() { SagaPersister = null; SessionFactory.Dispose(); SessionFactory = null; DeleteFile(); }
public SearcherPluginUpdatedProfileInitializationSaga(IEntityTypeProvider entityTypeProvider, IPluginContext pluginContext, ISagaPersister sagaPersister, IProfileReadonly profile, IDocumentIndexProvider documentIndexProvider, IActivityLogger log) { _entityTypeProvider = entityTypeProvider; _pluginContext = pluginContext; _sagaPersister = sagaPersister; _profile = profile; _documentIndexProvider = documentIndexProvider; _log = log; }
public IndexExistingEntitiesSaga(IEntityIndexer entityIndexer, ISagaPersister sagaPersister, IEntityTypeProvider entityTypesProvider, IDocumentIndexProvider documentIndexProvider, IPluginContext pluginContext, IActivityLogger logger) { _entityIndexer = entityIndexer; _sagaPersister = sagaPersister; _entityTypesProvider = entityTypesProvider; _documentIndexProvider = documentIndexProvider; _pluginContext = pluginContext; _logger = logger; }
public SagaManager(ISagaPersister sagaPersister, ITokenStore tokenStore, IOutboxStore outboxStore, ITransientMessageStateStore transientMessageStateStore, IDispatchMessages dispatcher) { this.sagaPersister = sagaPersister; this.tokenStore = tokenStore; this.dispatcher = dispatcher; this.outboxStore = outboxStore; this.transientMessageStateStore = transientMessageStateStore; }
public SagaOrchestrator(ISagaPersister sagaPersister, ISagaInitializer sagaInitializer, ISagaOptionsProvider sagaOptionsProvider, IBrokeredMessageDispatcher brokeredMessageDispatcher) { _sagaPersister = sagaPersister ?? throw new ArgumentNullException(nameof(sagaPersister)); _sagaInitializer = sagaInitializer ?? throw new ArgumentNullException(nameof(sagaInitializer)); _sagaOptionsProvider = sagaOptionsProvider ?? throw new ArgumentNullException(nameof(sagaOptionsProvider)); _brokeredMessageDispatcher = brokeredMessageDispatcher ?? throw new ArgumentNullException(nameof(brokeredMessageDispatcher)); }
public virtual void SetupContext() { var camelCasePack = new ConventionPack { new CamelCaseElementNameConvention() }; ConventionRegistry.Register("CamelCase", camelCasePack, type => true); _camelCaseConventionSet = true; var connectionString = AppConfig.MongoDB; _client = new MongoClient(connectionString); _database = _client.GetDatabase(_databaseName); _repo = new MongoDbSagaRepository(_database); _sagaPersister = new SagaPersister(_repo); }
public virtual void SetupContext() { var camelCasePack = new ConventionPack { new CamelCaseElementNameConvention() }; ConventionRegistry.Register("CamelCase", camelCasePack, type => true); camelCaseConventionSet = true; var connectionString = ConfigurationManager.ConnectionStrings["MongoDB"].ConnectionString; _client = new MongoClient(connectionString); _database = _client.GetServer().GetDatabase("Test_" + DateTime.Now.Ticks.ToString(CultureInfo.InvariantCulture)); _repo = new MongoDbRepository(_database); _sagaPersister = new MongoDbSagaPersistence(_repo); }
public TestingSagaDataPersister(Func <string, Task> barrier, ISagaPersister impl) { this.barrier = barrier; this.impl = impl; }
public IContainSagaData Load(ISagaPersister persister, string sagaId) { return(persister.Get <T>(Guid.Parse(sagaId))); }
public SagaManager(ISagaPersister sagaPersister, IOutboxStore outboxStore, IDispatchMessages dispatcher) { this.sagaPersister = sagaPersister; this.outboxStore = outboxStore; this.dispatcher = dispatcher; }
public SagaManager(ISagaPersister sagaPersister, ITokenStore tokenStore, IDispatchMessages dispatcher) { this.sagaPersister = sagaPersister; this.tokenStore = tokenStore; this.dispatcher = dispatcher; }
public HeaderPropertySagaFinder(ISagaPersister persister) { this.persister = persister; }
public SagaManager(ISagaPersister sagaPersister, IInboxStore inboxStore, IDispatchMessages dispatcher) { this.sagaPersister = sagaPersister; this.inboxStore = inboxStore; this.dispatcher = dispatcher; }
public SagaManager(ISagaPersister persister, IDispatchMessages dispatcher) { this.persister = persister; this.dispatcher = dispatcher; }
public SagaPersistenceBehavior(ISagaPersister persister, ISagaIdGenerator sagaIdGenerator, SagaMetadataCollection sagaMetadataCollection) { this.sagaIdGenerator = sagaIdGenerator; sagaPersister = persister; this.sagaMetadataCollection = sagaMetadataCollection; }
public SagaServices(ISagaPersister sagaPersister, IActivityLogger logger, IStorageRepository storageRepository) { _sagaPersister = sagaPersister; _logger = logger; _storageRepository = storageRepository; }
public void SetupSagaPersisterContext() { CurrentSessionContext = new ThreadStaticCurrentSessionContext(); SessionFactory = new HostedServerSessionFactory(CurrentSessionContext, DbFileName); SagaPersister = new Db4oSagaPersister(SessionFactory); }
public CustomFinder(Context testContext, ISagaPersister sagaPersister) { this.testContext = testContext; this.sagaPersister = sagaPersister; }
public async Task <IContainSagaData> Load(ISagaPersister persister, string sagaId, SynchronizedStorageSession storageSession, ContextBag context) { return(await persister.Get <T>(Guid.Parse(sagaId), storageSession, context).ConfigureAwait(false)); }
public PropertySagaFinder(ISagaPersister sagaPersister) { this.sagaPersister = sagaPersister; }