AssetStoreLicenseRefresh
public static class AssetStoreLicenseRefreshRefreshes current public agreements independently of authenticated catalog metadata and selected licenses.
Methods
Section titled “Methods”
IsDue()
Section titled “IsDue()”public static bool IsDue()Whether an automatic public-license pass is enabled and outside this catalog's scheduling interval.
Returns
System.Boolean
RefreshDueAsync(CancellationToken)
Section titled “RefreshDueAsync(CancellationToken)”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}
Events
Section titled “Events”
Refreshed
Section titled “Refreshed”public static event Action<IReadOnlyCollection<int>> RefreshedRaised 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}}