<PackageReference Include="Castle.Windsor" Version="4.1.0" />

PerWebRequestLifestyleModuleRegistration

using System.ComponentModel; using System.Security; using System.Web; namespace Castle.MicroKernel.Lifestyle { [SecurityCritical] [EditorBrowsable(EditorBrowsableState.Never)] public static class PerWebRequestLifestyleModuleRegistration { internal const string MicrosoftWebInfrastructureDll = "Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"; public static void Run() { HttpApplication.RegisterModule(typeof(PerWebRequestLifestyleModule)); } } }