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

            try
            {
                // OnRequestReceived(message.ModifyMonitoredItemsRequest);

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