Inheritance: IDisposable
示例#1
0
 public UnityWebRequest(string url, string method, DownloadHandler downloadHandler, UploadHandler uploadHandler)
 {
     this.InternalCreate();
     this.InternalSetDefaults();
     this.url = url;
     this.method = method;
     this.downloadHandler = downloadHandler;
     this.uploadHandler = uploadHandler;
 }
示例#2
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);
 }
示例#3
0
 public UnityWebRequest(string url, string method, DownloadHandler downloadHandler, UploadHandler uploadHandler)
 {
     this.InternalCreate();
     this.InternalSetDefaults();
     this.url             = url;
     this.method          = method;
     this.downloadHandler = downloadHandler;
     this.uploadHandler   = uploadHandler;
 }
示例#4
0
 public UnityWebRequest(string url, string method, DownloadHandler downloadHandler, UploadHandler uploadHandler)
 {
 }