/// <summary>
 /// Configures the Apworks framework by using Unity as the object container.
 /// </summary>
 /// <param name="configurator">The <see cref="ISequenceGeneratorConfigurator"/> instance to be extended.</param>
 /// <param name="initFromConfigFile">The <see cref="System.Boolean"/> value which indicates whether the container configuration should be read from the config file.</param>
 /// <param name="sectionName">The name of the section in the config file. This value must be specified when the <paramref name="initFromConfigFile"/> parameter is set to true.</param>
 /// <returns>The <see cref="IObjectContainerConfigurator"/> instace.</returns>
 public static IObjectContainerConfigurator UsingUnityContainer(this ISequenceGeneratorConfigurator configurator, bool initFromConfigFile = false, string sectionName = null)
 {
     return(configurator.UsingObjectContainer <UnityObjectContainer>(initFromConfigFile, sectionName));
 }
 /// <summary>
 /// 通过使用Autofac作为对象容器来配置OFoods框架.
 /// </summary>
 public static IObjectContainerConfigurator UseAutofacContainer(this ISequenceGeneratorConfigurator configurator, bool initFromConfigFile = false, string configPath = null)
 {
     return(configurator.UsingObjectContainer <AutofacObjectContainer>(initFromConfigFile, configPath));
 }