Opc.Ua.SessionEndpoint.CloseSession C# (CSharp) Method

CloseSession() public method

The operation contract for the CloseSession service.
public CloseSession ( CloseSessionMessage request ) : CloseSessionResponseMessage
request CloseSessionMessage
return CloseSessionResponseMessage
        public virtual CloseSessionResponseMessage CloseSession(CloseSessionMessage request)
        {
            CloseSessionResponse response = null;

            try
            {
                // OnRequestReceived(message.CloseSessionRequest);

                SetRequestContext(RequestEncoding.Xml);
                response = (CloseSessionResponse)CloseSession(request.CloseSessionRequest);
                // OnResponseSent(response);
                return new CloseSessionResponseMessage(response);
            }
            catch (Exception e)
            {
                Exception fault = CreateSoapFault(request.CloseSessionRequest, e);
                // OnResponseFaultSent(fault);
                throw fault;
            }
        }
        #else

Same methods

SessionEndpoint::CloseSession ( IServiceRequest incoming ) : IServiceResponse
SessionEndpoint