Skip to content

AssetStoreLicenseRefresh

ClassAssetInventoryAssetInventory.Editor
public static class AssetStoreLicenseRefresh

Refreshes current public agreements independently of authenticated catalog metadata and selected licenses.

public static bool IsDue()

Whether an automatic public-license pass is enabled and outside this catalog's scheduling interval.

Returns

System.Boolean

public static Task<bool> RefreshDueAsync(CancellationToken cancellationToken = default)

Runs an enabled automatic pass without changing the authenticated REST success marker.

Parameters

Name Type
cancellationToken System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task{System.Boolean}

RefreshCatalogAsync(bool, CancellationToken)

Section titled “RefreshCatalogAsync(bool, CancellationToken)”
public static Task<bool> RefreshCatalogAsync(bool force = false, CancellationToken cancellationToken = default)

Refreshes eligible Store-linked catalog packages, including rows whose REST details are still fresh.

Parameters

Name Type
force System.Boolean
cancellationToken System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task{System.Boolean}

RefreshAsync(IEnumerable, bool, CancellationToken)

Section titled “RefreshAsync(IEnumerable, bool, CancellationToken)”
public static Task<bool> RefreshAsync(IEnumerable<Asset> assets, bool force = false, CancellationToken cancellationToken = default)

Refreshes selected packages without requiring Editor authentication or resetting REST ETags.

Parameters

Name Type
assets System.Collections.Generic.IEnumerable{AssetInventory.Asset}
force System.Boolean
cancellationToken System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task{System.Boolean}

RefreshCacheAsync(IEnumerable, bool, CancellationToken)

Section titled “RefreshCacheAsync(IEnumerable, bool, CancellationToken)”
public static Task<bool> RefreshCacheAsync(IEnumerable<Asset> assets, bool force = true, CancellationToken cancellationToken = default)

Updates available Store evidence for linked packages without adopting it into any selected license. Returns whether an attempt was recorded.

Parameters

Name Type
assets System.Collections.Generic.IEnumerable{AssetInventory.Asset}
force System.Boolean
cancellationToken System.Threading.CancellationToken

Returns

System.Threading.Tasks.Task{System.Boolean}

public static event Action<IReadOnlyCollection<int>> Refreshed

Raised after a refresh changes stored license evidence or adopted selections, with the affected Asset Store product IDs.

Returns

System.Action{System.Collections.Generic.IReadOnlyCollection{System.Int32}}