1 write to _deploymentParameters
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
27_deploymentParameters = deploymentParameters;
33 references to _deploymentParameters
Microsoft.AspNetCore.Server.IntegrationTesting (33)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (33)
29if (_deploymentParameters.ServerType != ServerType.IIS 30&& _deploymentParameters.ServerType != ServerType.Kestrel 31&& _deploymentParameters.ServerType != ServerType.HttpSys) 33throw new InvalidOperationException($"Server type {_deploymentParameters.ServerType} is not supported for remote deployment." + 37if (string.IsNullOrEmpty(_deploymentParameters.ServerName)) 39throw new ArgumentException($"Invalid value '{_deploymentParameters.ServerName}' for {nameof(RemoteWindowsDeploymentParameters.ServerName)}"); 42if (string.IsNullOrEmpty(_deploymentParameters.ServerAccountName)) 44throw new ArgumentException($"Invalid value '{_deploymentParameters.ServerAccountName}' for {nameof(RemoteWindowsDeploymentParameters.ServerAccountName)}." + 48if (string.IsNullOrEmpty(_deploymentParameters.ServerAccountPassword)) 50throw new ArgumentException($"Invalid value '{_deploymentParameters.ServerAccountPassword}' for {nameof(RemoteWindowsDeploymentParameters.ServerAccountPassword)}." + 54if (_deploymentParameters.ApplicationType == ApplicationType.Portable 55&& string.IsNullOrEmpty(_deploymentParameters.DotnetRuntimePath)) 57throw new ArgumentException($"Invalid value '{_deploymentParameters.DotnetRuntimePath}' for {nameof(RemoteWindowsDeploymentParameters.DotnetRuntimePath)}. " + 61if (string.IsNullOrEmpty(_deploymentParameters.RemoteServerFileSharePath)) 67if (string.IsNullOrEmpty(_deploymentParameters.ApplicationBaseUriHint)) 85if (_deploymentParameters.ServerType == ServerType.IIS) 91_deployedFolderPathInFileShare = Path.Combine(_deploymentParameters.RemoteServerFileSharePath, folderId); 94_deploymentParameters.PublishedApplicationRootPath, 121Logger.LogInformation($"Stopping the application on the server '{_deploymentParameters.ServerName}'"); 153var webConfigFilePath = Path.Combine(_deploymentParameters.PublishedApplicationRootPath, "web.config"); 159if (!string.IsNullOrEmpty(_deploymentParameters.DotnetRuntimePath)) 163Path.Combine(_deploymentParameters.DotnetRuntimePath, "dotnet.exe")); 173foreach (var envVariablePair in _deploymentParameters.EnvironmentVariables) 213parameterBuilder.Append(FormattableString.Invariant($" -serverName {_deploymentParameters.ServerName}")); 214parameterBuilder.Append(FormattableString.Invariant($" -accountName {_deploymentParameters.ServerAccountName}")); 215parameterBuilder.Append(FormattableString.Invariant($" -accountPassword {_deploymentParameters.ServerAccountPassword}")); 218if (!string.IsNullOrEmpty(_deploymentParameters.DotnetRuntimePath)) 220parameterBuilder.Append(FormattableString.Invariant($" -dotnetRuntimePath \"{_deploymentParameters.DotnetRuntimePath}\"")); 230parameterBuilder.Append(FormattableString.Invariant($" -serverType {_deploymentParameters.ServerType}")); 232parameterBuilder.Append(FormattableString.Invariant($" -applicationBaseUrl {_deploymentParameters.ApplicationBaseUriHint}")); 233var environmentVariables = string.Join("`,", _deploymentParameters.EnvironmentVariables.Select(envVariable => $"{envVariable.Key}={envVariable.Value}")); 252Logger.LogInformation($"[{_deploymentParameters.ServerName} {serverAction} stdout]: script complete"); 263throw new Exception($"Failed to execute the script on '{_deploymentParameters.ServerName}'.");