How to handle FeatureFlags? #1012
-
let's say you have a handler to retrieve the weather. And you need to add some business logic on it. should we spread ifs all over the place to control the flow when the feature flag is on or off? or there is a way to create WeatherHandlerV2 and redirect the flow to the proper handler based on the feature flag? |
Beta Was this translation helpful? Give feedback.
Answered by
caiogarcia
Jul 10, 2024
Replies: 1 comment
-
I figure it out by my self, but if you have the same case you can use the following code.
And mark your handlers with |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
caiogarcia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I figure it out by my self, but if you have the same case you can use the following code.
And mark your handlers with
FeatureGate
attribute fromMicrosoft.FeatureManagement.AspNetCore
package.