public async Task Initialize() { _queueManager.StopWorkerOnError() //I want to know if it works .UseListQueue() //lets test the List type queue .NotifyOnError(WriteOnConsole) .Start(); await QueueTest(); Console.WriteLine("Finished"); _queueManager.CancelQueue(); Console.WriteLine("Canceled queue"); //lets start again with a BlockingCollectionqueue Console.WriteLine("lets start again with a BlockingCollectionqueue"); _count = 0; _stopped = false; _queueManager .UseBlockingCollectionQueue() .Start(); await QueueTest(); Console.WriteLine("Lets break the queue"); await BreakQueue(); Console.WriteLine("Disable error break"); _queueManager = null; _queueManager = new QueueManager(); Console.WriteLine("Enable error notification ('don't break the queue'"); _queueManager .Start(); await BreakQueue(); Console.ReadKey(); }