public async Task <IActionResult> DomainEventWithTopic(NewListing domainEvent) { await _messaging.PublishAsync(domainEvent); return(Ok("Domain-Event Published")); }
public void OnExpensivePropertyListed(NewListing domainEvent) { Console.WriteLine(domainEvent.ToIndentedJson()); }