Esempio n. 1
0
        public SagaConclusion Conclude(ISaga saga)
        {
            var conclusion = new SagaConclusion();

            try
            {
                saga.Conclude();
                saga.SaveUncommittedEventsToEventStore(_eventStore);
                _librarian.Close(saga);
            } catch (Exception ex)
            {
                conclusion.Exception = ex;
            }

            return(conclusion);
        }