예제 #1
0
 //InjectConfigurator
 /// <summary>
 /// Injects the IOC Container configurator instance into the <see cref="Ioc"/> class.
 /// </summary>
 /// <param name="configurator">
 /// The <see cref="IIocContainerConfigurator"/> to inject.
 /// </param>
 /// <remarks>
 /// This method is primarily used for unit testing purposes.
 /// </remarks>
 public static void InjectConfigurator(IIocContainerConfigurator configurator)
 {
     lock (Ioc.typeLock)
     {
         Ioc.configurator = configurator;
     }
 }
예제 #2
0
 //InjectConfigurator
 /// <summary>
 /// Injects the IOC Container configurator instance into the <see cref="Ioc"/> class.
 /// </summary>
 /// <param name="configurator">
 /// The <see cref="IIocContainerConfigurator"/> to inject.
 /// </param>
 /// <remarks>
 /// This method is primarily used for unit testing purposes.
 /// </remarks>
 public static void InjectConfigurator(IIocContainerConfigurator configurator)
 {
     lock (Ioc.typeLock)
     {
         Ioc.configurator = configurator;
     }
 }