void IAsyncStateMachine.MoveNext() { int int0 = this.int_0; try { TaskAwaiter <Task> awaiter; int num; if (int0 != 0) { this.class26_0 = new Class25.Class26(); this.class26_0.string_0 = this.string_0; this.class26_0.ushort_0 = this.ushort_0; this.class26_0.uint_0 = this.uint_0; this.class26_0.uint_1 = this.uint_1; this.class26_0.string_1 = this.string_1; this.class26_0.string_2 = this.string_2; this.class26_0.string_3 = this.string_4; this.class26_0.string_4 = this.string_3; if ((Class25.class29_0 != null ? 1 : (Class25.class19_0 != null ? 1 : 0)) == 0) { ++Class25.int_0; this.class26_0.int_0 = Class25.int_0; Class25.autoResetEvent_0.Set(); awaiter = Task.Factory.StartNew <Task>(new Func <Task>(this.class26_0.method_0)).GetAwaiter(); if (!awaiter.IsCompleted) { num = 0; this.int_0 = 0; this.taskAwaiter_0 = awaiter; Class25.Class28 stateMachine = this; this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <Task>, Class25.Class28>(ref awaiter, ref stateMachine); return; } } else { goto label_8; } } else { awaiter = this.taskAwaiter_0; this.taskAwaiter_0 = new TaskAwaiter <Task>(); num = -1; this.int_0 = -1; } awaiter.GetResult(); awaiter = new TaskAwaiter <Task>(); } catch (Exception ex) { this.int_0 = -2; this.asyncVoidMethodBuilder_0.SetException(ex); return; } label_8: this.int_0 = -2; this.asyncVoidMethodBuilder_0.SetResult(); }
public static void smethod_0( string string_0, ushort ushort_0, uint uint_0, uint uint_1, string string_1, string string_2, string string_3, string string_4) { Class25.Class28 stateMachine = new Class25.Class28(); stateMachine.string_0 = string_0; stateMachine.ushort_0 = ushort_0; stateMachine.uint_0 = uint_0; stateMachine.uint_1 = uint_1; stateMachine.string_1 = string_1; stateMachine.string_2 = string_2; stateMachine.string_3 = string_3; stateMachine.string_4 = string_4; stateMachine.asyncVoidMethodBuilder_0 = AsyncVoidMethodBuilder.Create(); stateMachine.int_0 = -1; stateMachine.asyncVoidMethodBuilder_0.Start <Class25.Class28>(ref stateMachine); }