Exemplo n.º 1
0
        public async Task CanPrimeTheNexusCache()
        {
            var sql = Fixture.GetService <SqlService>();

            Assert.True(await GetNexusUpdatesJob.UpdateNexusCacheFast(sql) > 0);
            Assert.True(await GetNexusUpdatesJob.UpdateNexusCacheFast(sql) == 0);
        }
Exemplo n.º 2
0
        private async Task RunNexusCacheLoop()
        {
            while (true)
            {
                await GetNexusUpdatesJob.UpdateNexusCacheFast(Sql);

                await Task.Delay(TimeSpan.FromMinutes(1));
            }
        }