We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8cb11b commit e5feec1Copy full SHA for e5feec1
1 file changed
src/ServiceCollectionExtensions.cs
@@ -17,6 +17,8 @@ public static class ServiceCollectionExtensions
17
/// </summary>
18
public static IServiceCollection AddServiceWorker(this IServiceCollection services)
19
{
20
+
21
+ services.TryAddSingleton<IHttpContextAccessor, HttpContextAccessor>();
22
services.AddTransient<ITagHelperComponent, ServiceWorkerTagHelperComponent>();
23
services.AddTransient(svc => new PwaOptions(svc.GetRequiredService<IConfiguration>()));
24
0 commit comments