public Task <SagaFindResult <MySagaData> > FindAsync(StartSagaEvent message) { var data = db.SingleOrDefault(d => d.Id == message.Id.Value); return(Task.FromResult(new SagaFindResult <MySagaData>(data))); }
public Task HandleAsync(StartSagaEvent message, CancellationToken cancellationToken = default(CancellationToken)) { Data.HasEnded = false; return(Task.CompletedTask); }