We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4295a57 commit 18c3ad2Copy full SHA for 18c3ad2
samples/MvcSample.Web/Startup.cs
@@ -49,8 +49,8 @@ public IServiceProvider ConfigureServices(IServiceCollection services)
49
50
var configuration = configBuilder.Build();
51
52
- string diSystem;
53
- if (configuration.TryGet("DependencyInjection", out diSystem) &&
+ var diSystem = configuration["DependencyInjection"];
+ if (!string.IsNullOrEmpty(diSystem) &&
54
diSystem.Equals("AutoFac", StringComparison.OrdinalIgnoreCase))
55
{
56
_autoFac = true;
0 commit comments