ApplicationDeployer Class¶
Abstract base class of all deployers with implementation of some of the common helpers.
- Namespace
Microsoft.AspNetCore.Server.Testing
- Assemblies
- Microsoft.AspNetCore.Server.Testing
Syntax¶
public abstract class ApplicationDeployer : IApplicationDeployer, IDisposable
-
class
Microsoft.AspNetCore.Server.Testing.
ApplicationDeployer
Constructors¶
-
ApplicationDeployer
(Microsoft.AspNetCore.Server.Testing.DeploymentParameters, Microsoft.Extensions.Logging.ILogger)¶ public ApplicationDeployer(DeploymentParameters deploymentParameters, ILogger logger)
-
Methods¶
-
AddEnvironmentVariablesToProcess
(System.Diagnostics.ProcessStartInfo)¶ protected void AddEnvironmentVariablesToProcess(ProcessStartInfo startInfo)
-
CleanPublishedOutput
()¶ protected void CleanPublishedOutput()
-
Deploy
()¶ Return type: Microsoft.AspNetCore.Server.Testing.DeploymentResult public abstract DeploymentResult Deploy()
-
Dispose
()¶ public abstract void Dispose()
-
DotnetPublish
(System.String)¶ protected void DotnetPublish(string publishRoot = null)
-
GetOSPrefix
()¶ Return type: System.String protected static string GetOSPrefix()
-
InvokeUserApplicationCleanup
()¶ protected void InvokeUserApplicationCleanup()
-
SetEnvironmentVariable
(System.Collections.Specialized.StringDictionary, System.String, System.String)¶ protected void SetEnvironmentVariable(StringDictionary environment, string name, string value)
-
ShutDownIfAnyHostProcess
(System.Diagnostics.Process)¶ protected void ShutDownIfAnyHostProcess(Process hostProcess)
-
StartTimer
()¶ protected void StartTimer()
-
StopTimer
()¶ protected void StopTimer()
-
TriggerHostShutdown
(System.Threading.CancellationTokenSource)¶ protected void TriggerHostShutdown(CancellationTokenSource hostShutdownSource)
-
Properties¶
-
Microsoft.AspNetCore.Server.Testing.ApplicationDeployer.
DeploymentParameters
¶ Return type: Microsoft.AspNetCore.Server.Testing.DeploymentParameters protected DeploymentParameters DeploymentParameters { get; }
-
Microsoft.AspNetCore.Server.Testing.ApplicationDeployer.
Logger
¶ Return type: Microsoft.Extensions.Logging.ILogger protected ILogger Logger { get; }
-