Class DeploymentWindowExtensions
Provides additional methods to facilitate using IDeploymentWindow
Inherited Members
Namespace: Unity.Services.DeploymentApi .Editor
Assembly: Unity.Services.DeploymentApi.dll
Syntax
public static class DeploymentWindowExtensions
Methods
Deploy(IDeploymentWindow, IReadOnlyList<string>, CancellationToken)
Deploys the specified deployment items by path.
Declaration
public static Task<DeploymentResult<IDeploymentItem>> Deploy(this IDeploymentWindow self, IReadOnlyList<string> filePaths, CancellationToken token = default)
Parameters
Type | Name | Description |
---|---|---|
IDeployment |
self | The IDeploymentWindow implementation |
IRead |
filePaths | The File Paths to deploy |
Cancellation |
token | Cancellation token for the operation |
Returns
Type | Description |
---|---|
Task<Deployment |
The DeploymentResult object |
GetAllDeploymentItems(IDeploymentWindow, bool)
Gets all the currently available DeploymentItems
Declaration
public static List<IDeploymentItem> GetAllDeploymentItems(this IDeploymentWindow self, bool includeDeploymentDefinitions = false)
Parameters
Type | Name | Description |
---|---|---|
IDeployment |
self | The IDeploymentWindow implementation |
bool | includeDeploymentDefinitions | Whether or not to include the DeploymentDefinitions as part of the result |
Returns
Type | Description |
---|---|
List<IDeployment |
The found DeploymentItems |