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();
                }
            }
        }
Exemple #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();
         }
     }
 }
Exemple #3
0
 static int QPYX_Dispose_YXQP(IntPtr L_YXQP)
 {
     try
     {
         ToLua.CheckArgsCount(L_YXQP, 1);
         UnityEngine.Networking.DownloadHandler QPYX_obj_YXQP = (UnityEngine.Networking.DownloadHandler)ToLua.CheckObject <UnityEngine.Networking.DownloadHandler>(L_YXQP, 1);
         QPYX_obj_YXQP.Dispose();
         return(0);
     }
     catch (Exception e_YXQP)                {
         return(LuaDLL.toluaL_exception(L_YXQP, e_YXQP));
     }
 }
 static int Dispose(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         UnityEngine.Networking.DownloadHandler obj = (UnityEngine.Networking.DownloadHandler)ToLua.CheckObject <UnityEngine.Networking.DownloadHandler>(L, 1);
         obj.Dispose();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Exemple #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();
         }
     }
 }
 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();
                }
            }
        }