Example #1
0
        public ServiceBusEndpointInfo(string endpointName, string serviceNamespace, string servicePath, string issuerName, string issuerSecret, ServiceBusEndpointType endpointType)
            : this()
        {
            Guard.ArgumentNotNullOrEmptyString(endpointName, "endpointName");
            Guard.ArgumentNotNullOrEmptyString(serviceNamespace, "serviceNamespace");
            Guard.ArgumentNotNullOrEmptyString(servicePath, "servicePath");

            Name             = endpointName;
            ServiceNamespace = serviceNamespace;
            ServicePath      = servicePath;
            IssuerName       = issuerName;
            IssuerSecret     = issuerSecret;
            EndpointType     = endpointType;
        }
Example #2
0
 /// <summary>
 ///  Adds a new Windows Azure Service Bus endpoint definition into the collection of endpoints.
 ///  Allows specifying the desired relay mode as well as endpoint-specific security credentials in a form of issuer name and secret.
 /// </summary>
 /// <param name="endpointName">The unique name under which the endpoint definition will be registered in the configuration.</param>
 /// <param name="serviceNamespace">The service namespace name used by the endpoint.</param>
 /// <param name="servicePath">The service path used by the endpoint.</param>
 /// <param name="issuerName">The issuer name.</param>
 /// <param name="issuerSecret">The issuer secret.</param>
 /// <param name="relayMode">The connection mode for the endpoint.</param>
 /// <param name="transferMode">The optional message transfer mode for the endpoint.</param>
 public void Add(string endpointName, string serviceNamespace, string servicePath, string issuerName, string issuerSecret, ServiceBusEndpointType relayMode, ServiceBusTransferMode transferMode = ServiceBusTransferMode.Buffered)
 {
     InternalAdd(new ServiceBusEndpointInfo(endpointName, serviceNamespace, servicePath, issuerName, issuerSecret, relayMode, transferMode));
 }