예제 #1
0
        /// <summary>
        /// Initializes a new instance of a <see cref="ServiceBusEndpointInfo"/> object with the specified endpoint name, its location, authentication parameters
        /// and custom relay mode.
        /// </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="endpointType">The type of the endpoint.</param>
        /// <param name="transferMode">The message transfer mode for the endpoint.</param>
        public ServiceBusEndpointInfo(string endpointName, string serviceNamespace, string servicePath, string issuerName, string issuerSecret, ServiceBusEndpointType endpointType, ServiceBusTransferMode transferMode)
            : 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;
            TransferMode     = transferMode;
        }
예제 #2
0
 /// <summary>
 /// Adds a new Windows Azure Service Bus relay endpoint definition into the collection of endpoints.
 /// </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="transferMode">The optional message transfer mode for the endpoint.</param>
 public void AddRelayEndpoint(string endpointName, string serviceNamespace, string servicePath, ServiceBusTransferMode transferMode)
 {
     Add(endpointName, serviceNamespace, servicePath, ServiceBusEndpointType.Relay, transferMode);
 }
예제 #3
0
 /// <summary>
 /// Adds a new Windows Azure Service Bus one-way multicast (event relay) endpoint definition into the collection of endpoints.
 /// </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="transferMode">The optional message transfer mode for the endpoint.</param>
 public void AddEventingEndpoint(string endpointName, string serviceNamespace, string servicePath, string issuerName, string issuerSecret, ServiceBusTransferMode transferMode)
 {
     Add(endpointName, serviceNamespace, servicePath, issuerName, issuerSecret, ServiceBusEndpointType.Eventing, transferMode);
 }
예제 #4
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));
 }