Show / Hide Table of Contents

Class DeviceDeploymentModel

Contains the device-specific deployment information.

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

Constructors

View Source

DeviceDeploymentModel(IDevice)

Initializes a new instance of the DeviceDeploymentModel class.

Declaration
public DeviceDeploymentModel(IDevice targetDevice)
Parameters
Type Name Description
IDevice targetDevice

The device for this deployment.

Properties

View Source

Deployment

Gets or sets the deployment instance.

Declaration
public DeploymentBase Deployment { get; set; }
Property Value
Type Description
DeploymentBase
View Source

KilobytesProgress

Gets or sets the current number of kilobytes processed for the deployment.

Declaration
public double KilobytesProgress { get; set; }
Property Value
Type Description
System.Double
View Source

KilobytesTotal

Gets or sets the total number of kilobytes for the deployment.

Declaration
public double KilobytesTotal { get; set; }
Property Value
Type Description
System.Double
View Source

Progress

Gets or sets the progress of the deployment (0-1).

Declaration
public double Progress { get; set; }
Property Value
Type Description
System.Double
View Source

ShowBytes

Gets or sets a value indicating whether or not the UI should show the bytes numbers.

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

Status

Gets or sets the status of the deployment.

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

TargetDevice

Gets or sets the target device for the deployment.

Declaration
public IDevice TargetDevice { get; set; }
Property Value
Type Description
IDevice

Methods

View Source

Deploy()

Runs the deployment instance deployment.

Declaration
public async Task<bool> Deploy()
Returns
Type Description
System.Threading.Tasks.Task<System.Boolean>

An async task that runs the deployment.

View Source

InitializeDeployment(DeploymentFactoryBase, ParameterInfo[])

Initializes a deployment instance to use a specific factory and deployment parameters.

Declaration
public bool InitializeDeployment(DeploymentFactoryBase factory, ParameterInfo[] deploymentParameters)
Parameters
Type Name Description
DeploymentFactoryBase factory

The factory from which the deployment is to be created.

ParameterInfo[] deploymentParameters

The parameters the deployment will use.

Returns
Type Description
System.Boolean

Whether or not the deployment was created.

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