当前位置: 首页>>代码示例>>C#>>正文


C# ISearchService类代码示例

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


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

示例1: TestableV1Feed

 public TestableV1Feed(
     IEntityRepository<Package> repo,
     IGalleryConfigurationService configuration,
     ISearchService searchService)
     : base(repo, configuration, searchService)
 {
 }
开发者ID:rhysawilliams2010,项目名称:NuGetGallery,代码行数:7,代码来源:TestableV1Feed.cs

示例2: SearchHighlightService

        public SearchHighlightService(ISearchService searchService)
        {
            Argument.IsNotNull(() => searchService);

            _searchService = searchService;
            _searchService.Searched += OnSearched;
        }
开发者ID:telefunkenvf14,项目名称:Orc.Search,代码行数:7,代码来源:SearchHighlightService.cs

示例3: ListController

 public ListController(
     IMemberService _memberService
     , IAreaAttService _areaAttService
     , IAreaService _areaService
     , IOutDoorMediaCateService _outDoorMediaCateService
     , IOutDoorService _outDoorService
     , IFormatCateService _formatCateService
     , ICompanyBussinessService _companyBussinessService
     , ICompanyFundService _companyFundService
     , ICompanyScaleService _companyScaleService
     , IPeriodCateService _periodCateService
     , IOwnerCateService _ownerCateService
     , IAuctionCalendarService _auctionCalendarService
     , ISourceService _sourceService
     , ISearchService _searchService
     )
 {
     areaAttService = _areaAttService;
     areaService = _areaService;
     memberService = _memberService;
     outDoorMediaCateService = _outDoorMediaCateService;
     outDoorService = _outDoorService;
     formatCateService = _formatCateService;
     companyBussinessService = _companyBussinessService;
     companyFundService = _companyFundService;
     companyScaleService = _companyScaleService;
     periodCateService = _periodCateService;
     ownerCateService = _ownerCateService;
     auctionCalendarService = _auctionCalendarService;
     sourceService = _sourceService;
     searchService = _searchService;
 }
开发者ID:navy235,项目名称:WebSite,代码行数:32,代码来源:ListController.cs

示例4: SearchServiceDemo

 public SearchServiceDemo(String defaultRepository, String secondaryRepository, String userName, String password)
     : base(defaultRepository, secondaryRepository, userName, password)
 {
     ServiceFactory serviceFactory = ServiceFactory.Instance;
     searchService =
         serviceFactory.GetRemoteService<ISearchService>(DemoServiceContext, "search");
 }
开发者ID:danieldoboseru,项目名称:network-spider,代码行数:7,代码来源:SearchServiceDemo.cs

示例5: GetModel

 public static HomeViewModel GetModel(ISearchService SearchService)
 {
     return new HomeViewModel() {
         UltimasPublicaciones = SearchService.Latest("RSS",20).Entries,
         UltimosVideos = SearchService.Latest("Video", 10).Entries
     };
 }
开发者ID:ealsur,项目名称:mvpstream,代码行数:7,代码来源:HomeService.cs

示例6: TopicsService

 public TopicsService(ITopicsDataAccess da, IMessagesDataAccess messagesDa, ISearchService searchIndex, ILoggerService loggerService)
 {
     _dataAccess = da;
     _messagesDataAccess = messagesDa;
     _searchIndex = searchIndex;
     _loggerService = loggerService;
 }
开发者ID:ramiglez30,项目名称:Forum-Construnario,代码行数:7,代码来源:TopicsService.cs

示例7: WordController

        public WordController(
			ISearchService searchService,
			IMaintainService maintainService)
        {
            _searchService = searchService;
            _maintainService = maintainService;
        }
开发者ID:wesley1001,项目名称:Root,代码行数:7,代码来源:WordController.cs

示例8: WikiPageController

 public WikiPageController(IOrchardServices orchardServices, 
     IRepository<WikiPageAttachmentRecord> repoWikiAttachment,
     ITagService tagService,
     IAuthorizationService authorizationService,
     INotifier notifier,
     ISiteService siteService,
     ISearchService searchService,
     IShapeFactory shapeFactory,
     IWikiPageService wikiPageService,
     IMediaService mediaService
    ){
     _orchardServices = orchardServices;
     _repoWikiAttachment = repoWikiAttachment;
     _tagService = tagService;
     _authorizationService = authorizationService;
     _notifier = notifier;
     _searchService = searchService;
     _siteService = siteService;
     _wikiPageService = wikiPageService;
     _mediaService = mediaService;
     Logger = NullLogger.Instance;
     Shape = shapeFactory;
    
     
 }
开发者ID:kevinthant,项目名称:wiki,代码行数:25,代码来源:WikiPageController.cs

示例9: MorphemeController

        public MorphemeController(
			ISearchService searchService,
			IMaintainService maintainService)
        {
            _searchService = searchService;
            _maintainService = maintainService;
        }
开发者ID:wesley1001,项目名称:Root,代码行数:7,代码来源:MorphemeController.cs

示例10: SearchController

        public SearchController(IResourceService resourceService, IUserService userService, IProfileService profileService, ISearchService searchService, IStateService stateService, IConversationService conversationService)
            : base(resourceService, userService, profileService, stateService, conversationService)
        {
            _searchService = searchService;
            ResourceService = resourceService;

        }
开发者ID:ramazanaktolu,项目名称:MS.Katusha,代码行数:7,代码来源:SearchController.cs

示例11: SearchController

 public SearchController(ISearchService searchService, IQueryRepositoryFactory queryRepositoryFactory, IUserIdentity userIdentity, IAccessQueryService accessQueryService)
 {
     _searchService = searchService;
     _queryRepositoryFactory = queryRepositoryFactory;
     _userIdentity = userIdentity;
     _accessQueryService = accessQueryService;
 }
开发者ID:ucdavis,项目名称:Purchasing,代码行数:7,代码来源:SearchController.cs

示例12: 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

示例13: 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

示例14: 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

示例15: SearchCore

        public static async Task<IQueryable<Package>> SearchCore(
            ISearchService searchService,
            HttpRequestBase request,
            IQueryable<Package> packages, 
            string searchTerm, 
            string targetFramework, 
            bool includePrerelease,
            CuratedFeed curatedFeed)
        {
            SearchFilter searchFilter;
            // We can only use Lucene if:
            //  a) We are looking for the latest version of a package OR the Index contains all versions of each package
            //  b) The sort order is something Lucene can handle
            if (TryReadSearchFilter(searchService.ContainsAllVersions, request.RawUrl, out searchFilter))
            {
                searchFilter.SearchTerm = searchTerm;
                searchFilter.IncludePrerelease = includePrerelease;
                searchFilter.CuratedFeed = curatedFeed;
                searchFilter.SupportedFramework = targetFramework;

                var results = await GetResultsFromSearchService(searchService, searchFilter);

                return results;
            }

            if (!includePrerelease)
            {
                packages = packages.Where(p => !p.IsPrerelease);
            }

            return packages.Search(searchTerm);
        }
开发者ID:juvchan,项目名称:SiteExtensionGallery,代码行数:32,代码来源:SearchAdaptor.cs


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