Interface IDependency
Represents a reference to a dependency that will be resolved before deployment. Most likely, it is not a Deployment Item, but some unique way to find it
Namespace: Unity.Services.DeploymentApi.Editor
Assembly: Unity.Services.DeploymentApi.dll
Syntax
public interface IDependency
Methods
Resolve(IReadOnlyList<IDeploymentItem>)
Returns the DeploymentItem that matches the dependency, null otherwise
Declaration
IDeploymentItem Resolve(IReadOnlyList<IDeploymentItem> deployedItems)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<IDeploymentItem> | deployedItems | Items that are being deployed |
Returns
Type | Description |
---|---|
IDeploymentItem | Item that satisfies the dependency, null otherwise |
Resolve(IReadOnlyList<IDeploymentItem>, Func<IDeploymentItem, bool>)
Depth-first search over the Dependency Items tree over a predicate.Nu
Declaration
public static IDeploymentItem Resolve(IReadOnlyList<IDeploymentItem> deployedItems, Func<IDeploymentItem, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
IReadOnlyList<IDeploymentItem> | deployedItems | Deployment Items to search through |
Func<IDeploymentItem, bool> | predicate | Function to identify relevant item |
Returns
Type | Description |
---|---|
IDeploymentItem | First item that matches the predicate |