public static void Run() { using (var context = ApplicationContext.Create(application => application .Database(database => database .IntegrationDb(integrationDb => integrationDb .Disable())) .Services(services => services .Advanced(advanced => advanced .Register <MyFeature>())))) { MyFeature myFeature = context.Resolve <MyFeature>(); IFeatureToggler toggler = context.Resolve <IFeatureToggler>(); toggler.Disable <MyFeature>(); myFeature.DoThing(); toggler.Enable <MyFeature>(); myFeature.DoThing(); } }
public override void Enable(IFeatureToggler toggler) { toggler.Enable <DbDistributedMutex>(); }
public override void Enable(IFeatureToggler toggler) { toggler.Enable <DbLogger>(); }