Esempio n. 1
0
        public Task <SagaFindResult <MySagaData> > FindAsync(StartSagaEvent message)
        {
            var data = db.SingleOrDefault(d => d.Id == message.Id.Value);

            return(Task.FromResult(new SagaFindResult <MySagaData>(data)));
        }
Esempio n. 2
0
 public Task HandleAsync(StartSagaEvent message, CancellationToken cancellationToken = default(CancellationToken))
 {
     Data.HasEnded = false;
     return(Task.CompletedTask);
 }