diff --git a/src/NuGetGallery/App_Start/DefaultDependenciesModule.cs b/src/NuGetGallery/App_Start/DefaultDependenciesModule.cs index b837b05fd0..12606e669b 100644 --- a/src/NuGetGallery/App_Start/DefaultDependenciesModule.cs +++ b/src/NuGetGallery/App_Start/DefaultDependenciesModule.cs @@ -203,8 +203,9 @@ protected override void Load(ContainerBuilder builder) .InstancePerLifetimeScope(); builder.RegisterType() + .AsSelf() .As() - .SingleInstance(); + .InstancePerLifetimeScope(); builder.RegisterType() .SingleInstance();