Пример #1
0
		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();
		}
Пример #2
0
        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();
        }
Пример #3
0
		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();
		}