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 ;
82
93namespace Microsoft . Extensions . DependencyInjection
104{
@@ -20,7 +14,7 @@ public static class PrerenderingServiceCollectionExtensions
2014 /// <param name="serviceCollection">The <see cref="IServiceCollection"/>.</param>
2115 public static void AddSpaPrerenderer ( this IServiceCollection serviceCollection )
2216 {
23- serviceCollection . TryAddSingleton < IHttpContextAccessor , HttpContextAccessor > ( ) ;
17+ serviceCollection . AddHttpContextAccessor ( ) ;
2418 serviceCollection . AddSingleton < ISpaPrerenderer , DefaultSpaPrerenderer > ( ) ;
2519 }
2620 }
You can’t perform that action at this time.
0 commit comments