internal static void NotifySubscribersOnStatusChange(MAStatus status) { if (EventService.subscribers.ContainsKey(status.ManagementAgentID)) { foreach (IEventCallBack i in EventService.subscribers[status.ManagementAgentID].ToArray()) { try { i.MAStatusChanged(status); } catch (Exception ex) { logger.Warn(ex, "Error notifying client. Client will be deregistered"); EventService.DeregisterCallbackChannel(i); } } } }
internal MAStatusChangedEventArgs(MAStatus status, string maName) { this.Status = status; this.MAName = maName; }