static StackObject *set_certificateHandler_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 2);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityEngine.Networking.CertificateHandler @value = (UnityEngine.Networking.CertificateHandler) typeof(UnityEngine.Networking.CertificateHandler).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Networking.UnityWebRequest instance_of_this_method = (UnityEngine.Networking.UnityWebRequest) typeof(UnityEngine.Networking.UnityWebRequest).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack), (CLR.Utils.Extensions.TypeFlags) 0);
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.certificateHandler = value;

            return(__ret);
        }
示例#2
0
        /** WEBリクエスト作成。
         */
        public static UnityEngine.Networking.UnityWebRequest CreateWebRequest(Fee.File.Path a_uri_path, UnityEngine.Networking.CertificateHandler a_certificate)
        {
            UnityEngine.Networking.UnityWebRequest t_webrequest = null;

            try{
                t_webrequest = UnityEngine.Networking.UnityWebRequest.Get(a_uri_path.GetPath());

                if (a_certificate != null)
                {
                    t_webrequest.certificateHandler = a_certificate;
                }

                UnityEngine.Networking.UnityWebRequestAsyncOperation t_async = t_webrequest.SendWebRequest();

                while (t_async.isDone == false)
                {
                    System.Threading.Thread.Sleep(100);
                }
            }catch (System.Exception t_exception) {
                Tool.EditorLogError(t_exception.Message);
                t_webrequest = null;
            }

            return(t_webrequest);
        }
示例#3
0
        /** WebRequest
         */
        public static UnityEngine.Networking.UnityWebRequest WebRequest(string a_uri, UnityEngine.Networking.CertificateHandler a_certificate)
        {
            UnityEngine.Networking.UnityWebRequest t_webrequest = UnityEngine.Networking.UnityWebRequest.Get(a_uri);

            if (a_certificate != null)
            {
                t_webrequest.certificateHandler = a_certificate;
            }

            UnityEngine.Networking.UnityWebRequestAsyncOperation t_async = t_webrequest.SendWebRequest();

            while (t_async.isDone == false)
            {
                System.Threading.Thread.Sleep(100);
            }

            return(t_webrequest);
        }