public async Task Handle(Request message, IMessageHandlerContext context) { await service.ExpandTheGalaxy(); await context.Reply(new Response { TheCorrellationId = message.TheCorrellationId }); }
public async Task Handle(DoTask message, IMessageHandlerContext context) { await service.ExpandTheGalaxy(); await context.Send(new Request { TheCorrellationId = message.TheCorrellationId }); }