Wiring up Simple Injector in WebForms in .NET 4.7.2
With the changes in .NET 4.7.2, constructor injection is now possible in Web Forms. I have gotten Simple Injector working with Web Forms, but would like some input as to if there any "gotchas" I might be missing. First I have the registration of the Pages themselves which is taken from here . public static void RegisterWebPages(this Container container) { var pageTypes = from assembly in BuildManager.GetReferencedAssemblies().Cast<Assembly>() where !assembly.IsDynamic where !assembly.GlobalAssemblyCache from type in assembly.GetExportedTypes() where type.IsSubclassOf(typeof(Page)) where !type