public Accountx(string fileName) { this.accounts1 = new ThreadSafe.Dictionary<int, IAccount>(); this.accounts2 = new ThreadSafe.Dictionary<string, IAccount>(); this.files = new AccountFiles(fileName, ReadAccount); this.files.ReadAllFiles(); }
public Accountx(string fileName) { this.accounts1 = new ThreadSafe.Dictionary <int, IAccount>(); this.accounts2 = new ThreadSafe.Dictionary <string, IAccount>(); this.files = new AccountFiles(fileName, ReadAccount); this.files.ReadAllFiles(); }
public CsvUsers(string fileName) { syncs = new ReaderWriterLockSlim[maxSync]; for (int i = 0; i < syncs.Length; i++) syncs[i] = new ReaderWriterLockSlim(); accounts = new ThreadSafe.Dictionary<int, Dictionary<string, CsvUser>>(1024); files = new AccountFiles(fileName, ReadUsers); files.ReadAllFiles(); }