public MassTransitTriggerListener(IMassTransitListenerFactory listenerFactory,
                                   string busName,
                                   string queueName,
                                   TriggerParameterMode triggerParameterMode,
                                   SessionUsage sessionUsage,
                                   ITriggeredFunctionExecutor contextExecutor)
 {
     BusControl = listenerFactory.GetListener <TMessage>(busName, queueName, triggerParameterMode, sessionUsage, contextExecutor);
 }
 public MassTransitTriggerBinding(IMassTransitListenerFactory listenerFactory, string busName, string queueName, TriggerParameterMode triggerParameterMode, SessionUsage sessionUsage, ParameterInfo parameter)
 {
     MassTransitListenerFactory = listenerFactory;
     BusName              = busName;
     QueueName            = queueName;
     TriggerParameterMode = triggerParameterMode;
     Parameter            = parameter;
     SessionUsage         = sessionUsage;
     _bindingDataContract = GetBindingDataContract(parameter);
 }
 public MassTransitTriggerBinding(IMassTransitListenerFactory listenerFactory,
                                  string busName,
                                  string queueName,
                                  TriggerParameterMode triggerParameterMode,
                                  SessionUsage sessionUsage,
                                  ParameterInfo parameterInfo)
 {
     MassTransitListenerFactory = listenerFactory;
     BusName              = busName;
     QueueName            = queueName;
     TriggerParameterMode = triggerParameterMode;
     ParameterInfo        = parameterInfo;
     SessionUsage         = sessionUsage;
     _bindingDataContract = new Dictionary <string, Type>();
 }
Beispiel #4
0
 private static MassTransitTriggerBinding <TMessage> BuildBinding <TMessage>(
     IMassTransitListenerFactory listenerFactory, string busName, string queueName, TriggerParameterMode triggerParameterMode, SessionUsage sessionUsage, ParameterInfo parameter)
     where TMessage : class
 {
     return(new MassTransitTriggerBinding <TMessage>(listenerFactory, busName, queueName, triggerParameterMode, sessionUsage, parameter));
 }