public AzureServiceBusSender(AzureServiceBusEndpoint endpoint, ITransportLogger logger,
                              CancellationToken cancellation)
 {
     _protocol     = endpoint.Protocol;
     _endpoint     = endpoint;
     _logger       = logger;
     _cancellation = cancellation;
     Destination   = endpoint.Uri.ToUri();
 }
        public AzureServiceBusListener(AzureServiceBusEndpoint endpoint, AzureServiceBusTransport transport,
                                       ITransportLogger logger, CancellationToken cancellation)
        {
            _endpoint     = endpoint;
            _transport    = transport;
            _logger       = logger;
            _cancellation = cancellation;


            _protocol = endpoint.Protocol;
            Address   = endpoint.Uri;
        }
        public AzureServiceBusListeningAgent(AzureServiceBusEndpoint endpoint, HandlerGraph handlers,
                                             ITransportLogger logger, CancellationToken cancellation)
        {
            _endpoint     = endpoint;
            _handlers     = handlers;
            _logger       = logger;
            _cancellation = cancellation;


            _protocol = endpoint.Protocol;
            Address   = endpoint.Uri.ToUri();
        }
Exemple #4
0
 /// <summary>
 /// Override the header protocol for outgoing messages at this location. This is mostly
 /// useful for integrating Jasper with non-Jasper applications
 /// </summary>
 /// <param name="protocol"></param>
 /// <returns></returns>
 public AzureServiceBusSubscriberConfiguration Protocol(IAzureServiceBusProtocol protocol)
 {
     _endpoint.Protocol = protocol;
     return(this);
 }
 /// <summary>
 /// Override the header protocol for outgoing messages at this location. This is mostly
 /// useful for integrating Jasper with non-Jasper applications
 /// </summary>
 /// <param name="protocol"></param>
 /// <returns></returns>
 public AzureServiceBusListenerConfiguration Protocol(IAzureServiceBusProtocol protocol)
 {
     endpoint.Protocol = protocol;
     return(this);
 }