Opc.Ua.EndpointBase.ProcessRequestAsyncResult.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)
            {
                ProcessRequestAsyncResult result = ar as ProcessRequestAsyncResult;

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

                return null;
            }
            #endregion