コード例 #1
0
ファイル: Program.cs プロジェクト: shaneinsweden/IDS
 public void TheMentalist()
 {
     // Use the Asyncronous Programming Model (APM) - a bit ugly in my eyes
     BackgroundMethodDelegate x = new BackgroundMethodDelegate(BackgroundMethod);
     IAsyncResult a = x.BeginInvoke("The Mentalist", null, null);
     x.EndInvoke(a);
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: zezo010/IDS
        public void TheMentalist()
        {
            // Use the Asyncronous Programming Model (APM) - a bit ugly in my eyes
            BackgroundMethodDelegate x = new BackgroundMethodDelegate(BackgroundMethod);
            IAsyncResult             a = x.BeginInvoke("The Mentalist", null, null);

            x.EndInvoke(a);
        }