Skip to content

Commit

Permalink
RegisterWebApiControllers overload added
Browse files Browse the repository at this point in the history
  • Loading branch information
dot_net_junkie committed Aug 18, 2015
1 parent e6f9a40 commit fc1e1a6
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,23 @@ public static void RegisterWebApiControllers(this Container container, HttpConfi

RegisterWebApiControllers(container, configuration, assemblies);
}

/// <summary>
/// Registers the Web API <see cref="IHttpController"/> types that available for the application. This
/// method uses the configured <see cref="IHttpControllerTypeResolver"/> to determine which controller
/// types to register.
/// </summary>
/// <param name="container">The container the controllers should be registered in.</param>
/// <param name="configuration">The <see cref="HttpConfiguration"/> to use to get the Controller
/// types to register.</param>
/// <param name="assemblies">The assemblies to search.</param>
/// <exception cref="ArgumentNullException">Thrown when one of the arguments is a null
/// reference (Nothing in VB).</exception>
public static void RegisterWebApiControllers(this Container container, HttpConfiguration configuration,
params Assembly[] assemblies)
{
container.RegisterWebApiControllers(configuration, (IEnumerable<Assembly>)assemblies);
}

/// <summary>
/// Registers the Web API <see cref="IHttpController"/> types that available for the application. This
Expand Down

0 comments on commit fc1e1a6

Please sign in to comment.