Пример #1
0
        internal static CurlHandler Create(CurlProto protocol)
        {
            switch (protocol)
            {
            case CurlProto.HTTP:
                return(new CurlHttp());

            default:
                throw new NotSupportedException();
            }
        }
Пример #2
0
 internal static CurlHandler Create(CurlProto protocol)
 {
     switch(protocol)
     {
         case CurlProto.HTTP:
             return new CurlHttp();
             
         default:
             throw new NotSupportedException();
     }
 }