Show / Hide Table of Contents

Class DeploymentBase

The base class for deployments.

Inheritance
System.Object
DeploymentBase
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.Applications.Deployment
Assembly: Phoenix.Abstractions.Applications.dll
Syntax
public abstract class DeploymentBase : IDisposable

Constructors

View Source

DeploymentBase(IDevice, DeploymentFactoryBase, ParameterInfo[])

Initializes a new instance of the DeploymentBase class.

Declaration
public DeploymentBase(IDevice device, DeploymentFactoryBase factory, ParameterInfo[] deploymentParameters)
Parameters
Type Name Description
IDevice device

The device targeted for the deployment.

DeploymentFactoryBase factory

The factory used to create the deployment.

ParameterInfo[] deploymentParameters

The parameters corresponding to this deployment.

Properties

View Source

CanCancel

Gets a value indicating whether or not the deployment can be canceled.

Declaration
public bool CanCancel { get; }
Property Value
Type Description
System.Boolean
View Source

CancelTokenSource

Gets the cancellation token source.

Declaration
protected CancellationTokenSource CancelTokenSource { get; }
Property Value
Type Description
System.Threading.CancellationTokenSource
View Source

CanReportProgress

Gets a value indicating whether or the deployment reports progress.

Declaration
public bool CanReportProgress { get; }
Property Value
Type Description
System.Boolean
View Source

Device

Gets the device the deployment is for.

Declaration
public IDevice Device { get; }
Property Value
Type Description
IDevice
View Source

DisplayName

Gets the display name for the deployment.

Declaration
public abstract string DisplayName { get; }
Property Value
Type Description
System.String
View Source

Factory

Gets the factory that created this deployment instance.

Declaration
public DeploymentFactoryBase Factory { get; }
Property Value
Type Description
DeploymentFactoryBase
View Source

Parameters

Gets the parameters for this deployment.

Declaration
public ReadOnlyCollection<ParameterInfo> Parameters { get; }
Property Value
Type Description
System.Collections.ObjectModel.ReadOnlyCollection<ParameterInfo>

Methods

View Source

Cancel()

Cancels the deployment.

Declaration
public void Cancel()
View Source

Dispose()

Disposes the cancellation token.

Declaration
public virtual void Dispose()
View Source

StartDeployment(IProgress<DeploymentProgressInfo>)

Calls into the derived class to start a deployment.

Declaration
public async Task<bool> StartDeployment(IProgress<DeploymentProgressInfo> reportProgress)
Parameters
Type Name Description
System.IProgress<DeploymentProgressInfo> reportProgress

The callback to report progress.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

A task that runs the deployment, returning whether or not it was successful.

View Source

StartDeploymentInternal(IProgress<DeploymentProgressInfo>, CancellationToken)

Starts the deployment.

Declaration
protected abstract Task<bool> StartDeploymentInternal(IProgress<DeploymentProgressInfo> reportProgress, CancellationToken token)
Parameters
Type Name Description
System.IProgress<DeploymentProgressInfo> reportProgress

the callback for reporting progress.

System.Threading.CancellationToken token

the cancellation token.

Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

The task for the deployment

Events

View Source

DeploymentCanceled

The event for when a deployment is canceled.

Declaration
public event DeploymentBase.DeploymentCanceledHandler DeploymentCanceled
Event Type
Type Description
DeploymentBase.DeploymentCanceledHandler
View Source

DeploymentFinished

The event for when a deployment is finished.

Declaration
public event DeploymentBase.DeploymentFinishedHandler DeploymentFinished
Event Type
Type Description
DeploymentBase.DeploymentFinishedHandler

Implements

System.IDisposable
  • View Source
In This Article
Back to top Generated by DocFX