/// <summary> /// Registers all controller types from the given assembly. /// </summary> /// <param name="map">The target dependency map.</param> /// <param name="assembly">The assembly that contains the controller types being registered.</param> public static void RegisterAllControllersFrom(this DependencyMap map, Assembly assembly) { map.RegisterAllControllersFrom(new[] { assembly }); }
/// <summary> /// Registers all controller types from the given assembly. /// </summary> /// <param name="map">The target dependency map.</param> /// <typeparam name="T">A type that is hosted within the target assembly.</typeparam> public static void RegisterAllControllersFromAssemblyOf <T>(this DependencyMap map) { map.RegisterAllControllersFrom(typeof(T).Assembly); }