Opc.Ua.ActivateSessionMessage.CreateResponse C# (CSharp) Method

CreateResponse() public method

public CreateResponse ( IServiceResponse response ) : object
response IServiceResponse
return object
        public object CreateResponse(IServiceResponse response)
        {
            ActivateSessionResponse body = response as ActivateSessionResponse;

            if (body == null)
            {
                body = new ActivateSessionResponse();
                body.ResponseHeader = ((ServiceFault)response).ResponseHeader;
            }

            return new ActivateSessionResponseMessage(body);
        }
        #endregion