Exemple #1
0
 /// <summary>
 ///     Adds an <see cref="IFactory" /> instance and associates it
 ///     with the given <paramref name="serviceType">service type</paramref> and
 ///     <paramref name="serviceName">service name</paramref>.
 /// </summary>
 /// <param name="serviceName">The name of the service to associate with the given <see cref="IFactory" /> instance.</param>
 /// <param name="serviceType">The type of service that the factory will be able to create.</param>
 /// <param name="additionalParameterTypes">The list of additional parameters that this factory type will support.</param>
 /// <param name="factory">The <see cref="IFactory" /> instance that will create the object instance.</param>
 public virtual void AddFactory(string serviceName, Type serviceType, IEnumerable <Type> additionalParameterTypes,
                                IFactory factory)
 {
     FactoryStorage.AddFactory(serviceName, serviceType, additionalParameterTypes, factory);
 }