System.Net.ServiceNameStore.BuildSimpleServiceName C# (CSharp) 메소드

BuildSimpleServiceName() 공개 메소드

public BuildSimpleServiceName ( string uriPrefix ) : string
uriPrefix string
리턴 string
        public string BuildSimpleServiceName(string uriPrefix)
        {
            string hostname = ExtractHostname(uriPrefix, false);

            if (hostname != null)
            {
                return "HTTP/" + hostname;
            }
            else
            {
                return null;
            }
        }