internal FeatureToggleRouterImpl(ToggleContextHandler <TFeature, TToggleContext> handler)
 {
     _handler = handler;
 }
Beispiel #2
0
 public static IServiceCollection ConfigureFeatureToggleRouter <TFeature, TToggleContext>(this IServiceCollection services, ToggleContextHandler <TFeature, TToggleContext> toggleRouter)
     where TFeature : Feature
 {
     return(services.AddTransient <IFeatureToggleRouter <TFeature, TToggleContext> >(_ => new FeatureToggleRouterImpl <TFeature, TToggleContext>(toggleRouter)));
 }