public void Register(Type configType, IConfigDataFactory factory)
 {
     lock (this)
     {
         _factoryMap.Remove(configType);
         _factoryMap.Add(configType, factory);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Registers an <see cref="IConfigDataFactory" /> that will be used to create
 ///     configuration data for a specific configuration type if necessary.
 /// </summary>
 public void RegisterFactory(Type configType, IConfigDataFactory configDataFactory)
 {
     _configDataFactoryManager.Register(configType, configDataFactory);
 }
Exemplo n.º 3
0
 /// <summary>
 ///     Registers an <see cref="IConfigDataFactory" /> that will be used to create
 ///     configuration data for a specific configuration type if necessary.
 /// </summary>
 public void RegisterFactory <T>(IConfigDataFactory configDataFactory)
 {
     RegisterFactory(typeof(T), configDataFactory);
 }