Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / May 2005

Tip: Looking for answers? Try searching our database.

Trying to get my head around async calls...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kyle Jedrusiak - 10 May 2005 17:24 GMT
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!
Sahil Malik [MVP] - 10 May 2005 18:17 GMT
> 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/

> Here is some pseudo code
>
[quoted text clipped - 20 lines]
>
> Kyle!
Kyle Jedrusiak - 10 May 2005 18:24 GMT
Can the AsyncCallback re-call  myDelegate.BeginSomething(...)?

>> Should the method XXX be in a seperate class/object than MyClass1 like...
>
[quoted text clipped - 27 lines]
>>
>> Kyle!
Kyle Jedrusiak - 11 May 2005 01:42 GMT
Is there a good article on the web or a good book that really describes how
to do async with callback in detail?

Kyle!
> Can the AsyncCallback re-call  myDelegate.BeginSomething(...)?
>
[quoted text clipped - 31 lines]
>>>
>>> Kyle!
Jeff Louie - 11 May 2005 04:11 GMT
I have working code here:

http://www.geocities.com/jeff_louie/call_console.htm

Regards,
Jeff
David Carr - 14 May 2005 02:05 GMT
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

> Is there a good article on the web or a good book that really describes how
> to do async with callback in detail?
[quoted text clipped - 35 lines]
> >>>
> >>> Kyle!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.