View Source
Class PackageInstallController
A controller used for installing packages and managing all of the data in the packages section in the back office
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
[PluginController("UmbracoApi")]
public class PackageInstallController : UmbracoAuthorizedJsonController, IDiscoverable
Constructors
View Source
PackageInstallController(IGlobalSettings, IUmbracoContextAccessor, ISqlContext, ServiceContext, AppCaches, IProfilingLogger, IRuntimeState, UmbracoHelper)
Declaration
public PackageInstallController(IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, UmbracoHelper umbracoHelper)
Parameters
Methods
View Source
CheckRestart(PackageInstallModel)
Declaration
public PackageInstallModel CheckRestart(PackageInstallModel model)
Parameters
Returns
View Source
CleanUp(PackageInstallModel)
Cleans up the package installation
Declaration
public PackageInstallResult CleanUp(PackageInstallModel model)
Parameters
Returns
View Source
Fetch(String)
Gets the package from Our to install
Declaration
public async Task<LocalPackageInstallModel> Fetch(string packageGuid)
Parameters
Type |
Name |
Description |
System.String |
packageGuid |
|
Returns
View Source
Import(PackageInstallModel)
Extracts the package zip and gets the packages information
Declaration
public PackageInstallModel Import(PackageInstallModel model)
Parameters
Returns
View Source
InstallData(PackageInstallModel)
Installs the packages data/business logic
Declaration
public PackageInstallModel InstallData(PackageInstallModel model)
Parameters
Returns
View Source
InstallFiles(PackageInstallModel)
Installs the package files
Declaration
public PackageInstallModel InstallFiles(PackageInstallModel model)
Parameters
Returns
View Source
Uninstall(Int32)
Declaration
public IHttpActionResult Uninstall(int packageId)
Parameters
Type |
Name |
Description |
System.Int32 |
packageId |
|
Returns
Type |
Description |
IHttpActionResult |
|
View Source
UploadLocalPackage()
Declaration
public async Task<LocalPackageInstallModel> UploadLocalPackage()
Returns
View Source
ValidateInstalled(String, String)
Declaration
public IHttpActionResult ValidateInstalled(string name, string version)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
version |
|
Returns
Type |
Description |
IHttpActionResult |
|