protected Task SaveSaga <T>(T saga) where T : IContainSagaData { SagaCorrelationProperty correlationProperty = null; if (saga.GetType() == typeof(SagaWithUniqueProperty)) { correlationProperty = new SagaCorrelationProperty("UniqueString", String.Empty); } return(_sagaPersister.Save(saga, correlationProperty, null, null)); }
protected void SaveSaga <T>(T saga) where T : IContainSagaData { _sagaPersister.Save(saga); }