/// <summary>
 /// Конструктор объекта команд консоли
 /// </summary>
 public CommandConsoleSB()
 {
     WorkRabbit           = new RabbitmqSB();
     CommandAddingBooks   = new KeyValuePair <string, string>("1", "Запуск добавления книг");
     CommandAddingClient  = new KeyValuePair <string, string>("2", "Добавление клиента");
     CommandDeletedClient = new KeyValuePair <string, string>("3", "Удаление клиента");
     CommandExit          = new KeyValuePair <string, string>("4", "Выход из приложения");
     AddingBooks          = false;
 }
Пример #2
0
 public RandomGenerationBook(RabbitmqSB workRabbit, int minInterval, int maxInterval)
 {
     Random                   = new Random();
     CancelTokenSource        = null;
     WorkRabbit               = workRabbit;
     TaskRandomGenerationBook = new Task(GenerationBook);
     MinNumberName            = 1;
     MaxNumberName            = 100000;
     MinNumberLanguage        = 1;
     MaxNumberLanguage        = 6;
     MinNumberPages           = 5;
     MaxNumberPages           = 1500;
     MinInterval              = minInterval;
     MaxInterval              = maxInterval;
 }