• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IIndexingService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IIndexingService的典型用法代码示例。如果您正苦于以下问题:C# IIndexingService类的具体用法?C# IIndexingService怎么用?C# IIndexingService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IIndexingService类属于命名空间,在下文中一共展示了IIndexingService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: ApiController

 public ApiController(
     IEntitiesContext entitiesContext,
     IPackageService packageService,
     IPackageFileService packageFileService,
     IUserService userService,
     INuGetExeDownloaderService nugetExeDownloaderService,
     IContentService contentService,
     IIndexingService indexingService,
     ISearchService searchService,
     IAutomaticallyCuratePackageCommand autoCuratePackage,
     IStatusService statusService,
     IAppConfiguration config)
 {
     EntitiesContext = entitiesContext;
     PackageService = packageService;
     PackageFileService = packageFileService;
     UserService = userService;
     NugetExeDownloaderService = nugetExeDownloaderService;
     ContentService = contentService;
     StatisticsService = null;
     IndexingService = indexingService;
     SearchService = searchService;
     AutoCuratePackage = autoCuratePackage;
     StatusService = statusService;
     _config = config;
 }
开发者ID:whyleee,项目名称:RemoteFeedNuGetGallery,代码行数:26,代码来源:ApiController.cs


示例2: PackagesController

 public PackagesController(
     IPackageService packageService,
     IUploadFileService uploadFileService,
     IUserService userService,
     IMessageService messageService,
     ISearchService searchService,
     IAutomaticallyCuratePackageCommand autoCuratedPackageCmd,
     INuGetExeDownloaderService nugetExeDownloaderService,
     IPackageFileService packageFileService,
     IEntitiesContext entitiesContext,
     IAppConfiguration config,
     IIndexingService indexingService,
     ICacheService cacheService)
 {
     _packageService = packageService;
     _uploadFileService = uploadFileService;
     _userService = userService;
     _messageService = messageService;
     _searchService = searchService;
     _autoCuratedPackageCmd = autoCuratedPackageCmd;
     _nugetExeDownloaderService = nugetExeDownloaderService;
     _packageFileService = packageFileService;
     _entitiesContext = entitiesContext;
     _config = config;
     _indexingService = indexingService;
     _cacheService = cacheService;
 }
开发者ID:ryanhartley84332,项目名称:NuGetGallery,代码行数:27,代码来源:PackagesController.cs


示例3: PackagesController

 public PackagesController(
     IPackageService packageService,
     IUploadFileService uploadFileService,
     IMessageService messageService,
     ISearchService searchService,
     IAutomaticallyCuratePackageCommand autoCuratedPackageCmd,
     IPackageFileService packageFileService,
     IEntitiesContext entitiesContext,
     IAppConfiguration config,
     IIndexingService indexingService,
     ICacheService cacheService,
     EditPackageService editPackageService,
     IPackageDeleteService packageDeleteService,
     ISupportRequestService supportRequestService,
     AuditingService auditingService)
 {
     _packageService = packageService;
     _uploadFileService = uploadFileService;
     _messageService = messageService;
     _searchService = searchService;
     _autoCuratedPackageCmd = autoCuratedPackageCmd;
     _packageFileService = packageFileService;
     _entitiesContext = entitiesContext;
     _config = config;
     _indexingService = indexingService;
     _cacheService = cacheService;
     _editPackageService = editPackageService;
     _packageDeleteService = packageDeleteService;
     _supportRequestService = supportRequestService;
     _auditingService = auditingService;
 }
开发者ID:rhysawilliams2010,项目名称:NuGetGallery,代码行数:31,代码来源:PackagesController.cs


