Class UpgradeService
Provides functionality for checking for available Umbraco upgrades.
Inheritance
object
Namespace: Umbraco.Cms.Core.Services
Assembly: Umbraco.Core.dll
Syntax
[Obsolete("Upgrade checks are no longer supported. Scheduled for removal in Umbraco 19.")]
public class UpgradeService : IUpgradeService
Constructors
View SourceUpgradeService(IUpgradeCheckRepository)
Initializes a new instance of the UpgradeService class.
Declaration
public UpgradeService(IUpgradeCheckRepository upgradeCheckRepository)
Parameters
| Type | Name | Description |
|---|---|---|
| IUpgradeCheckRepository | upgradeCheckRepository | The repository for checking upgrades. |
Methods
View SourceCheckUpgrade(SemVersion)
Checks if an upgrade is available for the specified version.
Declaration
public Task<UpgradeResult> CheckUpgrade(SemVersion version)
Parameters
| Type | Name | Description |
|---|---|---|
| SemVersion | version | The current semantic version to check for upgrades. |
Returns
| Type | Description |
|---|---|
| Task<UpgradeResult> | The result of the upgrade check. |