public void Visit <TCommand, TConsumer>(CommandConsumerDefinition <TCommand, TConsumer> commandConsumerDefinition) where TCommand : class, ICommand where TConsumer : ICommandConsumer <TCommand> { var type = typeof(InputMessageChannelController <,>).MakeGenericType(typeof(TCommand), typeof(EmptyResponse)); this.part.AddType(type.GetTypeInfo()); }
public void Visit <TCommand, TConsumer>(CommandConsumerDefinition <TCommand, TConsumer> commandConsumerDefinition) where TCommand : class, ICommand where TConsumer : ICommandConsumer <TCommand> { Guard.NotNull(commandConsumerDefinition, nameof(commandConsumerDefinition)); if (this.configurator.CanRoute(commandConsumerDefinition.MessageType)) { this.visitor.Visit(commandConsumerDefinition); } }
public void Visit <TCommand, TConsumer>(CommandConsumerDefinition <TCommand, TConsumer> commandConsumerDefinition) where TCommand : class, ICommand where TConsumer : ICommandConsumer <TCommand> { this.factory.CreateCommandConsumerInitializer(commandConsumerDefinition).Initialize(); }