コード例 #1
0
ファイル: Opc.Ua.Endpoints.cs プロジェクト: zryska/UA-.NET
        /// <summary>
        /// Asynchronously calls the SetPublishingMode service.
        /// </summary>
        public virtual IAsyncResult BeginSetPublishingMode(SetPublishingModeMessage message, AsyncCallback callback, object callbackData)
        {
            try
            {
                // check for bad data.
                if (message == null) throw new ArgumentNullException("message");

                // set the request context.
                SetRequestContext(RequestEncoding.Xml);

                // create handler.
                ProcessRequestAsyncResult result = new ProcessRequestAsyncResult(this, callback, callbackData, 0);
                return result.BeginProcessRequest(SecureChannelContext.Current, message.SetPublishingModeRequest);
            }
            catch (Exception e)
            {
                throw CreateSoapFault(message.SetPublishingModeRequest, e);
            }
        }
コード例 #2
0
ファイル: Opc.Ua.Endpoints.cs プロジェクト: yuriik83/UA-.NET
        /// <summary>
        /// The operation contract for the SetPublishingMode service.
        /// </summary>
        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;
            }
        }
コード例 #3
0
ファイル: Opc.Ua.Endpoints.cs プロジェクト: zryska/UA-.NET
 /// <summary>
 /// The operation contract for the SetPublishingMode service.
 /// </summary>
 public virtual SetPublishingModeResponseMessage SetPublishingMode(SetPublishingModeMessage request)
 {
     try
     {
         SetRequestContext(RequestEncoding.Xml);
         SetPublishingModeResponse response = (SetPublishingModeResponse)SetPublishingMode(request.SetPublishingModeRequest);
         return new SetPublishingModeResponseMessage(response);
     }
     catch (Exception e)
     {
         throw CreateSoapFault(request.SetPublishingModeRequest, e);
     }
 }
コード例 #4
0
ファイル: MyServer.cs プロジェクト: yuriik83/UA-.NET
 public SetPublishingModeResponseMessage SetPublishingMode(SetPublishingModeMessage request)
 {
     throw new NotImplementedException();
 }