示例4: PackageService

 public PackageService(
     ICryptographyService cryptoSvc,
     IEntityRepository<PackageRegistration> packageRegistrationRepo,
     IEntityRepository<Package> packageRepo,
     IEntityRepository<PackageStatistics> packageStatsRepo,
     IPackageFileService packageFileSvc,
     IEntityRepository<PackageOwnerRequest> packageOwnerRequestRepository,
     IIndexingService indexingSvc,
     IEntityRepository<PackageAuthor> packageAuthorRepo,
     IEntityRepository<PackageFramework> packageFrameworksRepo,
     IEntityRepository<PackageDependency> packageDependenciesRepo,
     IEntityRepository<PackageFile> packageFilesRepo,
     IMessageService messageSvc)
 {
     this.cryptoSvc = cryptoSvc;
     this.packageRegistrationRepo = packageRegistrationRepo;
     this.packageRepo = packageRepo;
     this.packageStatsRepo = packageStatsRepo;
     this.packageFileSvc = packageFileSvc;
     this.packageOwnerRequestRepository = packageOwnerRequestRepository;
     this.indexingSvc = indexingSvc;
     this.packageAuthorRepo = packageAuthorRepo;
     this.packageFrameworksRepo = packageFrameworksRepo;
     this.packageDependenciesRepo = packageDependenciesRepo;
     this.packageFilesRepo = packageFilesRepo;
     this.messageSvc = messageSvc;
 }
开发者ID:PatOShea,项目名称:chocolatey.org,代码行数:27,代码来源:PackageService.cs


示例5: IndexingCommands

 public IndexingCommands(
     IIndexManager indexManager,
     IIndexingService indexingService,
     IIndexingTaskManager indexingTaskManager,
     IContentManager contentManager) {
     _indexingTaskManager = indexingTaskManager;
     _contentManager = contentManager;
     _indexManager = indexManager;
     _indexingService = indexingService;
 }
开发者ID:sbepsbepob,项目名称:Orchard,代码行数:10,代码来源:IndexingCommands.cs


示例6: AdminController

 public AdminController(
     IIndexingService indexingService, 
     IOrchardServices services,
     IIndexManager indexManager) {
     _indexingService = indexingService;
     _indexManager = indexManager;
     Services = services;
     T = NullLocalizer.Instance;
     Logger = NullLogger.Instance;
 }
开发者ID:anycall,项目名称:Orchard,代码行数:10,代码来源:AdminController.cs


示例7: TestController

 public TestController(
     IMember_MoneyService _member_MoneyService
     , ISearchService _searchService
     , IIndexingService _indexService
     , IMember_CreditIndexService _member_CreditIndexService
     )
 {
     member_MoneyService = _member_MoneyService;
     searchService = _searchService;
     indexService = _indexService;
     member_CreditIndexService = _member_CreditIndexService;
 }
开发者ID:navy235,项目名称:WebSite,代码行数:12,代码来源:TestController.cs


示例8: ApiController

 public ApiController(
     IPackageService packageService,
     IPackageFileService packageFileService,
     IUserService userService,
     INuGetExeDownloaderService nugetExeDownloaderService,
     IContentService contentService,
     IIndexingService indexingService,
     IStatisticsService statisticsService)
     : this(packageService, packageFileService, userService, nugetExeDownloaderService, contentService, indexingService)
 {
     _statisticsService = statisticsService;
 }
开发者ID:argsv,项目名称:NuGetGallery,代码行数:12,代码来源:ApiController.cs


示例9: PackageService

 public PackageService(
     IEntityRepository<PackageRegistration> packageRegistrationRepository,
     IEntityRepository<Package> packageRepository,
     IEntityRepository<PackageStatistics> packageStatsRepository,
     IEntityRepository<PackageOwnerRequest> packageOwnerRequestRepository,
     IIndexingService indexingService)
 {
     _packageRegistrationRepository = packageRegistrationRepository;
     _packageRepository = packageRepository;
     _packageStatsRepository = packageStatsRepository;
     _packageOwnerRequestRepository = packageOwnerRequestRepository;
     _indexingService = indexingService;
 }
开发者ID:anurse,项目名称:NuGetGallery,代码行数:13,代码来源:PackageService.cs


示例10: NodeIndexingService

 public NodeIndexingService(
     IIndexManager indexManager,
     IIndexingService indexingService,
     IGraphManager graphManager,
     IContentManager contentManager,
     IContentDefinitionManager contentDefinitionManager)
 {
     _indexManager = indexManager;
     _indexingService = indexingService;
     _graphManager = graphManager;
     _contentManager = contentManager;
     _contentDefinitionManager = contentDefinitionManager;
 }
开发者ID:Lombiq,项目名称:Associativy-Core,代码行数:13,代码来源:NodeIndexingService.cs


