protected virtual Task Handle(IDomainEvent domainEvent) { var sagaId = SagaLocator.LocateSaga(domainEvent); var saga = FindOrSpawn(sagaId); saga.Tell(domainEvent, Sender); return(Task.CompletedTask); }
protected virtual bool Handle(IDomainEvent domainEvent) { var sagaId = SagaLocator.LocateSaga(domainEvent); var saga = FindOrSpawn(sagaId); saga.Tell(domainEvent, Sender); return(true); }
public Task Handle(IDomainEvent <TestAggregate, TestAggregateId, TestReceivedEvent> domainEvent) { var sagaId = SagaLocator.LocateSaga(domainEvent); var saga = FindOrSpawn(sagaId); saga.Tell(domainEvent, Sender); return(Task.CompletedTask); }