Example #1
0
        public RestManagerImpl()
        {
            this.messages = new ConcurrentQueue <Message>();
            this.tables   = new Dictionary <Table, List <ClientsGroups> >();

            // заполним столы
            var tempTables = TableFactory.Create();

            foreach (var tempTable in tempTables)
            {
                this.tables.Add(tempTable, new List <ClientsGroups>());
            }

            Thread thread = new Thread(new ThreadStart(this.GetTask));

            thread.Start();
        }