示例11: PackageService

 public PackageService(
     IEntityRepository<PackageRegistration> packageRegistrationRepository,
     IEntityRepository<Package> packageRepository,
     IEntityRepository<PackageOwnerRequest> packageOwnerRequestRepository,
     IIndexingService indexingService,
     IPackageNamingConflictValidator packageNamingConflictValidator)
 {
     _packageRegistrationRepository = packageRegistrationRepository;
     _packageRepository = packageRepository;
     _packageOwnerRequestRepository = packageOwnerRequestRepository;
     _indexingService = indexingService;
     _packageNamingConflictValidator = packageNamingConflictValidator;
 }
开发者ID:goitsk,项目名称:NuGetGallery,代码行数:13,代码来源:PackageService.cs


示例12: ProcessAddSourceCommand

 private static void ProcessAddSourceCommand(AddSourceCommand command, IIndexingService service)
 {
     try
     {
         var source = command.Source;
         service.AddSourceToIndexer(source);
         Console.WriteLine("Sourse {0} has been added", source);
     }
     catch (ArgumentException ex)
     {
         Console.WriteLine("Some problems with source");
         Console.WriteLine(ex.Message);
     }
 }
开发者ID:WinnieThePoooh,项目名称:JetBraindexer,代码行数:14,代码来源:Program.cs


示例13: ApiController

 public ApiController(
     IEntitiesContext entitiesContext,
     IPackageService packageService,
     IPackageFileService packageFileService,
     IUserService userService,
     INuGetExeDownloaderService nugetExeDownloaderService,
     IContentService contentService,
     IIndexingService indexingService,
     IAutomaticallyCuratePackageCommand autoCuratePackage,
     IStatisticsService statisticsService)
     : this(entitiesContext, packageService, packageFileService, userService, nugetExeDownloaderService, contentService, indexingService, autoCuratePackage)
 {
     StatisticsService = statisticsService;
 }
开发者ID:SaqibS,项目名称:NuGetGallery,代码行数:14,代码来源:ApiController.cs


示例14: Migrations

 public Migrations(
     IOrchardServices orchardServices,
     IRepository<SubscriptionEmailTemplateRecord> subscriptionEmailTemplateRepository,
     IIndexManager indexManager,
     IIndexingService indexingService,
     IContentDefinitionManager contentDefinitionManager
 )
 {
     _orchardServices = orchardServices;
     _subscriptionEmailTemplateRepository = subscriptionEmailTemplateRepository;
     _indexManager = indexManager;
     _indexingService = indexingService;
     _contentDefinitionManager = contentDefinitionManager;
     Logger = NullLogger.Instance;
     
 }
开发者ID:jon123,项目名称:NGM.Forum,代码行数:16,代码来源:Migrations.cs


示例15: EntryPublisher

 public EntryPublisher(ISubtextContext context, ITextTransformation transformation, ISlugGenerator slugGenerator,
     IIndexingService indexingService)
 {
     if (context == null)
     {
         throw new ArgumentNullException("context");
     }
     if (indexingService == null)
     {
         throw new ArgumentNullException("indexingService");
     }
     SubtextContext = context;
     Transformation = transformation ?? EmptyTextTransformation.Instance;
     SlugGenerator = slugGenerator ?? new SlugGenerator(FriendlyUrlSettings.Settings, context.Repository);
     IndexingService = indexingService;
 }
开发者ID:rsaladrigas,项目名称:Subtext,代码行数:16,代码来源:EntryPublisher.cs


示例16: PackageService

 public PackageService(
     ICryptographyService cryptoSvc,
     IEntityRepository<PackageRegistration> packageRegistrationRepo,
     IEntityRepository<Package> packageRepo,
     IEntityRepository<PackageStatistics> packageStatsRepo,
     IPackageFileService packageFileSvc,
     IEntityRepository<PackageOwnerRequest> packageOwnerRequestRepository,
     IIndexingService indexingSvc)
 {
     this.cryptoSvc = cryptoSvc;
     this.packageRegistrationRepo = packageRegistrationRepo;
     this.packageRepo = packageRepo;
     this.packageStatsRepo = packageStatsRepo;
     this.packageFileSvc = packageFileSvc;
     this.packageOwnerRequestRepository = packageOwnerRequestRepository;
     this.indexingSvc = indexingSvc;
 }
开发者ID:micahlmartin,项目名称:NuGetGallery,代码行数:17,代码来源:PackageService.cs


