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