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());
        }
Beispiel #2
0
 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);
     }
 }
Beispiel #3
0
 public void Visit <TCommand, TConsumer>(CommandConsumerDefinition <TCommand, TConsumer> commandConsumerDefinition)
     where TCommand : class, ICommand where TConsumer : ICommandConsumer <TCommand>
 {
     this.factory.CreateCommandConsumerInitializer(commandConsumerDefinition).Initialize();
 }