public async Task PublishDomainEventFromMemory() { await PublishUserCreatedDomainEventCase.PublishDomainEvent(this); }
public async Task PublishDomainEventFromRabbitMq() { await PublishUserCreatedDomainEventCase.PublishDomainEvent(GetRequiredService <IEventBus>(), GetRequiredService <PublishUserCreatedDomainEvent>(), 2_500); }
public async Task PublishDomainEventFromRabbitMq() { await Task.Delay(5_000); await PublishUserCreatedDomainEventCase.PublishDomainEvent(this); }