Пример #1
0
 public ObjectController(IFileObjectRepository fileObjectRepository,
                         IObjectCacheService objectCacheService,
                         ICdnServerService cdnServerService,
                         IOptions <CdnOptions> cdnOptions)
 {
     _fileObjectRepository = fileObjectRepository ?? throw new ArgumentNullException(nameof(fileObjectRepository));
     _objectCacheService   = objectCacheService ?? throw new ArgumentNullException(nameof(objectCacheService));
     _cdnServerService     = cdnServerService ?? throw new ArgumentNullException(nameof(cdnServerService));
     _cdnOptions           = cdnOptions?.Value ?? throw new ArgumentNullException(nameof(_cdnOptions));
 }
 public ObjectsStorageReader(
     VStoreContext context,
     CdnOptions cdnOptions,
     ITemplatesStorageReader templatesStorageReader,
     DistributedLockManager distributedLockManager)
 {
     _context                = context;
     _cdnOptions             = cdnOptions;
     _templatesStorageReader = templatesStorageReader;
     _distributedLockManager = distributedLockManager;
 }
Пример #3
0
 public CleanUpService(IFileObjectRepository fileObjectRepository,
                       ICdnServerRepository cdnServerRepository,
                       IOptions <StorageOptions> storageOptions,
                       IOptions <CdnOptions> cdnOptions,
                       IHostingEnvironment hostingEnvironment)
 {
     _fileObjectRepository = fileObjectRepository ?? throw new ArgumentNullException(nameof(fileObjectRepository));
     _cdnServerRepository  = cdnServerRepository ?? throw new ArgumentNullException(nameof(cdnServerRepository));
     _cdnOptions           = cdnOptions?.Value ?? throw new ArgumentNullException(nameof(cdnOptions));
     _storageOptions       = storageOptions?.Value ?? throw new ArgumentNullException(nameof(storageOptions));
     _hostingEnvironment   = hostingEnvironment ?? throw new ArgumentNullException(nameof(hostingEnvironment));
 }
        public ObjectCacheService(ICdnServerService cdnServerService,
                                  IFileObjectRepository fileObjectRepository,
                                  IHostingEnvironment hostingEnvironment,
                                  IConfiguration configuration)
        {
            _cdnServerService     = cdnServerService ?? throw new ArgumentNullException(nameof(cdnServerService));
            _fileObjectRepository = fileObjectRepository ?? throw new ArgumentNullException(nameof(fileObjectRepository));
            _hostingEnvironment   = hostingEnvironment ?? throw new ArgumentNullException(nameof(hostingEnvironment));

            _storageOptions = configuration?.GetSection(ConfigurationConstants.STORAGE_SECTION_NAME).Get <StorageOptions>() ?? throw new ArgumentNullException(nameof(configuration));
            _cdnOptions     = configuration?.GetSection(ConfigurationConstants.CDN_SECTION_NAME).Get <CdnOptions>() ?? throw new ArgumentNullException(nameof(configuration));
        }
 public LocaFileSystemStorageProvider(IHostingEnvironment hostingEnvironment,
                                      IFileObjectRepository fileObjectRepository,
                                      ICdnServerRepository cdnServerRepository,
                                      IOptions <StorageOptions> storageOptions,
                                      IOptions <CdnOptions> cdnOptions)
 {
     _hostingEnvironment   = hostingEnvironment ?? throw new ArgumentNullException(nameof(hostingEnvironment));
     _fileObjectRepository = fileObjectRepository ?? throw new ArgumentNullException(nameof(fileObjectRepository));
     _cdnServerRepository  = cdnServerRepository ?? throw new ArgumentNullException(nameof(cdnServerRepository));
     _storageOptions       = storageOptions?.Value ?? throw new ArgumentNullException(nameof(storageOptions));
     _cdnOptions           = cdnOptions?.Value ?? throw new ArgumentNullException(nameof(cdnOptions));
 }
 public ObjectsStorageReader(
     CephOptions cephOptions,
     CdnOptions cdnOptions,
     IS3Client s3Client,
     ITemplatesStorageReader templatesStorageReader,
     DistributedLockManager distributedLockManager)
 {
     _cdnOptions             = cdnOptions;
     _s3Client               = s3Client;
     _templatesStorageReader = templatesStorageReader;
     _distributedLockManager = distributedLockManager;
     _bucketName             = cephOptions.ObjectsBucketName;
     _degreeOfParallelism    = cephOptions.DegreeOfParallelism;
 }
Пример #7
0
 public CdnDnsFetchTagHelperComponent(CdnOptions options)
 {
     this.options = options;
 }
 public SessionsController(CdnOptions cdnOptions, SessionManagementService sessionManagementService, ILogger <SessionsController> logger)
 {
     _cdnOptions = cdnOptions;
     _sessionManagementService = sessionManagementService;
     _logger = logger;
 }
Пример #9
0
 public DnsPrefetchLinkTagHelper(CdnOptions cdnOptions)
 {
     this.cdnOptions = cdnOptions;
 }