Exemplo n.º 1
0
            internal void method_1()
            {
                CardContainer.Class9.Class10 @class = new CardContainer.Class9.Class10();
                @class.class9_0 = this;
                @class.asyncVoidMethodBuilder_0 = AsyncVoidMethodBuilder.Create();
                @class.int_0 = -1;
                AsyncVoidMethodBuilder asyncVoidMethodBuilder_ = @class.asyncVoidMethodBuilder_0;

                asyncVoidMethodBuilder_.Start <CardContainer.Class9.Class10>(ref @class);
            }
Exemplo n.º 2
0
                void IAsyncStateMachine.MoveNext()
                {
                    int num = this.int_0;

                    try
                    {
                        TaskAwaiter <IEnumerable <CardArgs> > awaiter;
                        if (num != 0)
                        {
                            if (num == 1)
                            {
                                goto IL_CE;
                            }
                            this.class9_0.cardContainer_0.CardWrapper.Visible = false;
                            awaiter = this.class9_0.cardContainer_0.method_3(this.class9_0.ienumerable_0).GetAwaiter();
                            if (!awaiter.IsCompleted)
                            {
                                int arg_55_1 = 0;
                                num                = 0;
                                this.int_0         = arg_55_1;
                                this.taskAwaiter_0 = awaiter;
                                CardContainer.Class9.Class10 @class = this;
                                this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <IEnumerable <CardArgs> >, CardContainer.Class9.Class10>(ref awaiter, ref @class);
                                return;
                            }
                        }
                        else
                        {
                            awaiter            = this.taskAwaiter_0;
                            this.taskAwaiter_0 = default(TaskAwaiter <IEnumerable <CardArgs> >);
                            int arg_8E_1 = -1;
                            num        = -1;
                            this.int_0 = arg_8E_1;
                        }
                        this.ienumerable_0          = awaiter.GetResult();
                        this.class9_0.ienumerable_0 = this.ienumerable_0;
                        this.ienumerable_0          = null;
                        this.ienumerator_0          = this.class9_0.ienumerable_0.GetEnumerator();
IL_CE:
                        try
                        {
                            TaskAwaiter awaiter2;
                            if (num == 1)
                            {
                                awaiter2           = this.taskAwaiter_1;
                                this.taskAwaiter_1 = default(TaskAwaiter);
                                int arg_EC_1 = -1;
                                num        = -1;
                                this.int_0 = arg_EC_1;
                                goto IL_136;
                            }
IL_F3:
                            if (!this.ienumerator_0.MoveNext())
                            {
                                goto IL_186;
                            }
                            this.cardArgs_0 = this.ienumerator_0.Current;
                            awaiter2        = this.class9_0.cardContainer_0.method_5(this.cardArgs_0).GetAwaiter();
                            if (!awaiter2.IsCompleted)
                            {
                                int arg_14C_1 = 1;
                                num                = 1;
                                this.int_0         = arg_14C_1;
                                this.taskAwaiter_1 = awaiter2;
                                CardContainer.Class9.Class10 @class = this;
                                this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, CardContainer.Class9.Class10>(ref awaiter2, ref @class);
                                return;
                            }
IL_136:
                            awaiter2.GetResult();
                            this.cardArgs_0 = null;
                            goto IL_F3;
                        }
                        finally
                        {
                            if (num < 0 && this.ienumerator_0 != null)
                            {
                                this.ienumerator_0.Dispose();
                            }
                        }
IL_186:
                        this.ienumerator_0 = null;
                        this.class9_0.cardContainer_0.CardWrapper.Visible = true;
                        EventHandler <CardArgs> expr_1B3 = this.class9_0.cardContainer_0.OnLoaded;
                        if (expr_1B3 != null)
                        {
                            expr_1B3(this.class9_0.cardContainer_0, new CardArgs
                            {
                                TotalCards = this.class9_0.ienumerable_0.Count <CardArgs>()
                            });
                        }
                        this.class9_0.cardContainer_0.timer_0.Stop();
                    }
                    catch (Exception exception)
                    {
                        this.int_0 = -2;
                        this.asyncVoidMethodBuilder_0.SetException(exception);
                        return;
                    }
                    this.int_0 = -2;
                    this.asyncVoidMethodBuilder_0.SetResult();
                }