private void PreRequestHandlerExecute(object sender, EventArgs e) { var handler = this.application.Context.CurrentHandler; if (handler != null) { HandlerInitializer.Initialize(handler, this.GetContainer()); } }
internal static void Initialize(IHttpHandler handler, Container container) { var initializer = new HandlerInitializer(handler, container); initializer.InitializeHttpHandler(); }