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); }
/// <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); }