/// <summary>
 /// Configures the execution module to use the StructureMap container
 /// to build object instances.
 /// </summary>
 /// <param name="config">Module configuration.</param>
 /// <param name="container">The specific container to use.</param>
 /// <returns>Module configuration.</returns>
 public static ModuleConfig UseStructureMap(this ModuleConfig config, IContainer container)
 {
     config.UseBuilder(new StructureMapBuilder(container));
     return(config);
 }
 /// <summary>
 /// Configures the execution module to use the StructureMap container
 /// to build object instances.
 /// </summary>
 /// <param name="config">Module configuration.</param>
 /// <param name="container">The specific container to use.</param>
 /// <returns>Module configuration.</returns>
 public static ModuleConfig UseAutofac(this ModuleConfig config, IContainer container)
 {
     config.UseBuilder(new AutofacBuilder(container));
     return(config);
 }