public Statistics(MessageBuffer buffer,RelaySessionClient client, RelaySessionServer server) { if (instance != null) throw new Exception("Statistics already exist"); this.buffer = buffer; this.client = client; this.server = server; cacheSize = new List<long>(); stateCacheSize = new List<long>(); channels = new Dictionary<int, int>(); channelSizes = new Dictionary<int, List<int>>(); Statistics.instance = this; }
public Statistics(MessageBuffer buffer, RelaySessionClient client, RelaySessionServer server) { if (instance != null) { throw new Exception("Statistics already exist"); } this.buffer = buffer; this.client = client; this.server = server; cacheSize = new List <long>(); stateCacheSize = new List <long>(); channels = new Dictionary <int, int>(); channelSizes = new Dictionary <int, List <int> >(); Statistics.instance = this; }