Beispiel #1
0
        public void Measure(int size)
        {
            DataBytes += (long)size;
            AggregationWindowDataBytes += (long)size;
            if (Pool != null)
            {
                Pool.Measure(size);
            }

            if (AggregationWindowStart.DeltaToNowMilliseconds > AggregationWindowMilliseconds)
            {
                UpdateAggregatedBitrate();
            }
        }
Beispiel #2
0
 public void DataSent(int size)
 {
     SendBandwidth.Measure(size);
     OnDataSent?.Invoke(size);
 }
Beispiel #3
0
 public void DataReceived(int size)
 {
     ReceiveBandwidth.Measure(size);
     OnDataReceived?.Invoke(size);
 }
Beispiel #4
0
 public void DataSent(int size)
 {
     SendBandwidth.Measure(size);
 }