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

CloseSession() public method

Invokes the CloseSession service.
public CloseSession ( IServiceRequest incoming ) : IServiceResponse
incoming IServiceRequest
return IServiceResponse
        public IServiceResponse CloseSession(IServiceRequest incoming)
        {
            CloseSessionResponse response = null;

            try
            {
                OnRequestReceived(incoming);

                CloseSessionRequest request = (CloseSessionRequest)incoming;


                response = new CloseSessionResponse();

                response.ResponseHeader = ServerInstance.CloseSession(
                   request.RequestHeader,
                   request.DeleteSubscriptions);

            }
            finally
            {
                OnResponseSent(response);
            }

            return response;
        }

Same methods

SessionEndpoint::CloseSession ( CloseSessionMessage request ) : CloseSessionResponseMessage
SessionEndpoint