1 write to DeploymentParameters
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Deployers\ApplicationDeployer.cs (1)
23
DeploymentParameters
= deploymentParameters;
79 references to DeploymentParameters
Microsoft.AspNetCore.Server.IntegrationTesting (79)
Deployers\ApplicationDeployer.cs (26)
32
if (
DeploymentParameters
.ServerType == ServerType.None)
34
throw new ArgumentException($"Invalid ServerType '{
DeploymentParameters
.ServerType}'.");
37
if (
DeploymentParameters
.RuntimeFlavor == RuntimeFlavor.None && !string.IsNullOrEmpty(
DeploymentParameters
.TargetFramework))
39
DeploymentParameters
.RuntimeFlavor = GetRuntimeFlavor(
DeploymentParameters
.TargetFramework);
42
if (
DeploymentParameters
.ApplicationPublisher == null)
44
ArgumentException.ThrowIfNullOrEmpty(
DeploymentParameters
.ApplicationPath);
46
if (!Directory.Exists(
DeploymentParameters
.ApplicationPath))
48
throw new DirectoryNotFoundException($"Application path {
DeploymentParameters
.ApplicationPath} does not exist.");
51
if (string.IsNullOrEmpty(
DeploymentParameters
.ApplicationName))
53
DeploymentParameters
.ApplicationName = new DirectoryInfo(
DeploymentParameters
.ApplicationPath).Name;
77
var publisher =
DeploymentParameters
.ApplicationPublisher ?? new ApplicationPublisher(
DeploymentParameters
.ApplicationPath);
78
_publishedApplication = publisher.Publish(
DeploymentParameters
, Logger).GetAwaiter().GetResult();
79
DeploymentParameters
.PublishedApplicationRootPath = _publishedApplication.Path;
86
if (
DeploymentParameters
.PreservePublishedApplicationForDebugging)
90
$"'{nameof(
DeploymentParameters
.PreservePublishedApplicationForDebugging)}' is set to 'true'.");
103
if (DotNetCommands.IsRunningX86OnX64(
DeploymentParameters
.RuntimeArchitecture))
105
executableName = DotNetCommands.GetDotNetExecutable(
DeploymentParameters
.RuntimeArchitecture);
141
ProcessHelpers.SetEnvironmentVariable(environment, "ASPNETCORE_ENVIRONMENT",
DeploymentParameters
.EnvironmentName, Logger);
149
if (
DeploymentParameters
.UserAdditionalCleanup != null)
154
DeploymentParameters
.UserAdditionalCleanup(
DeploymentParameters
);
179
Logger.LogInformation($"Deploying {
DeploymentParameters
}");
Deployers\NginxDeployer.cs (15)
34
var uri = string.IsNullOrEmpty(
DeploymentParameters
.ApplicationBaseUriHint) ?
36
new Uri(
DeploymentParameters
.ApplicationBaseUriHint);
58
if (
DeploymentParameters
.RuntimeFlavor == RuntimeFlavor.CoreClr
59
&&
DeploymentParameters
.ApplicationType == ApplicationType.Standalone)
62
DeploymentParameters
.PublishApplicationBeforeDeployment = true;
65
if (
DeploymentParameters
.PublishApplicationBeforeDeployment)
94
DeploymentParameters
,
96
contentRoot:
DeploymentParameters
.ApplicationPath,
138
var pidFile = Path.Combine(
DeploymentParameters
.ApplicationPath, $"{Guid.NewGuid()}.nginx.pid");
139
var errorLog = Path.Combine(
DeploymentParameters
.ApplicationPath, "nginx.error.log");
140
var accessLog = Path.Combine(
DeploymentParameters
.ApplicationPath, "nginx.access.log");
141
DeploymentParameters
.ServerConfigTemplateContent =
DeploymentParameters
.ServerConfigTemplateContent
153
Logger.LogTrace($"Config File Content:{Environment.NewLine}===START CONFIG==={Environment.NewLine}{{configContent}}{Environment.NewLine}===END CONFIG===",
DeploymentParameters
.ServerConfigTemplateContent);
155
File.WriteAllText(_configFile,
DeploymentParameters
.ServerConfigTemplateContent);
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (7)
103
DeploymentParameters
,
104
DeploymentParameters
.ApplicationBaseUriHint);
141
Logger.LogInformation($"Deleting the locally published folder '{
DeploymentParameters
.PublishedApplicationRootPath}'");
142
Directory.Delete(
DeploymentParameters
.PublishedApplicationRootPath, recursive: true);
146
Logger.LogWarning(0, ex, $"Failed to delete the locally published folder '{
DeploymentParameters
.PublishedApplicationRootPath}'.");
200
var applicationName = new DirectoryInfo(
DeploymentParameters
.ApplicationPath).Name;
201
if (
DeploymentParameters
.ApplicationType == ApplicationType.Portable)
Deployers\SelfHostDeployer.cs (31)
39
if (
DeploymentParameters
.RuntimeFlavor == RuntimeFlavor.Clr
40
&&
DeploymentParameters
.RuntimeArchitecture == RuntimeArchitecture.x86)
43
DeploymentParameters
.PublishApplicationBeforeDeployment = true;
46
if (
DeploymentParameters
.RuntimeFlavor == RuntimeFlavor.CoreClr
47
&&
DeploymentParameters
.ApplicationType == ApplicationType.Standalone)
50
DeploymentParameters
.PublishApplicationBeforeDeployment = true;
53
if (
DeploymentParameters
.PublishApplicationBeforeDeployment)
59
DeploymentParameters
.ServerType,
60
DeploymentParameters
.Scheme,
61
DeploymentParameters
.ApplicationBaseUriHint,
62
DeploymentParameters
.StatusMessagesEnabled);
71
DeploymentParameters
,
73
contentRoot:
DeploymentParameters
.PublishApplicationBeforeDeployment ?
DeploymentParameters
.PublishedApplicationRootPath :
DeploymentParameters
.ApplicationPath,
85
var executableExtension =
DeploymentParameters
.ApplicationType == ApplicationType.Portable ? ".dll"
88
if (
DeploymentParameters
.PublishApplicationBeforeDeployment)
90
workingDirectory =
DeploymentParameters
.PublishedApplicationRootPath;
96
var targetFramework =
DeploymentParameters
.TargetFramework
97
?? (
DeploymentParameters
.RuntimeFlavor == RuntimeFlavor.Clr ? Tfm.Net462 : Tfm.NetCoreApp22);
98
workingDirectory = Path.Combine(
DeploymentParameters
.ApplicationPath, "bin",
DeploymentParameters
.Configuration, targetFramework);
100
DeploymentParameters
.EnvironmentVariables["ASPNETCORE_CONTENTROOT"] =
DeploymentParameters
.ApplicationPath;
103
var executable = Path.Combine(workingDirectory,
DeploymentParameters
.ApplicationName + executableExtension);
105
if (
DeploymentParameters
.RuntimeFlavor == RuntimeFlavor.CoreClr &&
DeploymentParameters
.ApplicationType == ApplicationType.Portable)
115
var server =
DeploymentParameters
.ServerType == ServerType.HttpSys
140
AddEnvironmentVariablesToProcess(startInfo,
DeploymentParameters
.EnvironmentVariables);
193
if (
DeploymentParameters
.StatusMessagesEnabled)
211
if (
DeploymentParameters
.PublishApplicationBeforeDeployment)