static void Main() { ServiceWrapper service = new ServiceWrapper(); Console.WriteLine("Setup finished... Press enter to start"); Console.ReadLine(); service.doWork(); // Instanciar um ServiceProvider + Working service.doWork(); // Working service.doWork(); // Working GC.Collect(); service.doWork(); // Instanciar um ServiceProvider + Working service.doWork(); // Working }