Class DeviceDeploymentModel
Contains the device-specific deployment information.
Inheritance
Namespace: Phoenix.Applications.Deployment
Assembly: Phoenix.Plugin.AppDeployment.dll
Syntax
public class DeviceDeploymentModel : BindableBase
Constructors
View SourceDeviceDeploymentModel(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 SourceDeployment
Gets or sets the deployment instance.
Declaration
public DeploymentBase Deployment { get; set; }
Property Value
Type | Description |
---|---|
DeploymentBase |
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 |
KilobytesTotal
Gets or sets the total number of kilobytes for the deployment.
Declaration
public double KilobytesTotal { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
Progress
Gets or sets the progress of the deployment (0-1).
Declaration
public double Progress { get; set; }
Property Value
Type | Description |
---|---|
System.Double |
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 |
Status
Gets or sets the status of the deployment.
Declaration
public DeploymentStatus Status { get; set; }
Property Value
Type | Description |
---|---|
DeploymentStatus |
TargetDevice
Gets or sets the target device for the deployment.
Declaration
public IDevice TargetDevice { get; set; }
Property Value
Type | Description |
---|---|
IDevice |
Methods
View SourceDeploy()
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. |
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. |