示例#1
0
        public void InstallUnityPackage()
        {
            // ISSUE: object of a compiler-generated type is created
            // ISSUE: variable of a compiler-generated type
            PurchasingAccess.\u003CInstallUnityPackage\u003Ec__AnonStoreyB8 packageCAnonStoreyB8 = new PurchasingAccess.\u003CInstallUnityPackage\u003Ec__AnonStoreyB8();
            // ISSUE: reference to a compiler-generated field
            packageCAnonStoreyB8.\u003C\u003Ef__this = this;
            if (this.m_InstallInProgress)
            {
                return;
            }
            // ISSUE: reference to a compiler-generated field
            packageCAnonStoreyB8.originalCallback = ServicePointManager.ServerCertificateValidationCallback;
            if (Application.platform != RuntimePlatform.OSXEditor)
            {
                ServicePointManager.ServerCertificateValidationCallback = (RemoteCertificateValidationCallback)((a, b, c, d) => true);
            }
            this.m_InstallInProgress = true;
            // ISSUE: reference to a compiler-generated field
            packageCAnonStoreyB8.location = FileUtil.GetUniqueTempPathInProject();
            // ISSUE: reference to a compiler-generated field
            // ISSUE: reference to a compiler-generated field
            packageCAnonStoreyB8.location = Path.ChangeExtension(packageCAnonStoreyB8.location, ".unitypackage");
            WebClient webClient = new WebClient();

            // ISSUE: reference to a compiler-generated method
            webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(packageCAnonStoreyB8.\u003C\u003Em__227);
            // ISSUE: reference to a compiler-generated field
            webClient.DownloadFileAsync(PurchasingAccess.kPackageUri, packageCAnonStoreyB8.location);
        }
 public void InstallUnityPackage()
 {
   // ISSUE: object of a compiler-generated type is created
   // ISSUE: variable of a compiler-generated type
   PurchasingAccess.\u003CInstallUnityPackage\u003Ec__AnonStoreyB8 packageCAnonStoreyB8 = new PurchasingAccess.\u003CInstallUnityPackage\u003Ec__AnonStoreyB8();
   // ISSUE: reference to a compiler-generated field
   packageCAnonStoreyB8.\u003C\u003Ef__this = this;
   if (this.m_InstallInProgress)
     return;
   // ISSUE: reference to a compiler-generated field
   packageCAnonStoreyB8.originalCallback = ServicePointManager.ServerCertificateValidationCallback;
   if (Application.platform != RuntimePlatform.OSXEditor)
     ServicePointManager.ServerCertificateValidationCallback = (RemoteCertificateValidationCallback) ((a, b, c, d) => true);
   this.m_InstallInProgress = true;
   // ISSUE: reference to a compiler-generated field
   packageCAnonStoreyB8.location = FileUtil.GetUniqueTempPathInProject();
   // ISSUE: reference to a compiler-generated field
   // ISSUE: reference to a compiler-generated field
   packageCAnonStoreyB8.location = Path.ChangeExtension(packageCAnonStoreyB8.location, ".unitypackage");
   WebClient webClient = new WebClient();
   // ISSUE: reference to a compiler-generated method
   webClient.DownloadFileCompleted += new AsyncCompletedEventHandler(packageCAnonStoreyB8.\u003C\u003Em__227);
   // ISSUE: reference to a compiler-generated field
   webClient.DownloadFileAsync(PurchasingAccess.kPackageUri, packageCAnonStoreyB8.location);
 }