using System; using System.Collections.Generic; using System.Text; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.NodeServices; using Microsoft.AspNetCore.SpaServices.Prerendering; using Microsoft.Extensions.DependencyInjection.Extensions; namespace Microsoft.Extensions.DependencyInjection { /// /// Extension methods for setting up prerendering features in an . /// public static class PrerenderingServiceCollectionExtensions { /// /// Configures the dependency injection system to supply an implementation /// of . /// /// The . public static void AddSpaPrerenderer(this IServiceCollection serviceCollection) { serviceCollection.TryAddSingleton(); serviceCollection.AddSingleton(); } } }