C# 클래스 Opc.Ua.WcfChannelBase.SendRequestAsyncResult

An AsyncResult object when handling an asynchronous request.
상속: AsyncResultBase, IChannelOutgoingRequest
파일 보기 프로젝트 열기: OPCFoundation/UA-.NETStandardLibrary

공개 메소드들

메소드 설명
BeginSendRequest ( ChannelSendRequestEventHandler handler, IServiceRequest request ) : IAsyncResult

Begins processing an incoming request.

CallSynchronously ( ) : void

Used to call the default synchronous handler.

This method may block the current thread so the caller must not call in the thread that calls IServerBase.ScheduleIncomingRequest(). This method always traps any exceptions and reports them to the client as a fault.

GetRequest ( IAsyncResult ar ) : IServiceRequest

Checks for a valid IAsyncResult object and returns the original request object.

OperationCompleted ( IServiceResponse response, ServiceResult error ) : void

Used to indicate that the asynchronous operation has completed.

SendRequestAsyncResult ( IChannelBase channel, AsyncCallback callback, object callbackData, int timeout ) : System

Initializes a new instance of the SendRequestAsyncResult class.

WaitForComplete ( IAsyncResult ar ) : IServiceResponse

Checks for a valid IAsyncResult object and waits for the operation to complete.

비공개 메소드들

메소드 설명
OnSendRequest ( object state ) : void

Processes the request.

메소드 상세

BeginSendRequest() 공개 메소드

Begins processing an incoming request.
public BeginSendRequest ( ChannelSendRequestEventHandler handler, IServiceRequest request ) : IAsyncResult
handler ChannelSendRequestEventHandler The method which sends the request.
request IServiceRequest The request.
리턴 IAsyncResult

CallSynchronously() 공개 메소드

Used to call the default synchronous handler.
This method may block the current thread so the caller must not call in the thread that calls IServerBase.ScheduleIncomingRequest(). This method always traps any exceptions and reports them to the client as a fault.
public CallSynchronously ( ) : void
리턴 void

GetRequest() 공개 정적인 메소드

Checks for a valid IAsyncResult object and returns the original request object.
public static GetRequest ( IAsyncResult ar ) : IServiceRequest
ar IAsyncResult The IAsyncResult object for the operation.
리턴 IServiceRequest

OperationCompleted() 공개 메소드

Used to indicate that the asynchronous operation has completed.
public OperationCompleted ( IServiceResponse response, ServiceResult error ) : void
response IServiceResponse The response. May be null if an error is provided.
error ServiceResult
리턴 void

SendRequestAsyncResult() 공개 메소드

Initializes a new instance of the SendRequestAsyncResult class.
public SendRequestAsyncResult ( IChannelBase channel, AsyncCallback callback, object callbackData, int timeout ) : System
channel IChannelBase The channel being used.
callback AsyncCallback The callback to use when the operation completes.
callbackData object The callback data.
timeout int The timeout in milliseconds
리턴 System

WaitForComplete() 공개 정적인 메소드

Checks for a valid IAsyncResult object and waits for the operation to complete.
public static WaitForComplete ( IAsyncResult ar ) : IServiceResponse
ar IAsyncResult The IAsyncResult object for the operation.
리턴 IServiceResponse