Inheritance: IDisposable
Beispiel #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;
 }
Beispiel #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);
 }
Beispiel #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;
 }
Beispiel #4
0
 public UnityWebRequest(string url, string method, DownloadHandler downloadHandler, UploadHandler uploadHandler)
 {
 }