docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IDeploymentHandler<TIn, TOut>

    Represents the object that is capable of updating, deleting or creating resolved 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 IDeploymentHandler<in TIn, TOut> where TIn : IDeploymentItem where TOut : DeploymentResult<in TIn>
    Type Parameters
    Name Description
    TIn

    The DeploymentItem type

    TOut

    The DeploymentResult type

    Methods

    DeployAsync(IReadOnlyList<TIn>, bool, bool, CancellationToken)

    Deploy the specified resources asynchronously

    Declaration
    Task<TOut> DeployAsync(IReadOnlyList<in TIn> localResources, bool dryRun = false, bool reconcile = false, CancellationToken token = default)
    Parameters
    Type Name Description
    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)