Skip to content

AssetStoreOrderUpdater

ClassAssetInventoryAssetInventory.Editor
public sealed class AssetStoreOrderUpdater : ActionProgress

Runs order synchronization in the normal inventory action progress and cancellation lifecycle.

public static OrderRefreshProgress ReadProgress()

Returns a detached snapshot of active order synchronization or the last completed refresh, including waiting and ready states.

Returns

AssetInventory.OrderRefreshProgress

public static void CancelActive()

Requests cancellation of running progress objects for the order synchronization action.

public Task<OrderRefreshResult> Run(bool force, CancellationToken cancellationToken, Task prerequisite = null)

Waits for an optional prerequisite, then synchronizes orders through action progress with linked cancellation and returns the refresh result.

Parameters

Name Type
force System.Boolean
cancellationToken System.Threading.CancellationToken
prerequisite System.Threading.Tasks.Task

Returns

System.Threading.Tasks.Task{AssetInventory.OrderRefreshResult}

public AssetStoreOrderUpdater()

public OrderRefreshResult Result { get; }

Returns

AssetInventory.OrderRefreshResult

public static bool IsActive { get; }

Returns

System.Boolean