Share via


Questões with Calling Methods of Objects Remote Asynchronously

If a cliente arquitetura de comunicação remota do.NET is a context-bound class that requires a sincronizado contexto, the função callback is dispatched Através the Infrastructure contexto arquitetura de comunicação remota .NET Framework. This means the função callback itself can executar de forma assíncrona com respect to its chamador for such contexts. Isso também é o comportamento do atributo OneWayAttribute quando aplicado a método assinaturas de retorno de chamada. Any such função callback método can executar sincronicamente or de forma assíncrona with respect to the remoto chamador, and the chamador Cannot Make any assumptions Sobre completion of such a chamar When controle Execution returns to IT.

Dica

Calling the EndInvoke método before is the operação assíncrona completo a tempo Second with the same IAsyncResult is indefinido.

In the .NET Framework Versions 1.0 and 1.1, an assíncrono delegate that is invoked throws an exceção a tempo Second. In the .NET Framework versão 2.0, the delegate is invoked only ONCE.

Consulte também

Conceitos

Exemplo do Sistema de Interação Remota: O sistema de interação remota assíncrono

Configuração de aplicativos remoto

Outros recursos

Visão geral sobre a arquitetura de comunicação remota do .NET Framework