Skip to content

Instantly share code, notes, and snippets.

@irfan-yusanif
Last active December 2, 2021 08:04
Show Gist options
  • Save irfan-yusanif/56089119986676f62eea769ae6d00671 to your computer and use it in GitHub Desktop.
Save irfan-yusanif/56089119986676f62eea769ae6d00671 to your computer and use it in GitHub Desktop.
Receive message
public class PlaceOrderHandler :
IHandleMessages<PlaceOrder>
{
static readonly ILog log = LogManager.GetLogger<PlaceOrderHandler>();
static readonly Random random = new Random();
public Task Handle(PlaceOrder message, IMessageHandlerContext context)
{
log.Info($"Received PlaceOrder, OrderId = {message.OrderId}");
return Task.CompletedTask;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment