public CdnRouter(ICdnServerRepository cdnServerRepository, ICdnServerService cdnServerService, IConfiguration configuration) { _cdnServerRepository = cdnServerRepository ?? throw new ArgumentNullException(nameof(cdnServerRepository)); _cdnServerService = cdnServerService ?? throw new ArgumentNullException(nameof(cdnServerService)); _configuration = configuration ?? throw new ArgumentNullException(nameof(configuration)); }
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 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 CdnServerService(ICdnServerRepository cdnServerRepository) { _cdnServerRepository = cdnServerRepository ?? throw new ArgumentNullException(nameof(cdnServerRepository)); }