示例#1
0
        static ObexWebRequest()
        {
            PlatformVerification.ThrowException();

            //register the obex schemes with the WebRequest base method
            ObexWebRequestCreate owrc = new ObexWebRequestCreate();

            WebRequest.RegisterPrefix(SchemeNames.Default, owrc);
            WebRequest.RegisterPrefix(SchemeNames.Push, owrc);
            WebRequest.RegisterPrefix(SchemeNames.Ftp, owrc);
            WebRequest.RegisterPrefix(SchemeNames.Sync, owrc);
        }
示例#2
0
        static ObexWebRequest()
        {
            //register the obex schemes with the WebRequest base method
            ObexWebRequestCreate owrc = new ObexWebRequestCreate();

            WebRequest.RegisterPrefix(SchemeNames.Default, owrc);
            WebRequest.RegisterPrefix(SchemeNames.Push, owrc);
            WebRequest.RegisterPrefix(SchemeNames.Ftp, owrc);
            WebRequest.RegisterPrefix(SchemeNames.Sync, owrc);
            WebRequest.RegisterPrefix(SchemeNames.Pbap, owrc);
            WebRequest.RegisterPrefix(SchemeNames.Map, owrc);
        }