Beispiel #1
0
 // Overrides
 public override Task OnConnected()
 {
     Interlocked.Increment(ref ConnectionCount);
     if (AppSettings.EnableSolutionDbScan)
     {
         JudgeHubManager.EnsureDbScanTaskRunning();
     }
     return(Task.FromResult(0));
 }
Beispiel #2
0
 public JudgeHub()
 {
     _db      = ApplicationDbContext.Create();
     _manager = new JudgeHubManager(_db);
 }
Beispiel #3
0
        public async Task <List <SolutionPushModel> > GetAll()
        {
            var models = await JudgeHubManager.GetPushModelFromDb(_db);

            return(models);
        }