I am looking to instantiating AsyncResult object but there seems to be no AsyncResult class with a constructor in .Net Frameowork that I can instantiarte.
Can someone provide an implementation of IAsynResult interface in C#?
"Visual Studio 2012 introduces a simplified approach, async programming,
that leverages asynchronous support in the .NET Framework 4.5 and
the Windows Runtime. The compiler does the difficult work
that the developer used to do, and your application retains a logical structure
that resembles synchronous code. As a result, you get all the advantages
of asynchronous programming with a fraction of the effort."
g.
B-) Please help me by completing my school survey about computer programmers on my website. Thank you!!! Gerry Lowry +1 705-429-7550 wasaga beach, ontario, canada
Marked as answer by sun21170 on Dec 30, 2012 05:33 AM
sun21170
Contributor
3421 Points
1189 Posts
Looking for Implementation of IAsyncResult in C#?
Dec 30, 2012 12:43 AM|LINK
I am looking to instantiating AsyncResult object but there seems to be no AsyncResult class with a constructor in .Net Frameowork that I can instantiarte.
Can someone provide an implementation of IAsynResult interface in C#?
gerrylowry
All-Star
20515 Points
5713 Posts
Re: Looking for Implementation of IAsyncResult in C#?
Dec 30, 2012 03:24 AM|LINK
@ sun21170
Not true; Google finds it easily. http://lmgtfy.com/?q=AsyncResult
"AsyncResult Class" .NET Framework 4.5":
http://msdn.microsoft.com/en-us/library/system.runtime.remoting.messaging.asyncresult(v=vs.110).aspx
Versions of AsyncResult have existed since .NET Framework 1.1
See the remarks at the above link.
Also, study the example at the above link ... note especially this code:
see also: http://msdn.microsoft.com/en-us/library/22t547yb.aspx "Asynchronous Programming Using Delegates"
Joe Albahari's free e-book "Threading in c#" is well worth reading: http://www.albahari.com/threading/
important: c# 5 has advanced threading:
http://msdn.microsoft.com/en-ca/library/vstudio/hh191443.aspx
"Asynchronous Programming with Async and Await" (C# and Visual Basic). Visual Studio 2012
"Visual Studio 2012 introduces a simplified approach, async programming,
that leverages asynchronous support in the .NET Framework 4.5 and
the Windows Runtime. The compiler does the difficult work
that the developer used to do, and your application retains a logical structure
that resembles synchronous code. As a result, you get all the advantages
of asynchronous programming with a fraction of the effort."
g.
sun21170
Contributor
3421 Points
1189 Posts
Re: Looking for Implementation of IAsyncResult in C#?
Dec 30, 2012 05:33 AM|LINK
GerryLowry,
Excellent reply. I appreciate your excellent answer. I think I have my answer.
Thanks
Sunil