Пример #1
0
 /// <remarks>
 /// Adds a new builder to this factory. After the builder is added
 /// Modules from the builder type can be created by the factory
 /// </remarks>
 /// <exception cref="DuplicateModuleException">
 /// Is thrown when a Module builder with the same <code>ModuleName</code>
 /// was already inserted
 /// </exception>
 public void AddModuleBuilder(ModuleBuilder builder)
 {
     if (moduleHashtable[builder.ModuleName] != null) {
         throw new DuplicateModuleException(builder.ModuleName);
     }
     moduleHashtable[builder.ModuleName] = builder;
 }
Пример #2
0
 public void AddModuleProvider(string className, Assembly assembly)
 {
     ModuleBuilder provider = new ModuleBuilder(className, assembly);
     moduleProviderList.Add(provider);
 }