protected override async Task ExecuteAsync(CancellationToken stoppingToken) { using (var scope = _scopeFactory.CreateScope()) { VooperContext tempc = scope.ServiceProvider.GetRequiredService <VooperContext>(); } try { while (!stoppingToken.IsCancellationRequested) { using (var scope = _scopeFactory.CreateScope()) { VooperContext context = scope.ServiceProvider.GetRequiredService <VooperContext>(); await EconomyManager.RunQueue(context); } } } catch (System.Exception e) { Console.WriteLine("FATAL TRANSACTION ERROR: " + e.StackTrace); } }