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

GetRequest() public static method

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.
return IServiceRequest
            public static IServiceRequest GetRequest(IAsyncResult ar)
            {
                SendRequestAsyncResult result = ar as SendRequestAsyncResult;

                if (result != null)
                {
                    return result.m_request;
                }

                return null;
            }
            #endregion