Add HttpContextAccessor to service registration
HttpContextAccessor is now included in the service container to enable dependency injection for accessing HTTP context. This improves support for features that require context details during runtime.
This commit is contained in:
parent
e0c1dafbbb
commit
44b61aa24e
|
|
@ -199,6 +199,7 @@ public class IdentityFeature : FeatureBase
|
|||
.AddScoped<ISecretGenerator, DefaultSecretGenerator>()
|
||||
.AddScoped<IRandomStringGenerator, DefaultRandomStringGenerator>()
|
||||
.AddScoped<DefaultApiKeyGeneratorAndParser>()
|
||||
.AddHttpContextAccessor()
|
||||
;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue