Trying to get my head around async calls...

  • Thread starter Thread starter Kyle Jedrusiak
  • Start date Start date
K

Kyle Jedrusiak

Here is some pseudo code

public class MyClass1
{
...

public void StartSomething()
{
myDelegate.BeginSomething(new AsyncCallback(XXX), YYY);
}

...
}

Should the method XXX be in a seperate class/object than MyClass1 like...

public class MyClass2
{
public void MethodToBeUsedAsTheAsyncCallback()
{
}
}

Kyle!
 
Is there a good article on the web or a good book that really describes how
to do async with callback in detail?

Kyle!
 
Kyle,

I found Peter van Ooijen's article "The Message is the Medium - Invoking a
XML Web Service" a helpful place to start, when I was trying to learn how to
do this a couple of weeks ago.
http://www.dotnetjunkies.com/tutorial/cc1539e4-8c8d-45f7-b18f-4705a997b3a6.dcik
Note that his article does require a basic understanding of VS.NET to fill
in the blanks. While that may be initially frustrusting, ultimately I feel
that it helped me learn how to do things.

His followup, "Building a real-life web-experience : Don´t trip over the
threads.", was also valuable.
http://www.dotnetjunkies.com/Article/55C1654E-A55C-40AB-AF5F-7C944388D96A.dcik

Hope this helps,
David
 
Back
Top