Inheritance: IServiceMessage
コード例 #1
0
ファイル: Opc.Ua.Endpoints.cs プロジェクト: zryska/UA-.NET
        /// <summary>
        /// Asynchronously calls the Republish service.
        /// </summary>
        public virtual IAsyncResult BeginRepublish(RepublishMessage 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.RepublishRequest);
            }
            catch (Exception e)
            {
                throw CreateSoapFault(message.RepublishRequest, e);
            }
        }
コード例 #2
0
ファイル: Opc.Ua.Endpoints.cs プロジェクト: yuriik83/UA-.NET
        /// <summary>
        /// The operation contract for the Republish service.
        /// </summary>
        public virtual RepublishResponseMessage Republish(RepublishMessage request)
        {
            RepublishResponse response = null;

            try
            {
                // OnRequestReceived(message.RepublishRequest);

                SetRequestContext(RequestEncoding.Xml);
                response = (RepublishResponse)Republish(request.RepublishRequest);
                // OnResponseSent(response);
                return new RepublishResponseMessage(response);
            }
            catch (Exception e)
            {
                Exception fault = CreateSoapFault(request.RepublishRequest, e);
                // OnResponseFaultSent(fault);
                throw fault;
            }
        }
コード例 #3
0
ファイル: Opc.Ua.Endpoints.cs プロジェクト: zryska/UA-.NET
 /// <summary>
 /// The operation contract for the Republish service.
 /// </summary>
 public virtual RepublishResponseMessage Republish(RepublishMessage request)
 {
     try
     {
         SetRequestContext(RequestEncoding.Xml);
         RepublishResponse response = (RepublishResponse)Republish(request.RepublishRequest);
         return new RepublishResponseMessage(response);
     }
     catch (Exception e)
     {
         throw CreateSoapFault(request.RepublishRequest, e);
     }
 }
コード例 #4
0
ファイル: MyServer.cs プロジェクト: yuriik83/UA-.NET
 public RepublishResponseMessage Republish(RepublishMessage request)
 {
     throw new NotImplementedException();
 }