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!

Re: Trying to get my head around async calls... by Sahil

Sahil
Tue May 10 12:17:18 CDT 2005

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

<--- Not necessarily. Just as long as you can have it's address.

- Sahil Malik [MVP]
http://codebetter.com/blogs/sahil.malik/





"Kyle Jedrusiak" <kjedrusiak@princetoninformation.com> wrote in message
news:OH6kfzXVFHA.1152@tk2msftngp13.phx.gbl...
> 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!
>
>



Re: Trying to get my head around async calls... by Kyle

Kyle
Tue May 10 12:24:54 CDT 2005

Can the AsyncCallback re-call myDelegate.BeginSomething(...)?

"Sahil Malik [MVP]" <contactmethrumyblog@nospam.com> wrote in message
news:uOIgfQYVFHA.3280@TK2MSFTNGP09.phx.gbl...
>> Should the method XXX be in a seperate class/object than MyClass1 like...
>
> <--- Not necessarily. Just as long as you can have it's address.
>
> - Sahil Malik [MVP]
> http://codebetter.com/blogs/sahil.malik/
>
>
>
>
>
> "Kyle Jedrusiak" <kjedrusiak@princetoninformation.com> wrote in message
> news:OH6kfzXVFHA.1152@tk2msftngp13.phx.gbl...
>> 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!
>>
>>
>
>



Re: Trying to get my head around async calls... by Kyle

Kyle
Tue May 10 19:42:33 CDT 2005

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 Jedrusiak" <kjedrusiak@princetoninformation.com> wrote in message
news:urMP$UYVFHA.3620@TK2MSFTNGP09.phx.gbl...
> Can the AsyncCallback re-call myDelegate.BeginSomething(...)?
>
> "Sahil Malik [MVP]" <contactmethrumyblog@nospam.com> wrote in message
> news:uOIgfQYVFHA.3280@TK2MSFTNGP09.phx.gbl...
>>> Should the method XXX be in a seperate class/object than MyClass1
>>> like...
>>
>> <--- Not necessarily. Just as long as you can have it's address.
>>
>> - Sahil Malik [MVP]
>> http://codebetter.com/blogs/sahil.malik/
>>
>>
>>
>>
>>
>> "Kyle Jedrusiak" <kjedrusiak@princetoninformation.com> wrote in message
>> news:OH6kfzXVFHA.1152@tk2msftngp13.phx.gbl...
>>> 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!
>>>
>>>
>>
>>
>
>



Re: Trying to get my head around async calls... by David

David
Fri May 13 20:05:48 CDT 2005

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

"Kyle Jedrusiak" <kylej11@optonline.net> wrote in message
news:%23QCPZJcVFHA.1040@TK2MSFTNGP10.phx.gbl...
> 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 Jedrusiak" <kjedrusiak@princetoninformation.com> wrote in message
> news:urMP$UYVFHA.3620@TK2MSFTNGP09.phx.gbl...
> > Can the AsyncCallback re-call myDelegate.BeginSomething(...)?
> >
> > "Sahil Malik [MVP]" <contactmethrumyblog@nospam.com> wrote in message
> > news:uOIgfQYVFHA.3280@TK2MSFTNGP09.phx.gbl...
> >>> Should the method XXX be in a seperate class/object than MyClass1
> >>> like...
> >>
> >> <--- Not necessarily. Just as long as you can have it's address.
> >>
> >> - Sahil Malik [MVP]
> >> http://codebetter.com/blogs/sahil.malik/
> >>
> >>
> >>
> >>
> >>
> >> "Kyle Jedrusiak" <kjedrusiak@princetoninformation.com> wrote in message
> >> news:OH6kfzXVFHA.1152@tk2msftngp13.phx.gbl...
> >>> 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!
> >>>
> >>>
> >>
> >>
> >
> >
>
>