예제 #1
0
        public async Task HandleAsync(CourseCompleted @event)
        {
            _logger.LogInformation($"2. Course completed: {@event.CourseId}");
            var command = new SendFeedbackForm(@event.CourseId, @event.UserId);

            _channel.BasicPublish(exchange: "",
                                  routingKey: Extensions.GetCommandQueueName <SendFeedbackForm>(),
                                  basicProperties: null,
                                  body: command.ObjectToByteArray());
        }
 private void ShowPanel_Completed(object sender, object e)
 {
     SendFeedbackForm.Begin();
 }