public void BuildQueue() { TicketTest ticketTest = new TicketTest(); ticketTest.MakeTicket(); //TicketInfo.GetTickets(); TicketProcess ticketProcess = new TicketProcess(); QueueProcess queueProcess = new QueueProcess(); queueProcess.BuildQueueFromTicket(ticketProcess, 100); }
public void Process() { if (processing) { return; } lock (lockObj) { processing = true; } TicketProcess ticketProcess = new TicketProcess(); QueueProcess queueProcess = new QueueProcess(); queueProcess.BuildQueueFromTicket( ticketProcess, Convert.ToInt32(ConfigurationManager.AppSettings["BlockCount"]) ); processing = false; }