Exemplo n.º 1
0
        /// <summary>
        /// Generate broker launcher internal epr
        /// </summary>
        /// <param name="machineName">machine name</param>
        /// <returns>broker launcher epr</returns>
        internal static string GenerateBrokerLauncherInternalEpr(string endpointPrefix, string machineName)
        {
            if (endpointPrefix.Equals(HttpsPrefix, StringComparison.InvariantCultureIgnoreCase))
            {
                // this is https
                return(endpointPrefix + machineName + "/" + BrokerEndpointPath);
            }

            if (endpointPrefix.Equals(NettcpPrefix, StringComparison.InvariantCultureIgnoreCase))
            {
                return(SoaHelper.GetBrokerLauncherInternalAddress(machineName));
            }

            throw new ArgumentException();
        }