File tree 1 file changed +2
-1
lines changed
test/Microsoft.AspNetCore.Session.Tests
1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 16
16
using Microsoft . Extensions . DependencyInjection ;
17
17
using Microsoft . Extensions . Internal ;
18
18
using Microsoft . Extensions . Logging ;
19
+ using Microsoft . Extensions . Logging . Abstractions ;
19
20
using Microsoft . Extensions . Logging . Testing ;
20
21
using Microsoft . Net . Http . Headers ;
21
22
using Xunit ;
@@ -417,7 +418,7 @@ public async Task RefreshesSession_WhenSessionData_IsNotModified()
417
418
} )
418
419
. ConfigureServices ( services =>
419
420
{
420
- services . AddSingleton ( typeof ( ILoggerFactory ) , new NullLoggerFactory ( ) ) ;
421
+ services . AddSingleton ( typeof ( ILoggerFactory ) , NullLoggerFactory . Instance ) ;
421
422
services . AddDistributedMemoryCache ( ) ;
422
423
services . AddSession ( o => o . IdleTimeout = TimeSpan . FromMinutes ( 20 ) ) ;
423
424
services . Configure < MemoryCacheOptions > ( o => o . Clock = clock ) ;
You can’t perform that action at this time.
0 commit comments