Class DeploymentModel
Contains the model information relating to a specific deployment to a selection of devices.
Inheritance
Namespace: Phoenix.Applications.Deployment
Assembly: Phoenix.Plugin.AppDeployment.dll
Syntax
public class DeploymentModel : BindableBase
Constructors
View SourceDeploymentModel(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. |
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 SourceDeploymentCompleted
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 |
DeploymentFactory
Gets or sets the selected deployment factory.
Declaration
public DeploymentFactoryBase DeploymentFactory { get; set; }
Property Value
Type | Description |
---|---|
DeploymentFactoryBase |
DeploymentParameters
Gets the parameters specific to this deployment.
Declaration
public ObservableCollection<ParameterInfo> DeploymentParameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<ParameterInfo> |
DeploymentStatus
Gets the current aggregate deployment status.
Declaration
public DeploymentStatus DeploymentStatus { get; }
Property Value
Type | Description |
---|---|
DeploymentStatus |
DeviceDeployments
Gets the device deployment models for this deployment.
Declaration
public ObservableCollection<DeviceDeploymentModel> DeviceDeployments { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<DeviceDeploymentModel> |
DevicesFailed
Gets the number of devices that have failed their deployments.
Declaration
public int DevicesFailed { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
DevicesFinished
Gets the number of devices that have finished.
Declaration
public int DevicesFinished { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
DevicesSucceeded
Gets the number of devices that have succeeded with their deployments.
Declaration
public int DevicesSucceeded { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
DisplayName
Gets the long display name for the current deployment.
Declaration
public string DisplayName { get; }
Property Value
Type | Description |
---|---|
System.String |
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 |
Header
Gets the header string for the current deployment.
Declaration
public string Header { get; }
Property Value
Type | Description |
---|---|
System.String |
TotalDevices
Gets the total number of devices selected.
Declaration
public int TotalDevices { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
View SourceChangeDeviceSelection(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. |
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 SourceDeploymentChanged
An event that fires when the deployment's status has changed.
Declaration
public event DeploymentModel.DeploymentChangedHandler DeploymentChanged
Event Type
Type | Description |
---|---|
DeploymentModel.DeploymentChangedHandler |