Using the Mediator pattern helps you to reduce coupling and to isolate the concerns of the requested work, while automatically connecting to the handler that performs that workin this case, to command handlers. Already on GitHub? By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. Please make sure to define the handler as a public Class. But since the Ordering business process is a bit more complex and, in our case, it actually starts in the Basket microservice, this action of submitting the CreateOrderCommand object is performed from an integration-event handler named UserCheckoutAcceptedIntegrationEventHandler instead of a simple WebAPI controller called from the client App as in the previous simpler example. Med vnlig hlsningar /Kind RegardsMehrdad Zandiwebsite: You signed in with another tab or window. But you could add other custom behaviors, too. Publish returns only Task, there's nothing to assert in the return value. When I debugged deeper, I noticed something is wrong with the ILogger, then I used ILogger like that ILogger
