Opc.Ua.Com.Client.ComAeClientNodeManager.OnAcknowledge C# (CSharp) Method

OnAcknowledge() private method

Called when the alarm is acknowledged.
private OnAcknowledge ( ISystemContext context, MethodState method, Opc.Ua.NodeId objectId, byte eventId, Opc.Ua.LocalizedText comment ) : ServiceResult
context ISystemContext
method Opc.Ua.MethodState
objectId Opc.Ua.NodeId
eventId byte
comment Opc.Ua.LocalizedText
return Opc.Ua.ServiceResult
        private ServiceResult OnAcknowledge(
            ISystemContext context,
            MethodState method,
            NodeId objectId,
            byte[] eventId,
            LocalizedText comment)
        {
            ComAeClientManager system = (ComAeClientManager)this.SystemContext.SystemHandle;
            ComAeClient client = (ComAeClient)system.SelectClient((ServerSystemContext)context, false);

            try
            {
                return client.Acknowledge((ServerSystemContext)context, eventId, comment); 
            }
            catch (Exception e)
            {
                return ServiceResult.Create(e, StatusCodes.BadUnexpectedError, "Could not acknowledge event.");
            }
        }
        #endregion