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

SetPublishingMode() public method

The operation contract for the SetPublishingMode service.
public SetPublishingMode ( SetPublishingModeMessage request ) : SetPublishingModeResponseMessage
request SetPublishingModeMessage
return SetPublishingModeResponseMessage
        public virtual SetPublishingModeResponseMessage SetPublishingMode(SetPublishingModeMessage request)
        {
            SetPublishingModeResponse response = null;

            try
            {
                // OnRequestReceived(message.SetPublishingModeRequest);

                SetRequestContext(RequestEncoding.Xml);
                response = (SetPublishingModeResponse)SetPublishingMode(request.SetPublishingModeRequest);
                // OnResponseSent(response);
                return new SetPublishingModeResponseMessage(response);
            }
            catch (Exception e)
            {
                Exception fault = CreateSoapFault(request.SetPublishingModeRequest, e);
                // OnResponseFaultSent(fault);
                throw fault;
            }
        }
        #else

Same methods

SessionEndpoint::SetPublishingMode ( IServiceRequest incoming ) : IServiceResponse
SessionEndpoint