Example #1
0
        public ZipBundler(
            IZipFileWrapper zipFileWrapper,
            ICheckSumGenerator checkSumGenerator,
            ILogger logger,
            ISerializeWrapper serializeWrapper)
        {
            if (zipFileWrapper == null)
            {
                throw new ArgumentNullException("zipFileWrapper");
            }

            if (checkSumGenerator == null)
            {
                throw new ArgumentNullException("checkSumGenerator");
            }

            if (logger == null)
            {
                throw new ArgumentNullException("logger");
            }

            if (serializeWrapper == null)
            {
                throw new ArgumentNullException("serializeWrapper");
            }

            this.mZipFileWrapper    = zipFileWrapper;
            this.mCheckSumGenerator = checkSumGenerator;
            this.mLogger            = logger;
            this.mSerializeWrapper  = serializeWrapper;

            this.mSummary = new BundleSummary();
        }
Example #2
0
 public ModuleInstaller(IExternalModuleCatalog extModuleCatalog, IExternalModulesClient externalClient, ITransactionFileManager txFileManager, IOptions <LocalStorageModuleCatalogOptions> localOptions, IFileSystem fileSystem, IZipFileWrapper zipFileWrapper)
 {
     _extModuleCatalog = extModuleCatalog;
     _externalClient   = externalClient;
     _options          = localOptions.Value;
     _fileManager      = txFileManager;
     _fileSystem       = fileSystem;
     _zipFileWrapper   = zipFileWrapper;
 }
Example #3
0
        public ZipBundler(
            IZipFileWrapper zipFileWrapper,
            ICheckSumGenerator checkSumGenerator,
            ILogger logger,
            ISerializeWrapper serializeWrapper)
        {
            if (zipFileWrapper == null)
                throw new ArgumentNullException("zipFileWrapper");

            if (checkSumGenerator == null)
                throw new ArgumentNullException("checkSumGenerator");

            if (logger == null)
                throw new ArgumentNullException("logger");

            if (serializeWrapper == null)
                throw new ArgumentNullException("serializeWrapper");

            this.mZipFileWrapper = zipFileWrapper;
            this.mCheckSumGenerator = checkSumGenerator;
            this.mLogger = logger;
            this.mSerializeWrapper = serializeWrapper;

            this.mSummary = new BundleSummary();
        }