CorrelationCallbackMessageProperty.BeginFinalizeCorrelation 메서드

정의

상관 관계를 비동기적으로 생성하는 데 모든 상관 관계 정보를 사용할 수 있는 경우 상관 관계 프로토콜에 의해 호출됩니다.

public:
 IAsyncResult ^ BeginFinalizeCorrelation(System::ServiceModel::Channels::Message ^ message, TimeSpan timeout, AsyncCallback ^ callback, System::Object ^ state);
public IAsyncResult BeginFinalizeCorrelation(System.ServiceModel.Channels.Message message, TimeSpan timeout, AsyncCallback callback, object state);
member this.BeginFinalizeCorrelation : System.ServiceModel.Channels.Message * TimeSpan * AsyncCallback * obj -> IAsyncResult
Public Function BeginFinalizeCorrelation (message As Message, timeout As TimeSpan, callback As AsyncCallback, state As Object) As IAsyncResult

매개 변수

message
Message

상관 관계를 지정하는 메시지입니다.

timeout
TimeSpan

상관 관계를 종료해야 하거나 그렇지 않으면 TimeoutException throw되는 간격입니다.

callback
AsyncCallback

상관 관계 계산이 완료될 때 호출할 메서드입니다.

state
Object

비동기 작업에 대한 정보를 포함하는 선택적 애플리케이션별 개체입니다.

반품

현재 비동기 작업에 대한 참조입니다.

설명

이 메서드는 상관 관계를 생성하기 위해 호출 OnBeginFinalizeCorrelation 합니다. 애플리케이션은 지정된 메시지의 OnBeginFinalizeCorrelation상관 관계 계산을 비동기적으로 수행하는 구현을 제공해야 합니다.

비동기 작업이 완료되면 알림을 받으려면 메서드에서 호출 EndFinalizeCorrelation 합니다 callback . 비동기 작업이 완료되기 전에 호출되면 EndFinalizeCorrelation 작업이 완료될 때까지 차단됩니다. 지정된 제한 시간 간격 내에 작업이 완료되지 않으면 throw TimeoutException 됩니다.

이 메서드는 비동기 디자인 패턴을 사용하는 FinalizeCorrelation 비동기 버전 IAsyncResult 입니다. 자세한 내용은 비동기 프로그래밍 개요를 참조하세요.

적용 대상