tags:

views:

159

answers:

2

Even with my Googling powers I cannot seem to find a good example of the Asynchronous Programming Model with a callback delegate. It is easy for me to point someone to a resource for how to use the BeginSomeMethod and EndSomeMethod but there does not seem to be any good examples of how to create them. Am I googling wrong or has no one really put together a good tutorial for anyone with this patter.

+3  A: 

You're looking for this article.

SLaks
And the MSDN section on the Async Design Pattern - http://msdn.microsoft.com/en-us/library/ms228969.aspx
Franci Penov
The article is not the basic implementation. Also the MSDN seems to not show the meat of the methods unless I'm missing something. I would like a project to just hand off to someone else for them to understand how to write APM code. Might be time to whip out a sample.
cjibo
Second look makes more sense now. I was originally looking for a straight up implmentation of IAsyncResult but the AsyncResult<T> is even better.
cjibo
A: 

I suggest you to look for EasyAsync, a lightweight toolkit for those kind of usages.

neil