Show / Hide Table of Contents

Class DeploymentModel

Contains the model information relating to a specific deployment to a selection of devices.

Inheritance
System.Object
DeploymentModel
Namespace: Phoenix.Applications.Deployment
Assembly: Phoenix.Plugin.AppDeployment.dll
Syntax
public class DeploymentModel : BindableBase

Constructors

View Source

DeploymentModel(DeploymentModel)

Initializes a new instance of the DeploymentModel class.

Declaration
public DeploymentModel(DeploymentModel cloneSource)
Parameters
Type Name Description
DeploymentModel cloneSource

The deployment model to clone from.

View Source

DeploymentModel(IList<IDevice>)

Initializes a new instance of the DeploymentModel class.

Declaration
public DeploymentModel(IList<IDevice> targetDevices)
Parameters
Type Name Description
System.Collections.Generic.IList<IDevice> targetDevices

The devices selected for the model.

Properties

View Source

DeploymentCompleted

Gets or sets a value indicating whether or not the deployment is completed.

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

DeploymentFactory

Gets or sets the selected deployment factory.

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

DeploymentParameters

Gets the parameters specific to this deployment.

Declaration
public ObservableCollection<ParameterInfo> DeploymentParameters { get; }
Property Value
Type Description
System.Collections.ObjectModel.ObservableCollection<ParameterInfo>
View Source

DeploymentStatus

Gets the current aggregate deployment status.

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

DeviceDeployments

Gets the device deployment models for this deployment.

Declaration
public ObservableCollection<DeviceDeploymentModel> DeviceDeployments { get; }
Property Value
Type Description
System.Collections.ObjectModel.ObservableCollection<DeviceDeploymentModel>
View Source

DevicesFailed

Gets the number of devices that have failed their deployments.

Declaration
public int DevicesFailed { get; }
Property Value
Type Description
System.Int32
View Source

DevicesFinished

Gets the number of devices that have finished.

Declaration
public int DevicesFinished { get; }
Property Value
Type Description
System.Int32
View Source

DevicesSucceeded

Gets the number of devices that have succeeded with their deployments.

Declaration
public int DevicesSucceeded { get; }
Property Value
Type Description
System.Int32
View Source

DisplayName

Gets the long display name for the current deployment.

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

Expanded

Gets or sets a value indicating whether or not the deployment is currently showing as the expander display pane.

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

Header

Gets the header string for the current deployment.

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

TotalDevices

Gets the total number of devices selected.

Declaration
public int TotalDevices { get; }
Property Value
Type Description
System.Int32

Methods

View Source

ChangeDeviceSelection(IEnumerable<IDevice>)

Changes the device selection for the model to new devices.

Declaration
public void ChangeDeviceSelection(IEnumerable<IDevice> newDevices)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<IDevice> newDevices

The new devices to target.

View Source

Deploy()

Deploys this configuration to the targeted devices.

Declaration
public async Task Deploy()
Returns
Type Description
System.Threading.Tasks.Task

An async task that runs the deployment.

Events

View Source

DeploymentChanged

An event that fires when the deployment's status has changed.

Declaration
public event DeploymentModel.DeploymentChangedHandler DeploymentChanged
Event Type
Type Description
DeploymentModel.DeploymentChangedHandler
  • View Source
In This Article
Back to top Generated by DocFX