public void Visit <TEvent, TConsumer>(EventConsumerDefinition <TEvent, TConsumer> eventConsumerDefinition)
            where TEvent : class, IEvent
            where TConsumer : IEventConsumer <TEvent>
        {
            var type = typeof(InputMessageChannelController <,>).MakeGenericType(typeof(TEvent), typeof(EmptyResponse));

            this.part.AddType(type.GetTypeInfo());
        }
Ejemplo n.º 2
0
 public void Visit <TEvent, TConsumer>(EventConsumerDefinition <TEvent, TConsumer> eventConsumerDefinition)
     where TEvent : class, IEvent where TConsumer : IEventConsumer <TEvent>
 {
     Guard.NotNull(eventConsumerDefinition, nameof(eventConsumerDefinition));
     if (this.configurator.CanRoute(eventConsumerDefinition.MessageType))
     {
         this.visitor.Visit(eventConsumerDefinition);
     }
 }
Ejemplo n.º 3
0
 public void Visit <TEvent, TConsumer>(EventConsumerDefinition <TEvent, TConsumer> eventConsumerDefinition)
     where TEvent : class, IEvent where TConsumer : IEventConsumer <TEvent>
 {
     this.factory.CreateEventConsumerInitializer(eventConsumerDefinition).Initialize();
 }