Пример #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);
        }