docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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

    IReadOnlyList<TIn> 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

    CancellationToken token

    Operation's cancellation token

    Returns
    Type Description
    Task<TOut>

    The DeploymentResult object

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)