AsyncTasks & Scheduling

Facebook Twitter

Asynchronous Method Invocation. Introduction In this article, I am going to explain asynchronous method calls and how to use them.

Asynchronous Method Invocation

After playing with delegates, threads, and asynchronous invocation for so long, it would be a sin not to share some of my wisdom and knowledge on the subject, so hopefully, you won’t be looking at an MSDN article at 1 AM wondering why you decided to go into computers. I will try to use baby steps and lots of examples… Overall, I will cover how to call methods asynchronously, how to pass parameters to such methods, and how to find out when a method completes execution. Finally, I will show the Command Pattern in use for simplifying some of the code. Sending Emails Asynchronously in C# We're gearing up to begin sending out our email newsletter here at and so we've been experimenting with different ways to send out a large number of emails to subscribers.

Sending Emails Asynchronously in C#

Since the SMTP class does not expose an asynchronous version of the SmtpMail.Send(Message) method, (e.g. BeginSend / EndSend) we either have to use a commercial or open source component that does, or roll our own. Fortunately the Framework comes to our rescue here with callback delegates and the BeginInvoke method, which (unfortunately) is only documented by Microsoft for Windows Forms controls (making developers think that that's the only place it's actually available to use). Threading in C# - Free E-book. Threading in C# Joseph Albahari Last updated: 2011-4-27 Translations: Chinese | Czech | Persian | Russian | Japanese Download PDF Part 1: Getting Started.

Threading in C# - Free E-book

ASP.NET: Long Running Task with Page Feedback. “It's not that I'm so smart , it's just that I stay with problems longer .” -- Einstein We often get questions about how to provide feedback in an ASP.NET page when something is going on in the background.

ASP.NET: Long Running Task with Page Feedback

A lot of times developers get confused about the difference between running a task asynchronously and running a task on a background thread. Asynchronous Method Invocation.