public static IWindsorContainer RegisterToggles(this IWindsorContainer @this, LaunchDarklyClient client) { @this.UseNamingSubSystemWithToggleSupport(); return(@this); // return // @this.Register( // Component // .For<IValueService>() // .ImplementedBy<NewValueService>() // .Replace(typeof(IValueService), typeof(ValueService)) // .ResolvableIf(() => client.IsFeatureEnabled("new-value-feature")) // ); }
public Startup(IConfiguration configuration) { Configuration = configuration; LaunchDarklyClient = new LaunchDarklyClient(configuration.Get <DemoOptions>().LaunchDarklyOptions); }