private void DisposeHandlers()
        {
            if (disposeDownloadHandlerOnDispose)
            {
                DownloadHandler dh = this.downloadHandler;
                if (dh != null)
                {
                    dh.Dispose();
                }
            }

            if (disposeUploadHandlerOnDispose)
            {
                UploadHandler uh = this.uploadHandler;
                if (uh != null)
                {
                    uh.Dispose();
                }
            }

            if (disposeCertificateHandlerOnDispose)
            {
                CertificateHandler ch = this.certificateHandler;
                if (ch != null)
                {
                    ch.Dispose();
                }
            }
        }
Ejemplo n.º 2
0
 private void DisposeHandlers()
 {
     if (this.disposeDownloadHandlerOnDispose)
     {
         DownloadHandler downloadHandler = this.downloadHandler;
         if (downloadHandler != null)
         {
             downloadHandler.Dispose();
         }
     }
     if (this.disposeUploadHandlerOnDispose)
     {
         UploadHandler uploadHandler = this.uploadHandler;
         if (uploadHandler != null)
         {
             uploadHandler.Dispose();
         }
     }
     if (this.disposeCertificateHandlerOnDispose)
     {
         CertificateHandler certificateHandler = this.certificateHandler;
         if (certificateHandler != null)
         {
             certificateHandler.Dispose();
         }
     }
 }
Ejemplo n.º 3
0
 static int QPYX_Dispose_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 1);
         UnityEngine.Networking.UploadHandler QPYX_obj_YXQP = (UnityEngine.Networking.UploadHandler)ToLua.CheckObject <UnityEngine.Networking.UploadHandler>(L_YXQP, 1);
         QPYX_obj_YXQP.Dispose();
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
Ejemplo n.º 4
0
 static int Dispose(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.Networking.UploadHandler obj = (UnityEngine.Networking.UploadHandler)ToLua.CheckObject <UnityEngine.Networking.UploadHandler>(L, 1);
         obj.Dispose();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Ejemplo n.º 5
0
 private void DisposeHandlers()
 {
     if (this.disposeDownloadHandlerOnDispose)
     {
         DownloadHandler downloadHandler = this.GetDownloadHandler();
         if (downloadHandler != null)
         {
             downloadHandler.Dispose();
         }
     }
     if (this.disposeUploadHandlerOnDispose)
     {
         UploadHandler uploadHandler = this.GetUploadHandler();
         if (uploadHandler != null)
         {
             uploadHandler.Dispose();
         }
     }
 }
Ejemplo n.º 6
0
 public void Dispose()
 {
     if (this.disposeDownloadHandlerOnDispose)
     {
         DownloadHandler downloadHandler = this.downloadHandler;
         if (downloadHandler != null)
         {
             downloadHandler.Dispose();
         }
     }
     if (this.disposeUploadHandlerOnDispose)
     {
         UploadHandler uploadHandler = this.uploadHandler;
         if (uploadHandler != null)
         {
             uploadHandler.Dispose();
         }
     }
     this.InternalDestroy();
     GC.SuppressFinalize(this);
 }
        private void DisposeHandlers()
        {
            bool disposeDownloadHandlerOnDispose = this.disposeDownloadHandlerOnDispose;

            if (disposeDownloadHandlerOnDispose)
            {
                DownloadHandler downloadHandler = this.downloadHandler;
                bool            flag            = downloadHandler != null;
                if (flag)
                {
                    downloadHandler.Dispose();
                }
            }
            bool disposeUploadHandlerOnDispose = this.disposeUploadHandlerOnDispose;

            if (disposeUploadHandlerOnDispose)
            {
                UploadHandler uploadHandler = this.uploadHandler;
                bool          flag2         = uploadHandler != null;
                if (flag2)
                {
                    uploadHandler.Dispose();
                }
            }
            bool disposeCertificateHandlerOnDispose = this.disposeCertificateHandlerOnDispose;

            if (disposeCertificateHandlerOnDispose)
            {
                CertificateHandler certificateHandler = this.certificateHandler;
                bool flag3 = certificateHandler != null;
                if (flag3)
                {
                    certificateHandler.Dispose();
                }
            }
        }