protected UsingInitializedSagaStore()
 {
     SagaId = GuidStrategy.NewGuid();
     SagaContext = new SagaContext(typeof(FakeSaga), SagaId, new FakeEvent());
     TypeLocator.Setup(mock => mock.GetTypes(It.IsAny<Func<Type, Boolean>>())).Returns(new[] { typeof(FakeSaga) });
     SagaStore = new SqlSagaStore(Dialect, Serializer, TypeLocator.Object);
     SagaStore.Purge();
 }
 protected UsingInitializedSagaStore()
 {
     SagaId      = GuidStrategy.NewGuid();
     SagaContext = new SagaContext(typeof(FakeSaga), SagaId, new FakeEvent());
     TypeLocator.Setup(mock => mock.GetTypes(It.IsAny <Func <Type, Boolean> >())).Returns(new[] { typeof(FakeSaga) });
     SagaStore = new SqlSagaStore(Dialect, Serializer, TypeLocator.Object);
     SagaStore.Purge();
 }
 public void Dispose()
 {
     SagaContext.Dispose();
     SagaStore.Purge();
 }
示例#4
0
 /// <summary>
 /// Deletes all existing sagas from the saga store.
 /// </summary>
 public void Purge()
 {
     sagaStore.Purge();
     memoryCache.Trim(100);
 }
示例#5
0
        /// <summary>
        /// Deletes all existing sagas from the saga store.
        /// </summary>
        public void Purge()
        {
            sagaStore.Purge();

            statistics.IncrementDeleteCount();
        }
示例#6
0
 /// <summary>
 /// Deletes all existing sagas from the saga store.
 /// </summary>
 public void Purge()
 {
     sagaStore.Purge();
 }