Пример #1
0
        public static string FormatQueueName(string host, string queue)
        {
            string str = host.ToUpper();

            if (HostName.GetDnsHostName().ToUpper().Equals(str))
            {
                return(string.Format(@".\Private$\{0}", queue));
            }
            return(string.Format(@"FormatName:DIRECT=OS:{0}\Private$\{1}", str, queue));
        }