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