コード例 #1
0
        private ITransportStatistics PopulateTransportStatistics(ITransportStatistics transportStatistics)
        {
            // TODO: populate transportStatistics? this need to be checked out, I think all the stats are already here...

            transportStatistics.ClientServerId = _ClientServerId;
            return(transportStatistics);
        }
コード例 #2
0
 /// <summary>
 /// Instantiates a new <see cref="TransportStatisticsGroup"/>.
 /// </summary>
 /// <param name="serverStatistics">Statistics about the server.</param>
 /// <param name="serversClientStatistics">Statistics about the sever's internal client.</param>
 /// <param name="allClientsStatistics">A collection containing statistics about each client connected to the server at the time of the request.</param>
 public TransportStatisticsGroup(ITransportStatistics serverStatistics,
                                 ITransportStatistics serversClientStatistics,
                                 IEnumerable <ITransportStatistics> allClientsStatistics)
     : this()
 {
     if (allClientsStatistics == null)
     {
         throw new ArgumentNullException("allClientsStatistics");
     }
     ServerStatistics        = serverStatistics ?? throw new ArgumentNullException("serverStatistics");
     ServersClientStatistics = serversClientStatistics ?? throw new ArgumentNullException("serversClientStatistics");
     _AllClientsStatistics   = new List <ITransportStatistics>(allClientsStatistics);
 }