示例#1
0
 public ModuleInstaller(IExternalModuleCatalog extModuleCatalog, IExternalModulesClient externalClient, ITransactionFileManager txFileManager, IOptions <LocalStorageModuleCatalogOptions> localOptions)
 {
     _extModuleCatalog = extModuleCatalog;
     _externalClient   = externalClient;
     _options          = localOptions.Value;
     _fileManager      = txFileManager;
 }
示例#2
0
 public LocalStorageModuleCatalog(IOptions <LocalStorageModuleCatalogOptions> options)
 {
     _options = options.Value;
     if (_options.VirtualPath != null)
     {
         _options.VirtualPath = _options.VirtualPath.TrimEnd(Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar);
     }
 }
示例#3
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;
 }
示例#4
0
 public LocalStorageModuleCatalog(IOptions <LocalStorageModuleCatalogOptions> options, IDistributedLockProvider distributedLockProvider, ILogger <LocalStorageModuleCatalog> logger)
 {
     _options       = options.Value;
     _discoveryPath = _options.DiscoveryPath;
     if (!_discoveryPath.EndsWith(PlatformInformation.DirectorySeparator))
     {
         _discoveryPath += PlatformInformation.DirectorySeparator;
     }
     // Resolve IConnectionMultiplexer as multiple services to avoid crash if the platform ran without Redis
     // https://docs.microsoft.com/en-us/aspnet/core/fundamentals/dependency-injection?view=aspnetcore-3.1#service-registration-methods
     _distributedLockProvider = distributedLockProvider;
     _logger = logger;
 }
 public LocalStorageModuleCatalog(IOptions <LocalStorageModuleCatalogOptions> options, ILogger <LocalStorageModuleCatalog> logger)
 {
     _options = options.Value;
     _logger  = logger;
 }
示例#6
0
 public LocalStorageModuleCatalog(IOptions <LocalStorageModuleCatalogOptions> options)
 {
     _options = options.Value;
 }
 public ModuleInstaller(IExternalModuleCatalog extModuleCatalog, IOptions <LocalStorageModuleCatalogOptions> localOptions, IExternalModulesClient externalClient)
 {
     _extModuleCatalog = extModuleCatalog;
     _externalClient   = externalClient;
     _options          = localOptions.Value;
 }