DeploymentParameters Class

Parameters to control application deployment.

Namespace
Microsoft.AspNetCore.Server.Testing
Assemblies
  • Microsoft.AspNetCore.Server.Testing

Syntax

public class DeploymentParameters
class Microsoft.AspNetCore.Server.Testing.DeploymentParameters

Constructors

DeploymentParameters(System.String, Microsoft.AspNetCore.Server.Testing.ServerType, Microsoft.AspNetCore.Server.Testing.RuntimeFlavor, Microsoft.AspNetCore.Server.Testing.RuntimeArchitecture)

Creates an instance of Microsoft.AspNetCore.Server.Testing.DeploymentParameters.

Arguments:
public DeploymentParameters(string applicationPath, ServerType serverType, RuntimeFlavor runtimeFlavor, RuntimeArchitecture runtimeArchitecture)

Properties

Microsoft.AspNetCore.Server.Testing.DeploymentParameters.ApplicationBaseUriHint

Suggested base url for the deployed application. The final deployed url could be different than this. Use Microsoft.AspNetCore.Server.Testing.DeploymentResult.ApplicationBaseUri for the deployed url.

Return type:System.String
public string ApplicationBaseUriHint { get; set; }
Microsoft.AspNetCore.Server.Testing.DeploymentParameters.ApplicationPath
Return type:System.String
public string ApplicationPath { get; }
Microsoft.AspNetCore.Server.Testing.DeploymentParameters.ApplicationType
Return type:Microsoft.AspNetCore.Server.Testing.ApplicationType
public ApplicationType ApplicationType { get; set; }
Microsoft.AspNetCore.Server.Testing.DeploymentParameters.EnvironmentName
Return type:System.String
public string EnvironmentName { get; set; }
Microsoft.AspNetCore.Server.Testing.DeploymentParameters.EnvironmentVariables

Environment variables to be set before starting the host. Not applicable for IIS Scenarios.

Return type:System.Collections.Generic.List<System.Collections.Generic.KeyValuePair<System.String>>
public List<KeyValuePair<string, string>> EnvironmentVariables { get; }
Microsoft.AspNetCore.Server.Testing.DeploymentParameters.PublishApplicationBeforeDeployment

To publish the application before deployment.

Return type:System.Boolean
public bool PublishApplicationBeforeDeployment { get; set; }
Microsoft.AspNetCore.Server.Testing.DeploymentParameters.PublishedApplicationRootPath
Return type:System.String
public string PublishedApplicationRootPath { get; set; }
Microsoft.AspNetCore.Server.Testing.DeploymentParameters.RuntimeArchitecture
Return type:Microsoft.AspNetCore.Server.Testing.RuntimeArchitecture
public RuntimeArchitecture RuntimeArchitecture { get; }
Microsoft.AspNetCore.Server.Testing.DeploymentParameters.RuntimeFlavor
Return type:Microsoft.AspNetCore.Server.Testing.RuntimeFlavor
public RuntimeFlavor RuntimeFlavor { get; }
Microsoft.AspNetCore.Server.Testing.DeploymentParameters.ServerConfigLocation
Return type:System.String
public string ServerConfigLocation { get; set; }
Microsoft.AspNetCore.Server.Testing.DeploymentParameters.ServerConfigTemplateContent
Return type:System.String
public string ServerConfigTemplateContent { get; set; }
Microsoft.AspNetCore.Server.Testing.DeploymentParameters.ServerType
Return type:Microsoft.AspNetCore.Server.Testing.ServerType
public ServerType ServerType { get; }
Microsoft.AspNetCore.Server.Testing.DeploymentParameters.SiteName
Return type:System.String
public string SiteName { get; set; }
Microsoft.AspNetCore.Server.Testing.DeploymentParameters.TargetFramework
Return type:System.String
public string TargetFramework { get; set; }
Microsoft.AspNetCore.Server.Testing.DeploymentParameters.UserAdditionalCleanup

For any application level cleanup to be invoked after performing host cleanup.

Return type:System.Action<Microsoft.AspNetCore.Server.Testing.DeploymentParameters>
public Action<DeploymentParameters> UserAdditionalCleanup { get; set; }

Methods

ToString()
Return type:System.String
public override string ToString()