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); }
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); }