public void AddServerStat(Server server, Status status, double duration) { ServerStats stat = serverStats.FirstOrDefault(st => st.Server.Id == server.Id); if (stat == null) { stat = new ServerStats(server); } stat.AddRequestResult(status, duration); RaiseServerStatAdded(stat); }
internal void RaiseServerStatAdded(ServerStats stat) { OnServerStatsAdded?.Invoke(this, new ServerStatAddedEventArgs()); }