예제 #1
0
        public IModuleRegistrator IncludeSubgroup(string subgroupName, Action <IModuleFunctionRegistrator> regModule)
        {
            subgroupName.Guard("SubgroupName must not be null.");
            regModule.Guard("Action<IModuleFunctionRegistrator> must not be null.");
            IModuleRegistrator moduleRegistrator = new ModuleRegistrator(_moduleFunctionCollectionContainer, _groupModuleName, subgroupName);

            regModule(moduleRegistrator);
            return(moduleRegistrator);
        }
 public ModuleSpecialFunctionRegistrator(ModuleRegistrator moduleRegistrator)
 {
     moduleRegistrator.Guard("ModuleRegistrator must not be null.");
     _moduleRegistrator   = moduleRegistrator;
     _functionRegistrator = new FunctionRegistrator(_moduleRegistrator);
 }
예제 #3
0
 public FunctionRegistrator(ModuleRegistrator moduleRegistrator)
 {
     moduleRegistrator.Guard("ModuleRegistrator must not be null.");
     _moduleRegistrator = moduleRegistrator;
 }