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 |
---|---|---|
IDeploymentWindow | self | The IDeploymentWindow implementation |
IReadOnlyList<string> | filePaths | The File Paths to deploy |
CancellationToken | token | Cancellation token for the operation |
Returns
Type | Description |
---|---|
Task<DeploymentResult<IDeploymentItem>> | 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 |
---|---|---|
IDeploymentWindow | self | The IDeploymentWindow implementation |
bool | includeDeploymentDefinitions | Whether or not to include the DeploymentDefinitions as part of the result |
Returns
Type | Description |
---|---|
List<IDeploymentItem> | The found DeploymentItems |