Opc.Ua.WcfChannelBase.SendRequestAsyncResult.BeginSendRequest C# (CSharp) Method

BeginSendRequest() public method

Begins processing an incoming request.
public BeginSendRequest ( ChannelSendRequestEventHandler handler, IServiceRequest request ) : IAsyncResult
handler ChannelSendRequestEventHandler The method which sends the request.
request IServiceRequest The request.
return IAsyncResult
            public IAsyncResult BeginSendRequest(
                ChannelSendRequestEventHandler handler,
                IServiceRequest request)
            {
                m_handler = handler;
                m_request = request;

                try
                {
                    // queue request.
                    m_channel.ScheduleOutgoingRequest(this);
                }
                catch (Exception e)
                {
                    m_error = e;
                    m_response = null;

                    // operation completed.
                    OperationCompleted();
                }

                return this;
            }