Beispiel #1
0
    internal void method_5(Class44 A_0)
    {
        int num   = 0;
        int count = base.Count;

        while (num < count)
        {
            DocumentObject obj2 = (base.InnerList[num] as DocumentObject).Clone();
            if (obj2 != null)
            {
                A_0.method_8().Add(obj2);
            }
            num++;
        }
    }
Beispiel #2
0
        // Token: 0x060001E2 RID: 482 RVA: 0x00012048 File Offset: 0x00010248
        void IAsyncStateMachine.MoveNext()
        {
            int     num2;
            int     num    = num2;
            Class44 @class = this;

            try
            {
                try
                {
                    TaskAwaiter taskAwaiter3;
                    if (num != 0)
                    {
                        if (num != 1)
                        {
                            @class.bool_1 = true;
                            if (bool_3 && [email protected]_2)
                            {
                                @class.bool_2 = bool_3;
                                @class.method_5(string_7, string_8, true, true);
                                GEnum1 genum = genum1_0;
                                if (genum != (GEnum1)5)
                                {
                                    if (genum != (GEnum1)6)
                                    {
                                        goto IL_17B;
                                    }
                                    @class.method_1();
                                    taskAwaiter3 = @class.method_8(true).GetAwaiter();
                                    if (!taskAwaiter3.IsCompleted)
                                    {
                                        num2         = 1;
                                        taskAwaiter2 = taskAwaiter3;
                                        this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Class44.Struct28>(ref taskAwaiter3, ref this);
                                        return;
                                    }
                                }
                                else
                                {
                                    taskAwaiter3 = @class.method_8(false).GetAwaiter();
                                    if (!taskAwaiter3.IsCompleted)
                                    {
                                        num2         = 0;
                                        taskAwaiter2 = taskAwaiter3;
                                        this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Class44.Struct28>(ref taskAwaiter3, ref this);
                                        return;
                                    }
                                    goto IL_174;
                                }
                            }
                            else
                            {
                                if (!bool_3)
                                {
                                    @class.bool_2 = bool_3;
                                    @class.method_5("Stopping...", "orange", true, true);
                                    @class.cancellationTokenSource_0.Cancel();
                                    @class.class14_0.httpClient_0.CancelPendingRequests();
                                    goto IL_1E3;
                                }
                                goto IL_1E3;
                            }
                        }
                        else
                        {
                            taskAwaiter3 = taskAwaiter2;
                            taskAwaiter2 = default(TaskAwaiter);
                            num2         = -1;
                        }
                        taskAwaiter3.GetResult();
                        goto IL_17B;
                    }
                    taskAwaiter3 = taskAwaiter2;
                    taskAwaiter2 = default(TaskAwaiter);
                    num2         = -1;
IL_174:
                    taskAwaiter3.GetResult();
IL_17B:
                    if (@class.class14_0 != null)
                    {
                        @class.class14_0.httpClient_0.Dispose();
                    }
                    @class.cancellationTokenSource_0.Dispose();
                    Class130.dictionary_0.Remove((int)@class.jtoken_0["id"]);
                    MainWindow.webView_0.QueueScriptCall(string.Format("updateButton({0},false)", @class.jtoken_0["id"]));
                    IL_1E3 :;
                }
                catch
                {
                }
            }
            catch (Exception exception)
            {
                num2 = -2;
                this.asyncVoidMethodBuilder_0.SetException(exception);
                return;
            }
            num2 = -2;
            this.asyncVoidMethodBuilder_0.SetResult();
        }