System.IAsyncResult Interface
Information   Base Types   Related Resources

Represents the status of an asynchronous operation.

  • Namespace: System
  • First seen in: .NET v1.0.3705
  • Last seen in: .NET v1.1.4322
  • Last changed in: .NET v1.0.3705
  • Assembly: mscorlib.dll

  • View this type on MSDN
  • View this type on WinFX 247
    Articles (36)Discussions (393)MembersRotorChanges
    Discussions

    Page: 12345678910111213141516
    Asynchronous calls samples needed
    microsoft.public.dotnet.languages.csharp
    Hi, I'm trying to code a asynchronous call, and I've looked into MSDN for samples, but it looks like their documentation is way outdated. One of the samples doesn't compile because it tries to access the AsyncResult.AsyncDelegate method to get the delegate... but the AsyncResult class does not exist. The other sample tries using IAsyncResult.AsyncObject to do the same thing, but AsyncObject is not...
    Asynchronous File Downloads
    microsoft.public.dotnet.framework.component_services
    Hello again, Is there a built in mechanism for asynchronously downloading files from http servers and receiving progress notifications during the process?? It seems the WebClient methods only operate synchronously. I believe I can write my own class using WebRequest/Response to achieve asynchronous downloading but I'm not sure whether this functionality is already provided in the .NET Framework. T...
    Asynchronous File Downloads
    microsoft.public.dotnet.framework.performance
    Hello again, Is there a built in mechanism for asynchronously downloading files from http servers and receiving progress notifications during the process?? It seems the WebClient methods only operate synchronously. I believe I can write my own class using WebRequest/Response to achieve asynchronous downloading but I'm not sure whether this functionality is already provided in the .NET Framework. T...
    Asynchronous File Downloads
    microsoft.public.dotnet.framework.sdk
    Hello again, Is there a built in mechanism for asynchronously downloading files from http servers and receiving progress notifications during the process?? It seems the WebClient methods only operate synchronously. I believe I can write my own class using WebRequest/Response to achieve asynchronous downloading but I'm not sure whether this functionality is already provided in the .NET Framework. T...
    Asynchronous File Downloads
    microsoft.public.dotnet.framework.windowsforms
    Hello again, Is there a built in mechanism for asynchronously downloading files from http servers and receiving progress notifications during the process?? It seems the WebClient methods only operate synchronously. I believe I can write my own class using WebRequest/Response to achieve asynchronous downloading but I'm not sure whether this functionality is already provided in the .NET Framework. T...
    Asynchronous File Downloads
    microsoft.public.dotnet.languages.csharp
    Hello again, Is there a built in mechanism for asynchronously downloading files from http servers and receiving progress notifications during the process?? It seems the WebClient methods only operate synchronously. I believe I can write my own class using WebRequest/Response to achieve asynchronous downloading but I'm not sure whether this functionality is already provided in the .NET Framework. T...
    ASynchronous Functions
    microsoft.public.dotnet.framework.aspnet
    Hello, I am putting together a utility class for my ASP.NET web site and one of the methods is called "SendEmail" which, you guessed it, sends an e mail. But since sending an e mail could take awhile, I decided to use ASynchronous (multi threaded) programming to let the site run "faster" while sending the e mail in the background. But I am having difficulty getting this to work. I found an MSDN ar...
    asynchronous programming in .net
    microsoft.public.dotnet.general
    Does anyone know a good tutorial on asynchronous programming in .net? AsyncCallback And IASyncResult are driving me crazy. And the msdn documentation is not really helpful on this topic. I appreciate any recommendation.
    Asynchronous ReadLine from a NetworkStream
    microsoft.public.dotnet.languages.csharp
    Hi, I've a problem I want to do an asynchronous ReadLine from a NetworkStream I've made this aproach... but it is slooow.... private String ReadLine(Stream stream) { byte[] c new byte [1]; byte[] c1 new byte [1]; int r; StringBuilder s new StringBuilder(); IAsyncResult result; int waitIndex; WaitHandle[] waitEvent; while( true ) { //r stream.Read(c, 0, 1); result stream.BeginRead(c, 0, 1, null, nu...
    Asynchronous remoting
    microsoft.public.dotnet.framework.remoting
    Hi, I have written a basic client program which acceses the methods in remote server asynchronously using delegates. My doubt is when i am incoking BeginInvoke method of delegate it should not wait for the return value from the remote server and should proceed processing with the other steps in the client which is not happening. In my case when the begininvoke is called it is waiting till callabck...
    Asynchronous Send data using Socket!
    microsoft.public.dotnet.languages.csharp
    Hi, I write a program to send data using socket, And I using BeginSend and EndSend method, but the receiver can't get the message when I call EndSend, It get the message utill I shut down the socket! Could anyone tell me the reason? Because I don't want to shutdown the socket,I still have other message to send! Thanks in advance! Here Is part of my program! Main method: byte[] buffer new Byte[256]...
    Asynchronous Socket Server Advice
    microsoft.public.dotnet.framework.aspnet
    I'm writing a little console socket server but I'm having some difficulty. Can I ask your advice where is the best place to get some help on that topic? It would be nice if some people who knew what they were doing could take a look at my code and tell me where and why I'm going wrong. Any suggestions of groups or forums?
    Asynchronous TCP socket connection... packets are in an undefined order
    microsoft.public.dotnet.languages.csharp
    I have a socket application that is sending and receiving packets asynchronously. It works great except, when I receive packets that are larger than my receive buffer which then generate several EndReceive calls... these calls seem to be sometimes coming out of order. For example, the following is from my log file: Connection at 5/1/2004 11:39:14 AM SENT ZZZ:1:FMZZZ:ID1234:PWAAAA:VR100:\0 RCVD ZZZ...
    Asynchronous threading question
    microsoft.public.dotnet.languages.vb
    I have a function that takes in a parameter, and in the function it calls the .BeginInvoke on the worker delegate. I know that the System.AsyncCallback callback function takes in IAsyncResult as the only parameter. But I have a case where I need to pass a parameter from the function that calls the .BeginInvoke to my callback that calls the .EndInvoke. Is this possible? Can I add another parameter ...
    Asynchronous Web Method
    microsoft.public.dotnet.framework.aspnet.webservices
    Bascially, I need to import some MLS data into a SQL Db from (3) comma delimited files, as well as, upload and extract the images for the MLS listings from a zip file. These things I can do, but am worried about server time outs. I've read some MSDN articles about using Server Side Asynchronous Web Methods to perform lengthy back end operations: http://msdn.microsoft.com/library/default.asp?url /l...
    Asynchronous web service calls
    microsoft.public.dotnet.framework.aspnet.webservices
    Hi I am trying to do some tests using asynchronous web service calls and have hit a problem. I have reduced the problem to the minimum so hopefully someone will be able to spot what's going on. I have a web service with 1 method: [ WebMethod() ] public void DoNothing() { System.Diagnostics.Debug.WriteLine(" Doing Nothing"); } and a Windows form client that calls the web service: private void btnRu...
    Asynchronous Web Services : Static methods
    microsoft.public.dotnet.framework.webservices
    Hi, I have a question regarding Asynchronous web services. My problem is that I have an asp.net web app which calls a web service asynchronously. I works fine. The callback method has to be static, therefore part of the class and cannot reference object items. So when I get the results posted back to the static callback method I want to write them to a label on the web form. Can some one tell me t...
    Asynchronuous call to webservice
    ASPFriends.com 'aspngwebservices' list
    Hi, I'm trying to call my webservice asynchronously in order to display a message while the webservice is processing. What I would like to accomplish is the following: 1 Begin Call to webservice 2 Display message that the query is going to take a while 3 End call to webservice 4 Erase previous message, and display the result of webservice in a datagrid. This is the code I have been using, the code...
    asynchronuous webservice
    microsoft.public.dotnet.framework.aspnet.webservices
    Hi, I'm trying to call my webservice asynchronously in order to display a message while the webservice is processing. What I would like to accomplish is the following: 1 Begin Call to webservice 2 Display message that the query is going to take a while 3 End call to webservice 4 Erase previous message, and display the result in a datagrid. This is the code I have been using, the code runs all the ...
    Asyncrchronuous call to webservice
    microsoft.public.dotnet.framework.aspnet.webservices
    Hi, I'm trying to call my webservice asynchronously in order to display a message while the webservice is processing. What I would like to accomplish is the following: 1 Begin Call to webservice 2 Display message that the query is going to take a while 3 End call to webservice 4 Erase previous message, and display the result in a datagrid. This is the code I have been using, the code runs all the ...
    attn:MVPs
    microsoft.public.dotnet.framework
    Hi All, I have a strange problem with .net sockets (Protocol TCP/IP). I have developed a slave application that listens for incoming connection in asynchronous mode, and accepts incoming connection in a socket and returns to the listening mode. The connected socket then uses async mode to read and write from the underlying network stream. In the AsyncRead call back function an event is raised to h...
    Aysnc Update of Datagrid = Empty?
    microsoft.public.dotnet.languages.vb
    Hello, I am trying to update a datagrid via an async call, but the datagrid shows up empty. I've checked the datatable there are indeed rows in it... Here is my code: Private Sub LoadGroup() del New TCP.ChangeGroupDelegate(AddressOf oTCP.ChangeGroup) 'invoke the method asynchronously so we don't have to wait IA del.BeginInvoke( Group, frmGroupList, New AsyncCallback (AddressOf BindDataGrid), IA) E...
    BeginInvoke question
    microsoft.public.dotnet.framework.sdk
    I have been reading about Invoke and BeginInvoke/EndInvoke. To relate it to what I already know, Invoke looks like it can be used kind of like SendMessage() Win32 API and BeginInvoke/EndInvoke are (sort of) like PostMessage or the MFC PostThreadMessage. Here is my question. If I call BeginInvoke and do not maintain a reference to the returned IAsyncResult do I have to call EndInvoke. In other word...
    BeginInvoke() on Multicast Delegate.
    Develop.com's DOTNET List
    I can see two logical ways that BeginInvoke() could work with multicast delagate. a) Queue a single item to the work queue that calls ALL the delegate in the list. OR b) For each delegate in the list, queue an item to the work queue. In the both case, I would expect EndInvoke() to block until all delegates have been called. I may be going blind in my old age, but I can not find anything in the doc...
    BeginWrite throws NotSupportedException
    microsoft.public.dotnet.framework.compactframework
    The following code for doing an async write to a file runs fine on the regular framework. The call to BeginWrite throws a NotSupportedExecption on the CF. Any ideas? Thanks, Rory private FileStream myFileStream; private byte[] bMessage; IAsyncResult myResult; void getResult(IAsyncResult myResult) { if (myResult.IsCompleted) MessageBox.Show("Write completed"); myFileStream.EndWrite(myResult); } pri...
    Ad
    MBR BootFX
    Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
     
     Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
    Contact Us - Terms of Use - Privacy Policy - www.dotnet247.com