예제 #1
0
        public static async Task SendAsync <TCommand>(this ConsumeContext context, TCommand command) where TCommand : class, new()
        {
            var sendPoint = await context.GetSendEndpointAsync <TCommand>();

            await sendPoint.Send(command);
        }