コード例 #1
0
 /// <summary>
 /// Creates a new <see cref="TypeRegistrationsProvider"/> that will return all the
 /// configuration for entlib blocks.
 /// </summary>
 /// <param name="configurationSource">Configuration source containing any customizations
 /// to the locator list.</param>
 /// <param name="reconfiguringEventSource">Event source notifying of container reconfiguration events.</param>
 /// <returns>The locator.</returns>
 public static ITypeRegistrationsProvider CreateDefaultProvider(IConfigurationSource configurationSource, IContainerReconfiguringEventSource reconfiguringEventSource)
 {
     return(ConfigurationBasedTypeRegistrationsProviderFactory.CreateProvider(configurationSource, reconfiguringEventSource));
 }
コード例 #2
0
 /// <summary>
 /// Creates a new <see cref="TypeRegistrationsProvider"/> that will return all the
 /// configuration for entlib blocks.
 /// </summary>
 /// <returns>The locator.</returns>
 public static ITypeRegistrationsProvider CreateDefaultProvider()
 {
     return(ConfigurationBasedTypeRegistrationsProviderFactory.CreateProvider());
 }