-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump version to 3.1.1 & Adjust title level in README #329
Conversation
README.md
Outdated
@@ -141,7 +144,7 @@ A `RequirementType` of `All` changes the traversal. First, if there are no filte | |||
|
|||
In the above example, `FeatureW` specifies a `RequirementType` of `All`, meaning all of it's filters must evaluate to true for the feature to be enabled. In this case, the feature will be enabled for 50% of users during the specified time window. | |||
|
|||
### Service Registration | |||
## Service Registration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the root title should be Consumption and then it goes over featureManager.IsEnabledAsync
right away.
Then it Service Registration, and DI can be following subsections.
Feature check section would no longer be needed.
And I'd suggest moving the scoped services section last in the Consumption parent section.
So
Consumption (Immediate text replaces feature check section)
- Service Registration
- Dependency Injection
- Scoped Feature Management Services
README.md
Outdated
@@ -439,7 +447,7 @@ public void ConfigureServices(IServiceCollection services) | |||
**Advanced:** `IHttpContextAccessor`/`HttpContext` should not be used in the Razor components of server-side Blazor apps. [The recommended approach](https://learn.microsoft.com/en-us/aspnet/core/blazor/security/server/interactive-server-side-rendering?view=aspnetcore-7.0#ihttpcontextaccessorhttpcontext-in-razor-components) for passing http context in Blazor apps is to copy the data into a scoped service. For Blazor apps, `AddScopedFeatureManagement` should be used to register the feature management services. | |||
Please refer to the `Scoped Feature Management Services` section for more details. | |||
|
|||
## Providing a Context For Feature Evaluation | |||
### Providing a Context For Feature Evaluation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't consider this a subsection of implementing a filter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And perhaps the built-in filters section should be promoted a level.
76da523
to
2697fa8
Compare
No description provided.