public Acknowledge ( |
||
context | The context. | |
eventId | byte | The event id. |
comment | Opc.Ua.LocalizedText | The comment. |
리턴 | uint |
/// <summary> /// Called when the alarm is acknowledged. /// </summary> 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.")); } }