Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 internal void RaiseServerStatAdded(ServerStats stat)
 {
     OnServerStatsAdded?.Invoke(this, new ServerStatAddedEventArgs());
 }