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

C# ISearchService类代码示例

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

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



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


示例16: ListViewModel

        public ListViewModel(
            IToDoService toDoService, 
            IMessenger messenger, 
            IDispatcher dispatcher,
            ISearchService searchService,
            ISharingService sharingService
            )
        {
            _toDoService = toDoService;
            _searchService = searchService;
            _dispatcher = dispatcher;
            _messenger = messenger;
            _sharingService = sharingService;

            Items = new ObservableCollection<ToDoItem>();
            SearchResult = new ObservableCollection<ToDoItem>();

            RegisterSubscriptions();
            SetupCommands();
            
            Items.CollectionChanged += (s, c) =>
            {
                var count = Items.Count;
                Count = count;
                messenger.Send(new ItemCountChanged { Count = count });
            };
            PopulateItems();
        }
开发者ID:dolittle,项目名称:Toodeloo,代码行数:28,代码来源:ListViewModel.cs


示例17: 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 the client queries for the latest versions (IsLatest \ IsLatestStable) versions of a package
            // and specific sort orders that we have in the index.
            if (TryReadSearchFilter(request.RawUrl, out searchFilter))
            {
                searchFilter.SearchTerm = searchTerm;
                searchFilter.IncludePrerelease = includePrerelease;
                searchFilter.CuratedFeed = curatedFeed;

                Trace.WriteLine("TODO: use target framework parameter - see #856" + targetFramework);

                var results = await GetResultsFromSearchService(searchService, searchFilter);

                return results;
            }

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

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


示例18: SearchViewModel

 public SearchViewModel(ISearchService searchService)
 {
     this.searchService = searchService;
     Search = new RelayCommand(SearchExecuted);
     ShowDetails = new RelayCommand<SearchResult>(ShowDetailsExecuted);
     Results = new List<SearchResult>();
 }
开发者ID:p69,项目名称:magellan-framework,代码行数:7,代码来源:SearchViewModel.cs


示例19: SearchController

        public SearchController(ISearchService searchService)
        {
            if (searchService == null)
                throw new ArgumentNullException("searchService");

            this._searchService = searchService;
        }
开发者ID:palmerhyde,项目名称:UltimateGenSearch,代码行数:7,代码来源:SearchController.cs


示例20: ArtistPanoramaViewModelFactory

        public ArtistPanoramaViewModelFactory(ISearchService searchService, IEventAggregator eventAggregator, IPageSwitchingService pageSwitchingService, INotificationService notificationService)
        {
            _searchService = searchService;
            this._notificationService = notificationService;
            _pageSwitchingService = pageSwitchingService;

            _eventAggregator = eventAggregator;
        }
开发者ID:salfab,项目名称:open-syno,代码行数:8,代码来源:ArtistPanoramaViewModelFactory.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# ISecureDataFormat类代码示例发布时间:2022-05-24
下一篇:
C# ISearchResponse类代码示例发布时间: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