Пример #1
0
        public Task <SagaFindResult <MySagaData> > FindAsync(EndSagaEvent message)
        {
            var data = db.SingleOrDefault(d => d.Id == message.Id.Value);

            return(Task.FromResult(new SagaFindResult <MySagaData>(data)));
        }
Пример #2
0
 public Task HandleAsync(EndSagaEvent message, CancellationToken cancellationToken = default(CancellationToken))
 {
     Data.HasEnded = true;
     return(Task.CompletedTask);
 }