Beispiel #1
0
    // Token: 0x0600012D RID: 301 RVA: 0x0000E7F8 File Offset: 0x0000C9F8
    public async void method_1()
    {
        Class130.jobject_1 = JObject.Parse(Class158.smethod_9());
        MainWindow.webView_0.LoadHtmlAndWait(this.method_3(Class158.smethod_6()));
        this.method_2();
        Class1.smethod_2();
        await Class1.smethod_8();

        await Class1.smethod_9();

        await Class1.smethod_10();

        MainWindow.captchaQueue_0 = new CaptchaQueue(true);
        Class5.smethod_1(false);
        this.smethod_20(new System.Action(MainWindow.Class28.class28_0.method_1));
        bool isAttached = Debugger.IsAttached;

        Licenser.smethod_5();
        Class130.jobject_0 = JObject.Parse(MainWindow.webView_0.QueueScriptCall("JSON.stringify(window.Countries)").smethod_0());
        new Class60().method_0();
        MainWindow.taskCompletionSource_0.TrySetResult(true);
    }
Beispiel #2
0
        // Token: 0x06000145 RID: 325 RVA: 0x0000EF24 File Offset: 0x0000D124
        void IAsyncStateMachine.MoveNext()
        {
            int        num2;
            int        num        = num2;
            MainWindow mainWindow = this;

            try
            {
                TaskAwaiter taskAwaiter;
                switch (num)
                {
                case 0:
                {
                    TaskAwaiter taskAwaiter2;
                    taskAwaiter  = taskAwaiter2;
                    taskAwaiter2 = default(TaskAwaiter);
                    num2         = -1;
                    break;
                }

                case 1:
                {
                    TaskAwaiter taskAwaiter2;
                    taskAwaiter  = taskAwaiter2;
                    taskAwaiter2 = default(TaskAwaiter);
                    num2         = -1;
                    goto IL_FC;
                }

                case 2:
                {
                    TaskAwaiter taskAwaiter2;
                    taskAwaiter  = taskAwaiter2;
                    taskAwaiter2 = default(TaskAwaiter);
                    num2         = -1;
                    goto IL_156;
                }

                default:
                    Class130.jobject_1 = JObject.Parse(Class158.smethod_9());
                    MainWindow.webView_0.LoadHtmlAndWait(mainWindow.method_3(Class158.smethod_6()));
                    mainWindow.method_2();
                    Class1.smethod_2();
                    taskAwaiter = Class1.smethod_8().GetAwaiter();
                    if (!taskAwaiter.IsCompleted)
                    {
                        num2 = 0;
                        TaskAwaiter taskAwaiter2 = taskAwaiter;
                        this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, MainWindow.Struct24>(ref taskAwaiter, ref this);
                        return;
                    }
                    break;
                }
                taskAwaiter.GetResult();
                taskAwaiter = Class1.smethod_9().GetAwaiter();
                if (!taskAwaiter.IsCompleted)
                {
                    num2 = 1;
                    TaskAwaiter taskAwaiter2 = taskAwaiter;
                    this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, MainWindow.Struct24>(ref taskAwaiter, ref this);
                    return;
                }
IL_FC:
                taskAwaiter.GetResult();
                taskAwaiter = Class1.smethod_10().GetAwaiter();
                if (!taskAwaiter.IsCompleted)
                {
                    num2 = 2;
                    TaskAwaiter taskAwaiter2 = taskAwaiter;
                    this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, MainWindow.Struct24>(ref taskAwaiter, ref this);
                    return;
                }
IL_156:
                taskAwaiter.GetResult();
                MainWindow.captchaQueue_0 = new CaptchaQueue(true);
                Class5.smethod_1(false);
                mainWindow.smethod_20(new System.Action(MainWindow.Class28.class28_0.method_1));
                bool isAttached = Debugger.IsAttached;
                Licenser.smethod_5();
                Class130.jobject_0 = JObject.Parse(MainWindow.webView_0.QueueScriptCall("JSON.stringify(window.Countries)").smethod_0());
                new Class60().method_0();
                MainWindow.taskCompletionSource_0.TrySetResult(true);
            }
            catch (Exception exception)
            {
                num2 = -2;
                this.asyncVoidMethodBuilder_0.SetException(exception);
                return;
            }
            num2 = -2;
            this.asyncVoidMethodBuilder_0.SetResult();
        }