Interface IFetchHandler<TIn, TOut>
Represents the object that is capable of updating, deleting or creating local IDeploymentItems for a given set of APIs. This class is auxiliary for CLI integration.
Namespace: Unity.Services.DeploymentApi .Editor
Assembly: Unity.Services.DeploymentApi.dll
Syntax
public interface IFetchHandler<in TIn, TOut> where TIn : IDeploymentItem where TOut : DeploymentResult<in TIn>
Type Parameters
Name | Description |
---|---|
TIn | The DeploymentItem type |
TOut | The FetchResult type |
Methods
FetchAsync(string, IReadOnlyList<TIn>, bool, bool, CancellationToken)
Fetch into the specified resources asynchronously
Declaration
Task<TOut> FetchAsync(string rootDirectory, IReadOnlyList<in TIn> localResources, bool dryRun = false, bool reconcile = false, CancellationToken token = default)
Parameters
Type | Name | Description |
---|---|---|
string | rootDirectory | The reference directory into which new items may be created |
IRead |
localResources | Local Resources to deploy |
bool | dryRun | Whether to only perform a dry-run |
bool | reconcile | Whether remote resources not part of a deployment should be deleted |
Cancellation |
token | Operation's cancellation token |
Returns
Type | Description |
---|---|
Task<TOut> | The DeploymentResult object |