private void HandleUnknownNotificationReceived(CommandParameterGroupList parameterGroupList) { if (UnknownNotificationReceived != null) { ThreadPool.QueueUserWorkItem(x => UnknownNotificationReceived(this, new UnknownNotificationEventArgs(parameterGroupList.First()?.First()?.Name, parameterGroupList)), null); } }
void INotificationHandler.HandleResponse(IQueryClient queryClient, string responseText) { CommandParameterGroupList commandParameterGroupList = CommandParameterGroupList.Parse(responseText); Triggered?.Invoke(queryClient, new UnknownNotificationEventArgs(commandParameterGroupList.First()?.First()?.Name, commandParameterGroupList, responseText)); }