コード例 #1
0
        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"))
            //     );
        }
コード例 #2
0
 public Startup(IConfiguration configuration)
 {
     Configuration      = configuration;
     LaunchDarklyClient = new LaunchDarklyClient(configuration.Get <DemoOptions>().LaunchDarklyOptions);
 }