Beispiel #1
0
        public InstallerHookOperations(IFileSystemFactory fileSystem, string applicationName)
        {
            // XXX: ALWAYS BE LOGGING
            this.log = new WrappingFullLogger(new FileLogger(applicationName), typeof(InstallerHookOperations));

            this.fileSystem      = fileSystem;
            this.applicationName = applicationName;
        }
        public InstallerHookOperations(IFileSystemFactory fileSystem, string applicationName)
        {
            // XXX: ALWAYS BE LOGGING
            this.log = new WrappingFullLogger(new FileLogger(applicationName), typeof(InstallerHookOperations));

            this.fileSystem = fileSystem;
            this.applicationName = applicationName;
        }
Beispiel #3
0
        public UpdateManager(string urlOrPath, 
            string applicationName,
            FrameworkVersion appFrameworkVersion,
            string rootDirectory = null,
            IFileSystemFactory fileSystem = null,
            IUrlDownloader urlDownloader = null)
        {
            Contract.Requires(!String.IsNullOrEmpty(urlOrPath));
            Contract.Requires(!String.IsNullOrEmpty(applicationName));

            log = LogManager.GetLogger<UpdateManager>();

            updateUrlOrPath = urlOrPath;
            this.applicationName = applicationName;
            this.appFrameworkVersion = appFrameworkVersion;

            this.rootAppDirectory = Path.Combine(rootDirectory ?? getLocalAppDataDirectory(), applicationName);
            this.fileSystem = fileSystem ?? AnonFileSystem.Default;

            this.urlDownloader = urlDownloader ?? new DirectUrlDownloader(fileSystem);
        }
Beispiel #4
0
        public UpdateManager(string urlOrPath,
                             string applicationName,
                             FrameworkVersion appFrameworkVersion,
                             string rootDirectory          = null,
                             IFileSystemFactory fileSystem = null,
                             IUrlDownloader urlDownloader  = null)
        {
            Contract.Requires(!String.IsNullOrEmpty(urlOrPath));
            Contract.Requires(!String.IsNullOrEmpty(applicationName));

            log = LogManager.GetLogger <UpdateManager>();

            updateUrlOrPath          = urlOrPath;
            this.applicationName     = applicationName;
            this.appFrameworkVersion = appFrameworkVersion;

            this.rootAppDirectory = Path.Combine(rootDirectory ?? getLocalAppDataDirectory(), applicationName);
            this.fileSystem       = fileSystem ?? AnonFileSystem.Default;

            this.urlDownloader = urlDownloader ?? new DirectUrlDownloader(fileSystem);
        }
Beispiel #5
0
        public UpdateManager(string urlOrPath,
                             string applicationName,
                             FrameworkVersion appFrameworkVersion,
                             string rootDirectory          = null,
                             IFileSystemFactory fileSystem = null,
                             IUrlDownloader urlDownloader  = null)
        {
            Contract.Requires(!String.IsNullOrEmpty(urlOrPath));
            Contract.Requires(!String.IsNullOrEmpty(applicationName));

            // XXX: ALWAYS BE LOGGING
            log = new WrappingFullLogger(new FileLogger(applicationName), typeof(UpdateManager));

            updateUrlOrPath          = urlOrPath;
            this.applicationName     = applicationName;
            this.appFrameworkVersion = appFrameworkVersion;

            this.rootAppDirectory = Path.Combine(rootDirectory ?? getLocalAppDataDirectory(), applicationName);
            this.fileSystem       = fileSystem ?? AnonFileSystem.Default;

            this.urlDownloader = urlDownloader ?? new DirectUrlDownloader(fileSystem);
        }
Beispiel #6
0
        public UpdateManager(string urlOrPath, 
            string applicationName,
            FrameworkVersion appFrameworkVersion,
            string rootDirectory = null,
            IFileSystemFactory fileSystem = null,
            IUrlDownloader urlDownloader = null)
        {
            Contract.Requires(!String.IsNullOrEmpty(urlOrPath));
            Contract.Requires(!String.IsNullOrEmpty(applicationName));

            // XXX: ALWAYS BE LOGGING
            log = new WrappingFullLogger(new FileLogger(applicationName), typeof(UpdateManager));

            updateUrlOrPath = urlOrPath;
            this.applicationName = applicationName;
            this.appFrameworkVersion = appFrameworkVersion;

            this.rootAppDirectory = Path.Combine(rootDirectory ?? getLocalAppDataDirectory(), applicationName);
            this.fileSystem = fileSystem ?? AnonFileSystem.Default;

            this.urlDownloader = urlDownloader ?? new DirectUrlDownloader(fileSystem);
        }
 public InstallerHookOperations(IRxUIFullLogger log, IFileSystemFactory fileSystem, string applicationName)
 {
     this.log = log;
     this.fileSystem = fileSystem;
     this.applicationName = applicationName;
 }
Beispiel #8
0
 public InstallManager(ReleaseEntry bundledRelease, string targetRootDirectory = null)
 {
     BundledRelease = bundledRelease;
     TargetRootDirectory = targetRootDirectory;
     log = LogManager.GetLogger<InstallManager>();
 }
 public InstallManager(ReleaseEntry bundledRelease, string targetRootDirectory = null)
 {
     BundledRelease      = bundledRelease;
     TargetRootDirectory = targetRootDirectory;
     log = LogManager.GetLogger <InstallManager>();
 }
Beispiel #10
0
 public InstallerHookOperations(IRxUIFullLogger log, IFileSystemFactory fileSystem, string applicationName)
 {
     this.log             = log;
     this.fileSystem      = fileSystem;
     this.applicationName = applicationName;
 }