File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
src/Microsoft.AspNetCore.SpaServices/Prerendering Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 1
- using System ;
2
- using System . Collections . Generic ;
3
- using System . Text ;
4
- using Microsoft . AspNetCore . Http ;
5
- using Microsoft . AspNetCore . NodeServices ;
6
- using Microsoft . AspNetCore . SpaServices . Prerendering ;
7
- using Microsoft . Extensions . DependencyInjection . Extensions ;
1
+ using Microsoft . AspNetCore . SpaServices . Prerendering ;
8
2
9
3
namespace Microsoft . Extensions . DependencyInjection
10
4
{
@@ -20,7 +14,7 @@ public static class PrerenderingServiceCollectionExtensions
20
14
/// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param>
21
15
public static void AddSpaPrerenderer ( this IServiceCollection serviceCollection )
22
16
{
23
- serviceCollection . TryAddSingleton < IHttpContextAccessor , HttpContextAccessor > ( ) ;
17
+ serviceCollection . AddHttpContextAccessor ( ) ;
24
18
serviceCollection . AddSingleton < ISpaPrerenderer , DefaultSpaPrerenderer > ( ) ;
25
19
}
26
20
}
You can’t perform that action at this time.
0 commit comments