RoutingService.IDuplexSessionRouter.BeginProcessMessage 方法

定義

開始訊息的非同步處理。

C#
[System.ServiceModel.OperationBehavior(Impersonation=System.ServiceModel.ImpersonationOption.Allowed)]
IAsyncResult IDuplexSessionRouter.BeginProcessMessage (System.ServiceModel.Channels.Message message, AsyncCallback callback, object state);

參數

message
Message

要處理的 Message

callback
AsyncCallback

訊息處理完成時叫用的 AsyncCallback 委派。

state
Object

已傳遞至回呼程序的使用者定義狀態物件。

傳回

IAsyncResult

可用來輪詢和 (或) 等候結果的 IAsyncResult;叫用 IDuplexSessionRouter.EndProcessMessage(IAsyncResult) 時同樣需要此值。

實作

屬性

備註

如需使用 IDuplexSessionRouter 合約的詳細資訊,請參閱 IDuplexSessionRouter

適用於

產品 版本
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8