Opc.Ua.EndpointBase.BeginProcessRequest C# (CSharp) Method

BeginProcessRequest() public method

Begins processing a request received via a binary encoded channel.
public BeginProcessRequest ( string channeId, EndpointDescription endpointDescription, IServiceRequest request, AsyncCallback callback, object callbackData ) : IAsyncResult
channeId string A unique identifier for the secure channel which is the source of the request.
endpointDescription EndpointDescription The description of the endpoint which the secure channel is using.
request IServiceRequest The incoming request.
callback AsyncCallback The callback.
callbackData object The callback data.
return IAsyncResult
        public IAsyncResult BeginProcessRequest(
            string channeId,
            EndpointDescription endpointDescription,
            IServiceRequest request,
            AsyncCallback callback,
            object callbackData)
        {
            if (channeId == null) throw new ArgumentNullException("channeId");
            if (request == null) throw new ArgumentNullException("request");

            // create operation.
            ProcessRequestAsyncResult result = new ProcessRequestAsyncResult(this, callback, callbackData, 0);

            SecureChannelContext context = new SecureChannelContext(
                channeId,
                endpointDescription,
                RequestEncoding.Binary);

            // begin invoke service.
            return result.BeginProcessRequest(context, request);
        }