public static void smethod_1() { Class65.Class66 stateMachine = new Class65.Class66(); stateMachine.asyncVoidMethodBuilder_0 = AsyncVoidMethodBuilder.Create(); stateMachine.int_0 = -1; stateMachine.asyncVoidMethodBuilder_0.Start <Class65.Class66>(ref stateMachine); }
unsafe void IAsyncStateMachine.MoveNext() { // ISSUE: untyped stack allocation void *voidPtr = (void *)__untypedstackalloc(4); int int0 = this.int_0; try { TaskAwaiter awaiter; int num1; if (int0 != 0) { *(sbyte *)voidPtr = (sbyte)(Class65.sqlConnection_0 == null); if (*(sbyte *)voidPtr != (sbyte)0) { Class65.sqlConnection_0 = new SqlConnection("Data Source=" + Form1.form1_0.textEdit_13.Text + ";Initial Catalog=master;Integrated Security=false; User ID = " + Form1.form1_0.textEdit_14.Text + "; Password = "******";MultipleActiveResultSets=true;Connect Timeout=1"); try { Class65.sqlConnection_0.Open(); Form1.smethod_0("SQL SERVER bağlantısı başarılı..."); } catch { Class65.sqlConnection_0 = (SqlConnection)null; } } *(sbyte *)((IntPtr)voidPtr + 1) = (sbyte)(Class65.sqlConnection_0 == null); if (*(sbyte *)((IntPtr)voidPtr + 1) != (sbyte)0) { Class65.sqlConnection_0 = new SqlConnection("Data Source=.\\SQLEXPRESS;Initial Catalog=master;Integrated Security=True;MultipleActiveResultSets=True;Connect Timeout=1"); try { Class65.sqlConnection_0.Open(); Form1.smethod_0("SQL SERVER bağlantısı başarılı..."); } catch { Class65.sqlConnection_0 = (SqlConnection)null; } } *(sbyte *)((IntPtr)voidPtr + 2) = (sbyte)(Class65.sqlConnection_0 == null); if (*(sbyte *)((IntPtr)voidPtr + 2) != (sbyte)0) { Class65.sqlConnection_0 = new SqlConnection("Data Source=.;Initial Catalog=master;Integrated Security=True;MultipleActiveResultSets=True;Connect Timeout=1"); try { Class65.sqlConnection_0.Open(); Form1.smethod_0("SQL SERVER bağlantısı başarılı..."); } catch { Class65.sqlConnection_0 = (SqlConnection)null; } } *(sbyte *)((IntPtr)voidPtr + 3) = (sbyte)(Class65.sqlConnection_0 == null); if (*(sbyte *)((IntPtr)voidPtr + 3) != (sbyte)0) { Form1.smethod_1("SQL Server ile bağlantı kurulamıyor.Lütfen Ayarlar.ini dosyasından SQL ayarlarınızı kontrol edip programı tekrar başlatın.", Color.DarkRed); int num2 = (int)MessageBox.Show("SQL Server ile bağlantı kurulamıyor.Lütfen Ayarlar.ini dosyasından SQL ayarlarınızı kontrol edip programı tekrar başlatın."); Environment.Exit(0); } awaiter = Task.Delay(1000).GetAwaiter(); if (!awaiter.IsCompleted) { num1 = 0; this.int_0 = 0; this.taskAwaiter_0 = awaiter; Class65.Class66 stateMachine = this; this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter, Class65.Class66>(ref awaiter, ref stateMachine); return; } } else { awaiter = this.taskAwaiter_0; this.taskAwaiter_0 = new TaskAwaiter(); num1 = -1; this.int_0 = -1; } awaiter.GetResult(); awaiter = new TaskAwaiter(); } catch (Exception ex) { this.int_0 = -2; this.asyncVoidMethodBuilder_0.SetException(ex); return; } this.int_0 = -2; this.asyncVoidMethodBuilder_0.SetResult(); }