Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/aspnetcore.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/Servers/IIS/IntegrationTesting.IIS/src/IISDeployer.cs')
-rw-r--r--src/Servers/IIS/IntegrationTesting.IIS/src/IISDeployer.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Servers/IIS/IntegrationTesting.IIS/src/IISDeployer.cs b/src/Servers/IIS/IntegrationTesting.IIS/src/IISDeployer.cs
index e00dca54d2..509f81db63 100644
--- a/src/Servers/IIS/IntegrationTesting.IIS/src/IISDeployer.cs
+++ b/src/Servers/IIS/IntegrationTesting.IIS/src/IISDeployer.cs
@@ -158,14 +158,14 @@ public class IISDeployer : IISDeployerBase
{
// Handle cases where debug file is redirected by test
var debugLogLocations = new List<string>();
- if (IISDeploymentParameters.HandlerSettings.ContainsKey("debugFile"))
+ if (IISDeploymentParameters.HandlerSettings.TryGetValue("debugFile", out var debugFile))
{
- debugLogLocations.Add(IISDeploymentParameters.HandlerSettings["debugFile"]);
+ debugLogLocations.Add(debugFile);
}
- if (DeploymentParameters.EnvironmentVariables.ContainsKey("ASPNETCORE_MODULE_DEBUG_FILE"))
+ if (DeploymentParameters.EnvironmentVariables.TryGetValue("ASPNETCORE_MODULE_DEBUG_FILE", out debugFile))
{
- debugLogLocations.Add(DeploymentParameters.EnvironmentVariables["ASPNETCORE_MODULE_DEBUG_FILE"]);
+ debugLogLocations.Add(debugFile);
}
// default debug file name
@@ -397,7 +397,7 @@ public class IISDeployer : IISDeployerBase
Logger.LogInformation($"Stopping pool, state: {state}");
}
}
-
+
// Make sure all sites are stopped
foreach (var site in serverManager.Sites)
{