PC Review


Reply
Thread Tools Rate Thread

Create my own asynchronous BeginXXXX methods and EndXXXX methods

 
 
Varangian
Guest
Posts: n/a
 
      15th May 2008
Hello,

the subjects says much I think.

Basically I want to create my own long running tasks asynchronously.
I want to have a BeginMyOwnLongTediousMethod
and EndMyOwnLongTediousMethod

You know like the framework already has the methods of
BeginExecuteReader that return an IAsynchResult.

Is there any way I can do my own?

Thanks!!!
 
Reply With Quote
 
 
 
 
Varangian
Guest
Posts: n/a
 
      15th May 2008
Yes thanks. but why I can't find any example on the internet?!

Peter Duniho wrote:
> On Thu, 15 May 2008 07:58:30 -0700, Varangian <(E-Mail Removed)> wrote:
>
> > Basically I want to create my own long running tasks asynchronously.
> > I want to have a BeginMyOwnLongTediousMethod
> > and EndMyOwnLongTediousMethod
> >
> > You know like the framework already has the methods of
> > BeginExecuteReader that return an IAsynchResult.
> >
> > Is there any way I can do my own?

>
> Yes, of course.
>
> Start here:
> http://msdn.microsoft.com/en-us/library/ms228963.aspx
>
> Read that page, and follow the various links that relate to implementing
> your own asynchronous API.
>
> Keep in mind that you may find that it's simpler to, rather than add an
> asynchronous API to your own classes, just use your classes from an
> existing asynchronous mechanism in .NET (such as using BackgroundWorker).
>
> Pete

 
Reply With Quote
 
Jeremy Shovan
Guest
Posts: n/a
 
      15th May 2008
Here is a walkthrough that you can use.

http://msdn.microsoft.com/en-us/library/bz33kx67.aspx

Jeremy Shovan

"Varangian" <(E-Mail Removed)> wrote in message
news:af2009d6-615e-4a9c-8fd0-(E-Mail Removed)...
> Yes thanks. but why I can't find any example on the internet?!
>
> Peter Duniho wrote:
>> On Thu, 15 May 2008 07:58:30 -0700, Varangian <(E-Mail Removed)> wrote:
>>
>> > Basically I want to create my own long running tasks asynchronously.
>> > I want to have a BeginMyOwnLongTediousMethod
>> > and EndMyOwnLongTediousMethod
>> >
>> > You know like the framework already has the methods of
>> > BeginExecuteReader that return an IAsynchResult.
>> >
>> > Is there any way I can do my own?

>>
>> Yes, of course.
>>
>> Start here:
>> http://msdn.microsoft.com/en-us/library/ms228963.aspx
>>
>> Read that page, and follow the various links that relate to implementing
>> your own asynchronous API.
>>
>> Keep in mind that you may find that it's simpler to, rather than add an
>> asynchronous API to your own classes, just use your classes from an
>> existing asynchronous mechanism in .NET (such as using BackgroundWorker).
>>
>> Pete


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
asynchronous methods or create my own threads? djc Microsoft C# .NET 2 28th Mar 2006 01:36 PM
Asynchronous Methods Brian Corcoran Microsoft C# .NET 0 5th Aug 2005 05:13 PM
Asynchronous Methods and Delegates theBoringCoder Microsoft C# .NET 4 10th May 2004 10:23 PM
Asynchronous web methods =?Utf-8?B?aHM=?= Microsoft Dot NET 2 8th Mar 2004 08:53 AM
how to run asynchronous methods on a web site? Max Microsoft ASP .NET 2 28th Feb 2004 11:09 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:05 AM.