Exemplo n.º 1
0
        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.
 }
Exemplo n.º 3
0
        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));
        }
Exemplo n.º 4
0
 public bool IsInstallationFileExists(InstallationContext installationContext)
 {
     var installationFilePath = GetInstallationFilePath(installationContext.ModuleName, installationContext.InstallationFileName);
     return File.Exists(installationFilePath);
 }
Exemplo n.º 5
0
 public Stream GetInstallationStream(InstallationContext installationContext)
 {
     return GetInstallationStream(installationContext.ModuleName, installationContext.InstallationFileName);
 }
Exemplo n.º 6
0
 public void LogInstallation(string moduleName, InstallationContext upgradingContext)
 {
     var logFile = GetInstallationLogFile(moduleName);
     var list = GetInstallationContexts(logFile);
     list.Insert(0, upgradingContext);
     SaveInstallationContexts(logFile, list);
 }
Exemplo n.º 7
0
 public Stream GetInstallationStream(InstallationContext installationContext)
 {
     return(GetInstallationStream(installationContext.ModuleName, installationContext.InstallationFileName));
 }
Exemplo n.º 8
0
        public bool IsInstallationFileExists(InstallationContext installationContext)
        {
            var installationFilePath = GetInstallationFilePath(installationContext.ModuleName, installationContext.InstallationFileName);

            return(File.Exists(installationFilePath));
        }
Exemplo n.º 9
0
 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
 }
Exemplo n.º 10
0
        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);
        }