ApplicationDeployer ApplicationDeployer Class

Definition

Abstract base class of all deployers with implementation of some of the common helpers.

public abstract class ApplicationDeployer : IApplicationDeployer, IDisposable
Public MustInherit Class ApplicationDeployer
    Implements IApplicationDeployer, IDisposable
Inheritance
ApplicationDeployerApplicationDeployer
Implements

Constructors

ApplicationDeployer(DeploymentParameters, ILogger) ApplicationDeployer(DeploymentParameters, ILogger)

public ApplicationDeployer(DeploymentParameters deploymentParameters, ILogger logger)
Public Sub New(deploymentParameters As DeploymentParameters, logger As ILogger)
Parameters
logger
ILogger ILogger

Fields

DotnetArgumentSeparator DotnetArgumentSeparator

public static readonly string DotnetArgumentSeparator
Public Shared ReadOnly DotnetArgumentSeparator As String

DotnetCommandName DotnetCommandName

public static readonly string DotnetCommandName
Public Shared ReadOnly DotnetCommandName As String

Properties

DeploymentParameters DeploymentParameters

protected DeploymentParameters DeploymentParameters { get; }
Protected ReadOnly Property DeploymentParameters As DeploymentParameters

Logger Logger

protected ILogger Logger { get; }
Protected ReadOnly Property Logger As ILogger

Methods

AddEnvironmentVariablesToProcess(ProcessStartInfo, List<>>) AddEnvironmentVariablesToProcess(ProcessStartInfo, List(Of KeyValuePair(Of String, String)))

protected void AddEnvironmentVariablesToProcess(ProcessStartInfo startInfo, List<KeyValuePair<string, string>> environmentVariables)
Protected Sub AddEnvironmentVariablesToProcess(startInfo As ProcessStartInfo, environmentVariables As List(Of KeyValuePair(Of String, String)))
Parameters
environmentVariables
System.Collections.Generic.List<KeyValuePair<String, String>> System.Collections.Generic.List(Of KeyValuePair(Of String, String))

CleanPublishedOutput() CleanPublishedOutput()

protected void CleanPublishedOutput()
Protected Sub CleanPublishedOutput

Deploy() Deploy()

public abstract DeploymentResult Deploy()
Public MustOverride Function Deploy As DeploymentResult
Returns

Dispose() Dispose()

public abstract void Dispose()
Public MustOverride Sub Dispose

DotnetPublish(String) DotnetPublish(String)

protected void DotnetPublish(string publishRoot = null)
Protected Sub DotnetPublish(publishRoot As String = Nothing)
Parameters
publishRoot
String String

Equals(Object) Equals(Object)

Inherited from Object

Equals(Object, Object) Equals(Object, Object)

Inherited from Object

GetHashCode() GetHashCode()

Inherited from Object

GetType() GetType()

Inherited from Object

InvokeUserApplicationCleanup() InvokeUserApplicationCleanup()

protected void InvokeUserApplicationCleanup()
Protected Sub InvokeUserApplicationCleanup

MemberwiseClone() MemberwiseClone()

Inherited from Object

ReferenceEquals(Object, Object) ReferenceEquals(Object, Object)

Inherited from Object

SetEnvironmentVariable(StringDictionary, String, String) SetEnvironmentVariable(StringDictionary, String, String)

protected void SetEnvironmentVariable(StringDictionary environment, string name, string value)
Protected Sub SetEnvironmentVariable(environment As StringDictionary, name As String, value As String)
Parameters
name
String String
value
String String

ShutDownIfAnyHostProcess(Process) ShutDownIfAnyHostProcess(Process)

protected void ShutDownIfAnyHostProcess(Process hostProcess)
Protected Sub ShutDownIfAnyHostProcess(hostProcess As Process)
Parameters
hostProcess
Process Process

StartTimer() StartTimer()

protected void StartTimer()
Protected Sub StartTimer

StopTimer() StopTimer()

protected void StopTimer()
Protected Sub StopTimer

ToString() ToString()

Inherited from Object

TriggerHostShutdown(CancellationTokenSource) TriggerHostShutdown(CancellationTokenSource)

protected void TriggerHostShutdown(CancellationTokenSource hostShutdownSource)
Protected Sub TriggerHostShutdown(hostShutdownSource As CancellationTokenSource)
Parameters