C# Class Opc.Ua.EndpointBase.ProcessRequestAsyncResult

An AsyncResult object when handling an asynchronous request.
Inheritance: AsyncResultBase, IEndpointIncomingRequest
Afficher le fichier Open project: OPCFoundation/UA-.NETStandardLibrary

Méthodes publiques

Méthode Description
BeginProcessRequest ( SecureChannelContext context, IServiceRequest request ) : IAsyncResult

Begins processing an incoming request.

BeginProcessRequest ( SecureChannelContext context, byte requestData ) : 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.

ProcessRequestAsyncResult ( EndpointBase endpoint, AsyncCallback callback, object callbackData, int timeout ) : System

Initializes a new instance of the ProcessRequestAsyncResult class.

WaitForComplete ( IAsyncResult ar, bool throwOnError ) : IServiceResponse

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

Private Methods

Méthode Description
OnProcessRequest ( object state ) : void

Processes the request.

SaveExceptionAsResponse ( Exception e ) : IServiceResponse

Saves an exception as response.

Method Details

BeginProcessRequest() public méthode

Begins processing an incoming request.
public BeginProcessRequest ( SecureChannelContext context, IServiceRequest request ) : IAsyncResult
context SecureChannelContext The security context for the request
request IServiceRequest The request.
Résultat IAsyncResult

BeginProcessRequest() public méthode

Begins processing an incoming request.
public BeginProcessRequest ( SecureChannelContext context, byte requestData ) : IAsyncResult
context SecureChannelContext The security context for the request
requestData byte The request data.
Résultat IAsyncResult

CallSynchronously() public méthode

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
Résultat void

GetRequest() public static méthode

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.
Résultat IServiceRequest

OperationCompleted() public méthode

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
Résultat void

ProcessRequestAsyncResult() public méthode

Initializes a new instance of the ProcessRequestAsyncResult class.
public ProcessRequestAsyncResult ( EndpointBase endpoint, AsyncCallback callback, object callbackData, int timeout ) : System
endpoint EndpointBase The endpoint being called.
callback AsyncCallback The callback to use when the operation completes.
callbackData object The callback data.
timeout int The timeout in milliseconds
Résultat System

WaitForComplete() public static méthode

Checks for a valid IAsyncResult object and waits for the operation to complete.
public static WaitForComplete ( IAsyncResult ar, bool throwOnError ) : IServiceResponse
ar IAsyncResult The IAsyncResult object for the operation.
throwOnError bool if set to true an exception is thrown if an error occurred.
Résultat IServiceResponse