public void LogInstallation(string moduleName, InstallationContext upgradingContext) { var logFile = GetInstallationLogFile(moduleName); var list = GetInstallationContexts(logFile); list.Insert(0, upgradingContext); SaveInstallationContexts(logFile, list); }
public void OnReinstalling(ModuleContext moduleContext, ControllerContext controllerContext, InstallationContext installationContext) { // Add code here that will be executed when the module was including to the site. }
public IEnumerable <InstallationScriptFileInfo> GetInstallationScripts(string moduleName, InstallationContext context) { var scripts = GetInstallationScripts(moduleName); return(scripts.Where(it => it.VersionRange.In(context.VersionRange)).OrderBy(it => it.VersionRange)); }
public bool IsInstallationFileExists(InstallationContext installationContext) { var installationFilePath = GetInstallationFilePath(installationContext.ModuleName, installationContext.InstallationFileName); return File.Exists(installationFilePath); }
public Stream GetInstallationStream(InstallationContext installationContext) { return GetInstallationStream(installationContext.ModuleName, installationContext.InstallationFileName); }
public void LogInstallation(string moduleName, InstallationContext upgradingContext) { var logFile = GetInstallationLogFile(moduleName); var list = GetInstallationContexts(logFile); list.Insert(0, upgradingContext); SaveInstallationContexts(logFile, list); }
public Stream GetInstallationStream(InstallationContext installationContext) { return(GetInstallationStream(installationContext.ModuleName, installationContext.InstallationFileName)); }
public bool IsInstallationFileExists(InstallationContext installationContext) { var installationFilePath = GetInstallationFilePath(installationContext.ModuleName, installationContext.InstallationFileName); return(File.Exists(installationFilePath)); }
public void OnReinstalling(ModuleContext moduleContext, ControllerContext controllerContext, InstallationContext installationContext) { // Add code here that will be executed when the module reinstalling. // To use custom UI during reinstalling, define the view location in the module.config }
public IEnumerable<InstallationScriptFileInfo> GetInstallationScripts(string moduleName, InstallationContext context) { var scripts = GetInstallationScripts(moduleName); return scripts.Where(it => it.VersionRange.In(context.VersionRange)).OrderBy(it => it.VersionRange); }