Ejemplo n.º 1
0
        public static GlobalModuleFeaturesDictionary CmsKit(
            [NotNull] this GlobalModuleFeaturesDictionary modules,
            [NotNull] Action <GlobalCmsKitFeatures> configureAction)
        {
            Check.NotNull(configureAction, nameof(configureAction));

            configureAction(modules.CmsKit());

            return(modules);
        }
Ejemplo n.º 2
0
        public static GlobalCmsKitFeatures CmsKit(
            [NotNull] this GlobalModuleFeaturesDictionary modules)
        {
            Check.NotNull(modules, nameof(modules));

            return(modules
                   .GetOrAdd(
                       GlobalCmsKitFeatures.ModuleName,
                       _ => new GlobalCmsKitFeatures(modules.FeatureManager)
                       )
                   as GlobalCmsKitFeatures);
        }
Ejemplo n.º 3
0
 internal GlobalFeatureManager()
 {
     EnabledFeatures = new HashSet <string>();
     Configuration   = new Dictionary <object, object>();
     Modules         = new GlobalModuleFeaturesDictionary(this);
 }