예제 #1
0
 public AzureSearchService(
     BatchIndexer indexer,
     SearchIndexClient searchClient,
     IBaGetUrlGenerator url,
     IFrameworkCompatibilityService frameworks)
 {
     _indexer      = indexer ?? throw new ArgumentNullException(nameof(indexer));
     _searchClient = searchClient ?? throw new ArgumentNullException(nameof(searchClient));
     _url          = url ?? throw new ArgumentNullException(nameof(url));
     _frameworks   = frameworks ?? throw new ArgumentNullException(nameof(frameworks));
 }
예제 #2
0
 public DatabasePackageMetadataService(IMirrorService mirror, IPackageService packages, IBaGetUrlGenerator url)
 {
     _mirror   = mirror ?? throw new ArgumentNullException(nameof(mirror));
     _packages = packages ?? throw new ArgumentNullException(nameof(packages));
     _url      = url ?? throw new ArgumentNullException(nameof(url));
 }
예제 #3
0
 public BaGetServiceIndex(IBaGetUrlGenerator url)
 {
     _url = url ?? throw new ArgumentNullException(nameof(url));
 }
예제 #4
0
 public SearchController(IBaGetSearchService searchService, IBaGetUrlGenerator url)
 {
     _searchService = searchService ?? throw new ArgumentNullException(nameof(searchService));
     _url           = url ?? throw new ArgumentNullException(nameof(url));
 }
예제 #5
0
 public DatabaseSearchService(IContext context, IFrameworkCompatibilityService frameworks, IBaGetUrlGenerator url)
 {
     _context    = context ?? throw new ArgumentNullException(nameof(context));
     _frameworks = frameworks ?? throw new ArgumentNullException(nameof(frameworks));
     _url        = url ?? throw new ArgumentNullException(nameof(url));
 }