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(); }
/// <summary> /// Deletes all existing sagas from the saga store. /// </summary> public void Purge() { sagaStore.Purge(); memoryCache.Trim(100); }
/// <summary> /// Deletes all existing sagas from the saga store. /// </summary> public void Purge() { sagaStore.Purge(); statistics.IncrementDeleteCount(); }
/// <summary> /// Deletes all existing sagas from the saga store. /// </summary> public void Purge() { sagaStore.Purge(); }