File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -59,16 +59,16 @@ public void DefaultsToSqlite()
59
59
Assert . IsType < SqliteContext > ( context ) ;
60
60
}
61
61
62
- private IServiceProvider BuildServiceProvider ( Dictionary < string , string > configs = null )
62
+ private static IServiceProvider BuildServiceProvider ( Dictionary < string , string > configs = null )
63
63
{
64
64
var host = Program
65
- . CreateHostBuilder ( new string [ 0 ] )
65
+ . CreateHostBuilder ( Array . Empty < string > ( ) )
66
66
. ConfigureAppConfiguration ( ( ctx , config ) =>
67
67
{
68
68
config . AddInMemoryCollection ( configs ?? new Dictionary < string , string > ( ) ) ;
69
69
} )
70
70
. Build ( ) ;
71
71
72
- return host . Services ;
72
+ return host . Services . CreateScope ( ) . ServiceProvider ;
73
73
}
74
74
}
Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ public async Task RendersReadme()
334
334
}
335
335
}
336
336
337
- private Package CreatePackage (
337
+ private static Package CreatePackage (
338
338
string version ,
339
339
long downloads = 0 ,
340
340
bool hasReadme = false ,
You can’t perform that action at this time.
0 commit comments