public Task NotifyActivationAsync() { var message = new ActivateCommandForwarding(typeof(TCommand)); Console.WriteLine($"Sending 'ActivateCommandForwarding' for command type '{message.CommandType.FullName}'."); return(_messageEndPoint.SendAsync(message)); }
public Task HandleAsync(ActivateCommandForwarding message) { if (message == null) { throw new ArgumentNullException(nameof(message)); } Console.WriteLine($"Received 'ActivateCommandForwarding' for command type '{message.CommandType.FullName}'."); _remoteCommandDispatcher.NotifyForwardingActive(message.CommandType); return(Task.CompletedTask); }