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

CreateResponse() public method

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

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

            return new SetPublishingModeResponseMessage(body);
        }
        #endregion