/// <summary> /// Initializes all the registered <see cref="IHttpModule"/> instances. /// </summary> /// <remarks> /// This code has to live here in order for the pieces to work correctly with /// the ASP.NET runtime on IIS6/7. /// </remarks> public void Init(HttpApplication context) { if (context == null) return; var locator = context.ServiceLocator(); var manager = GetModuleManager(locator); if (manager == null) return; manager.InitializeModules(context); }