示例17: PackageDeleteService

 public PackageDeleteService(
     IEntityRepository<Package> packageRepository,
     IEntityRepository<PackageDelete> packageDeletesRepository,
     IEntitiesContext entitiesContext,
     IPackageService packageService,
     IIndexingService indexingService,
     IPackageFileService packageFileService,
     AuditingService auditingService)
 {
     _packageRepository = packageRepository;
     _packageDeletesRepository = packageDeletesRepository;
     _entitiesContext = entitiesContext;
     _packageService = packageService;
     _indexingService = indexingService;
     _packageFileService = packageFileService;
     _auditingService = auditingService;
 }
开发者ID:ZhiYuanHuang,项目名称:NuGetGallery,代码行数:17,代码来源:PackageDeleteService.cs


示例18: PackageService

        public PackageService(
            IEntityRepository<PackageRegistration> packageRegistrationRepository,
            IEntityRepository<Package> packageRepository,
            IEntityRepository<PackageOwnerRequest> packageOwnerRequestRepository,
            IIndexingService indexingService,
            IPackageNamingConflictValidator packageNamingConflictValidator,
            AuditingService auditingService)
        {
            if (packageRegistrationRepository == null)
            {
                throw new ArgumentNullException(nameof(packageRegistrationRepository));
            }

            if (packageRepository == null)
            {
                throw new ArgumentNullException(nameof(packageRepository));
            }

            if (packageOwnerRequestRepository == null)
            {
                throw new ArgumentNullException(nameof(packageOwnerRequestRepository));
            }

            if (indexingService == null)
            {
                throw new ArgumentNullException(nameof(indexingService));
            }

            if (packageNamingConflictValidator == null)
            {
                throw new ArgumentNullException(nameof(packageNamingConflictValidator));
            }

            if (auditingService == null)
            {
                throw new ArgumentNullException(nameof(auditingService));
            }

            _packageRegistrationRepository = packageRegistrationRepository;
            _packageRepository = packageRepository;
            _packageOwnerRequestRepository = packageOwnerRequestRepository;
            _indexingService = indexingService;
            _packageNamingConflictValidator = packageNamingConflictValidator;
            _auditingService = auditingService;
        }
开发者ID:ZhiYuanHuang,项目名称:NuGetGallery,代码行数:45,代码来源:PackageService.cs


示例19: ApiController

 public ApiController(
     IEntitiesContext entitiesContext,
     IPackageService packageService,
     IPackageFileService packageFileService,
     IUserService userService,
     INuGetExeDownloaderService nugetExeDownloaderService,
     IContentService contentService,
     IIndexingService indexingService)
 {
     EntitiesContext = entitiesContext;
     PackageService = packageService;
     PackageFileService = packageFileService;
     UserService = userService;
     NugetExeDownloaderService = nugetExeDownloaderService;
     ContentService = contentService;
     StatisticsService = null;
     IndexingService = indexingService;
 }
开发者ID:nicholaspei,项目名称:NuGetGallery,代码行数:18,代码来源:ApiController.cs


示例20: ProcessFindCommand

        private static void ProcessFindCommand(FindCommand command, IIndexingService service)
        {
            Console.WriteLine("Start searching...");
            IEnumerable<string> fileNames = null;
            var word = command.Word;
            var stopwatch = new Stopwatch();
            try
            {
                stopwatch.Start();
                fileNames = service.GetFilesByIndex(new Index(word));
            }
            catch (ArgumentException ex)
            {
                Console.WriteLine("Some problems with index");
                Console.WriteLine(ex.Message);
            }

            stopwatch.Stop();

            if ((fileNames != null) && (fileNames.Any()))
            {
                Console.WriteLine("I've found files with word: " + word);
                foreach (var fileName in fileNames)
                {
                    Console.WriteLine(fileName);
                }
            }
            else
            {
                Console.WriteLine("I haven't found anything");
            }

            Console.WriteLine("Done for : " + stopwatch.Elapsed);

            Console.WriteLine("Stop searching");
        }
开发者ID:WinnieThePoooh,项目名称:JetBraindexer,代码行数:36,代码来源:Program.cs



注:本文中的IIndexingService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IInformationObject类代码示例发布时间:2022-05-24
下一篇:
C# IIndexerManagerService类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap