예제 #1
0
 public static ICanAddEndpointOrLoggingOrCorrelationOrCreate <IMessage, ICommand, IEvent, IRequest, IResponse> WithActiveMQSharedConnectionScope <TServiceMessage>(
     this ICanAddEndpoint <IMessage, ICommand, IEvent, IRequest, IResponse> canAddEndpoint,
     string brokerUri, string userName, string password,
     Func <ICanAddEndpoint <IMessage, ICommand, IEvent, IRequest, IResponse>, ICanAddEndpointOrLoggingOrCorrelationOrCreate <IMessage, ICommand, IEvent, IRequest, IResponse> > endPointFactory) where TServiceMessage : class
 {
     return(canAddEndpoint.WithActiveMQSharedConnectionScope(brokerUri, userName, password, endPointFactory));
 }
예제 #2
0
 public static ICanAddEndpointOrLoggingOrCorrelationOrCreate <TMessage, TCommand, TEvent, TRequest, TResponse> WithActiveMQSharedConnectionScope <TMessage, TCommand, TEvent, TRequest, TResponse>(
     this ICanAddEndpoint <TMessage, TCommand, TEvent, TRequest, TResponse> canAddEndpoint,
     string brokerUri,
     Func <ICanAddEndpoint <TMessage, TCommand, TEvent, TRequest, TResponse>, ICanAddEndpointOrLoggingOrCorrelationOrCreate <TMessage, TCommand, TEvent, TRequest, TResponse> > endPointFactory)
     where TMessage : class
     where TCommand : class, TMessage
     where TEvent : class, TMessage
     where TRequest : class, TMessage
     where TResponse : class, TMessage
 {
     return(canAddEndpoint.WithActiveMQSharedConnectionScope(brokerUri, null, null, cf => { }, endPointFactory));
 }