示例#1
0
 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));
 }
示例#2
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 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));
 }
示例#4
0
 public CdnServerService(ICdnServerRepository cdnServerRepository)
 {
     _cdnServerRepository = cdnServerRepository ?? throw new ArgumentNullException(nameof(cdnServerRepository));
 }