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
    Will Socket.BeginRead's IAsyncResult CompleteSychronously property (VIP replies)
    microsoft.public.dotnet.framework
    Will Socket.BeginRead's IAsyncResult CompleteSychronously property always return false? I need to know this so I will not tie up the calling thread with processing performed in the AsycCallback function. Thanks, Chris Tanger
    Worker Threads and Events (VIP replies)
    microsoft.public.dotnet.languages.csharp
    I'm working on a class that needs to be called from a windows form, do it's work, and then, show progress back to the main form. I'm well aware that worker threads need to call Invoke for updates to the main thread to be threadsafe. I want to make this worker class I'm writing a self contained assembly so that other's can drop it into their projects. My question is: How can I NOT force those imple...
    WS-SecureConversation sample failure (VIP replies)
    microsoft.public.dotnet.framework.webservices.enhancements
    i think this is related to the earlier WSE101 post ... trying to run the WS SecureConversation sample out of the box. both the code and policy versions of the sample give me the same error below: Calling http://localhost/SecureConvPolicyService/SecureConvService.asmx ****** Exception Raised ****** Microsoft.Web.Services2.AsynchronousOperationException: WSE101: An asynchronous operation raised an e...
    wsdl.exe and Nillable Value Types (VIP replies)
    microsoft.public.dotnet.framework.webservices
    I am attempting to use wsdl.exe to generate a Web Service Client in C# from a valid WSDL file generated by Apache Axis. My application requires the ability to distinguish between an unspecified value and a specified value. For that reason, the WSDL that is generated by Apache Axis utilizes 'nillable "true"' to permit Web Services Clients to indicate a value or specify 'nil'. The problem I am havin...
    Calling Web Services using AsyncCallback
    Develop.com's DOTNET List
    I found a workaround. It does seem to be because of a call on the UI thread. So what I'm doing now is: public void CallMethodResultCallbackProxy(IAsyncResult ar) { this.Invoke(new AsyncCallback(this.CallMethodResultCallback) new object[] { ar }); } And this works. But its gross. So somehow "Invoke" knows how to call the object on the UI thread. There has to be a way I can tell the original call to...
    "Parallel" HttpWebRequests ?
    microsoft.public.dotnet.general
    All, I am trying to get a response back from up to 10 urls "simultaneously" from an aspx page written in C#. I am hitting multiple search engines and aggregating the data for the site visitor and I need to run them in parallel since I can't wait the time it would take to run 10 of these searches in serial as it would give the perception of a slow website to the end user. This will happen probably ...
    __delegate and params
    microsoft.public.dotnet.languages.vc
    The following fails to compile: public delegate void Some([Out]Byte (&data)[]); /////////////////////////////////////////////////////////////////// : error C2146: syntax error : missing ')' before identifier data' This error occurred in injected text. //////////////////////////////////////////////////////////////////////////// ///// The generated code looks as: (...) virtual void Invoke([System::R...
    A limitation (or an oversight) of the Stream class?
    microsoft.public.dotnet.framework
    Hello. Let me first start off by saying that I'm porting a PC to mainframe session handling service that I wrote in C over to C# and .NET. I've modified the design of the service to mainframe session handling code to take advantage of .NET Streams. Unfortunately, I've recently come to the conclusion that there may have been an oversight made in the definition of the abstract Stream class. The asyn...
    A zombie remote object ?
    microsoft.public.dotnet.framework.remoting
    A zombie remote object? I have a console application that hosts a remote object. Case a) When I Ctrl C this host and the client request something from this remote object, the client wait forever or until a Ctrl C. example: ... ObjMgr (IObjManager) Activator.GetObject(typeof(IObjManager), url); result ObjMgr.GetSomething(objectID); here wait forever ... Case b) When the console application finishes...
    Abort method of the Thread obj
    microsoft.public.dotnet.languages.csharp
    In the .NET documentation, it states that the Abort method USUALLY terminates the thread that its called on. Can someone elaborate on the 'usually' part? What circumstances would it not terminate the thread?
    Aborting Asynchronous Calls
    microsoft.public.dotnet.framework.clr
    I am calling a lengthy function asynchronously using delegates: IAsyncResult ar myDelegate.BeginInvoke(params, null, null); .... do stuff result myDelegate.EndInvoke(ar); My question is how do I prematurely abort the asynchronous call if I need to. For example my async call involes transfering a 10MB across the net but my user decides to abort this operation. I can just not call EndInvoke() but th...
    Aborting Asynchronous Calls
    microsoft.public.dotnet.languages.csharp
    I am calling a lengthy function asynchronously using delegates: IAsyncResult ar myDelegate.BeginInvoke(params, null, null); .... do stuff result myDelegate.EndInvoke(ar); My question is how do I prematurely abort the asynchronous call if I need to. For example my async call involes transfering a 10MB across the net but my user decides to abort this operation. I can just not call EndInvoke() but th...
    Aborting Socket BeginAccept Async Call
    microsoft.public.dotnet.languages.vb
    WARNING: Verbosity: skip to the very bottom paragraph for succinct version of my question.) Hi I can't seem to find an answer to this. I am playing around with a variation of the ".NET Framework Developer's Guide" (in the MSDN docs) "Using an Asynchronous Server Socket" sample. As usual with docs like this, the example isn't very good. I had to fix some typo's in the code .. Like: listener.Bind(lo...
    Access web page after asynch callback
    microsoft.public.dotnet.framework.aspnet
    This is my first attempt as asynchronous processing. I have created a small test app as proof of concept, but I am having one proglem. In the example (code listed below), my callback routine has two problems: 1. It runs TWICE; and 2. While it seems to update the web page controls, the results never show up on the page. I am using delegates per a couple of examples I found on MSDN and elsewhere. Wh...
    Accessing an ISAPI Ext. through an ASP.NET Web Service
    microsoft.public.dotnet.framework.aspnet.webservices
    Hello, I have an ASP.NET Web Service written in C# that does some processing and then sends a request to an ISAPI Ext. (an HTTP Request). The code form calling the ISAPI Ext. is as follows : HttpWebRequest myHttpWebRequest null; HttpWebResponse myHttpWebResponse null; Stream receiveStream null; StreamReader readStream null; try { // Creates an HttpWebRequest with the specified URL. myHttpWebReques...
    always exactly 100s to establish connection...why?
    microsoft.public.dotnet.languages.csharp
    Dear Sir/Madam. I made one user control using C#(.NET Runtime is 1.1). It is embeded in Internet Explorer. Basically, this control is very similiar to FTP client program. So it should be connected to FTP server. First of all, I have granted full trust for security. So it is not related with any security reason at all. I tried to make code to connect to FTP server in the control. However, it always...
    Always takes 100s to establish connection...why!?
    microsoft.public.dotnet.framework.windowsforms.controls
    Dear Sir/Madam. I made one user control using C#(.NET Runtime is 1.1). It is embeded in Internet Explorer. Basically, this control is very similiar to FTP client program. So it should be connected to FTP server. First of all, I have granted full trust for security. So it is not related with any security reason at all. I tried to make code to connect to FTP server in the control. However, it always...
    Any reason for an enabled timer not to fire or count down?
    microsoft.public.dotnet.languages.vb
    I have a timer on a form. It isn't firing at all. I know that the timer is enabled, and that the interval is low (4000, which should be 4 seconds). To ensure the timer wasn't being inadvertantly reset I put some extra code in the subs that enable and disable the timer. They fire as expected. To test this I added a second timer with a 1 second interval. The event for this time would output the enab...
    AppDomains + remoting
    microsoft.public.dotnet.framework
    Hi, I've implemented an elegant way to provide a plug in, hierarchical, architecture to our application with sub application isolation AppDomains. These AppDomains are loaded and unloaded as neccessary within the application. Both synchronous and asynchronous events that cross AppDomain boundaries (and even machine bouindaries) are used extensively throughout also. These events are often propogate...
    AppUpdater restricted to localhost?
    microsoft.public.dotnet.framework.windowsforms
    Is the AppUpdater restricted to localhost use? I have an application to works fine retrieving updates from a virtual directory off of the default web site, but when I try to create a deployment web site, I get the following: System.Net.WebException: The remote server returned an error: (407) Proxy Authentication Required. at System.Net.HttpWebRequest.CheckFinalStatus() at System.Net.HttpWebRequest...
    architectural question - threads
    microsoft.public.dotnet.framework.remoting
    Hi I have an application that's distributed over 3 machines. There's a client, and two servers. Client communicates with server A (which is a central server), which in turn communicates with various other servers (all running the same app). I noted that it takes roughly 45 seconds until a "host not reachable" error is thrown. My remote objects are server activated and singletons. Singletons should...
    ArgumentException: IAsyncResult object was not returned from the corresponding...
    microsoft.public.dotnet.framework
    Hello, Could someone tell me under what conditions the following exception occurs with async sockets: "System.ArgumentException: The IAsyncResult object was not returned from the corresponding synchronous method on this class." This is being thrown from within the callback that is specified to Socket.BeginReceive (happens rarely, but still does happen) I see only 1 reference to this exception on t...
    ArgumentException: IAsyncResult object was not returned from the corresponding...
    microsoft.public.dotnet.framework.clr
    Hello, Could someone tell me under what conditions the following exception occurs with async sockets: "System.ArgumentException: The IAsyncResult object was not returned from the corresponding synchronous method on this class." This is being thrown from within the callback that is specified to Socket.BeginReceive (happens rarely, but still does happen) I see only 1 reference to this exception on t...
    ASP page initiating complex code execution
    microsoft.public.dotnet.framework.aspnet
    Hello, I need some advice, how to set up the following: I have a web application, written in ASP.NET. User can ask this application to prepare some report, that takes much processing time, thus it would be inappropriate to let user wait until the report is ready. Instead, I'd like the ASP code initiate some process, that is given some parameters, that "lives" still after the ASP page that initiate...
    ASP.NET Impersonation, XmlUrlResolver, and DefaultCredentials
    microsoft.public.dotnet.framework.aspnet.security
    Just a quick follow up, I should note that it works when I manually pass credentials: Dim myCreds As New NetworkCredential("myuser", "mypassword", "mydomain") Dim myCache As New CredentialCache myCache.Add(New Uri("http://dev.mydomain.net/"), "Basic", myCreds) resolver.Credentials myCache But I don't want to have to embed credentials in code, which is why I was hoping Basic/Windows Authentication ...
    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