public Task Consume(ConsumeContext <CommandExample> context) { var message = context.Message; var handler = _messageHandlerFactory.CreateCommandHandler <CommandExample>(); handler.Execute(message); return(Task.CompletedTask); }
public Task Consume(ConsumeContext <CommandExample> context) { var message = context.Message; var handler = _messageHandlerFactory.CreateCommandHandler <CommandExample>(); handler.Execute(message); return(Task.CompletedTask); }