Esempio n. 1
0
        public SearchController(IIndexService indexService, ISearchService<Post> searchService, ILogger<SearchController> logger)
        {
            _indexService = indexService;
            _searchService = searchService;
            _logger = logger;

        }
Esempio n. 2
0
 public DocumentServiceContract(TContext context, IIndexService indexService, IIndexNotificationService notificationService)
     : base(context, indexService, notificationService)
 {
     Contract.Requires(context != null, "The context must not be null.");
     Contract.Requires(indexService != null, "The index service must not be null.");
     Contract.Requires(notificationService != null, "The notification service must not be null.");
 }
Esempio n. 3
0
 public AlbumCommands(Logger.Logger logger,
                      ILastfmApi lastfmApi,
                      IPrefixService prefixService,
                      UserService userService,
                      LastFMService lastFmService,
                      WhoKnowsAlbumService whoKnowsAlbumService,
                      PlayService playService,
                      IIndexService indexService,
                      IUpdateService updateService)
 {
     this._logger               = logger;
     this._lastfmApi            = lastfmApi;
     this._lastFmService        = lastFmService;
     this._whoKnowsAlbumService = whoKnowsAlbumService;
     this._playService          = playService;
     this._indexService         = indexService;
     this._updateService        = updateService;
     this._prefixService        = prefixService;
     this._guildService         = new GuildService();
     this._userService          = userService;
     this._embed = new EmbedBuilder()
                   .WithColor(DiscordConstants.LastFMColorRed);
     this._embedAuthor = new EmbedAuthorBuilder();
     this._embedFooter = new EmbedFooterBuilder();
 }
Esempio n. 4
0
 // Constructor, parameters are provided by service provider
 public ApiController(IIndexService indexService, INodesService nodesService, IGraphService graphService, ITpsService tpsService)
 {
     _indexService = indexService;
     _nodesService = nodesService;
     _graphService = graphService;
     _tpsService   = tpsService;
 }
Esempio n. 5
0
        //private readonly INotificationSender _notificationSender;

        public SystemController(IIndexService indexService, IRepositoryFactory repositoryFactory, IRepositoryWithTypedId <EmailQueue, Guid> emailQueueRepository)//, INotificationSender notificationSender)
        {
            _indexService         = indexService;
            _repositoryFactory    = repositoryFactory;
            _emailQueueRepository = emailQueueRepository;
            //_notificationSender = notificationSender;
        }
Esempio n. 6
0
 public PerformNopImport(
     IImportPictureData importPictureData,
     IImportCountryData importCountryData,
     IImportRegionData importRegionData,
     IImportUsers importUsers,
     IImportTaxRates importTaxRates,
     IImportBrands importBrands,
     IImportSpecifications importSpecifications,
     IImportSpecificationAttributeOptions importSpecificationAttributeOptions,
     IImportOptions importOptions,
     IImportTags importTags,
     IImportCategories importCategories,
     IImportProducts importProducts,
     IImportOrders importOrders,
     IIndexService indexService, IImportAddresses importAddresses)
 {
     _importPictureData    = importPictureData;
     _importCountryData    = importCountryData;
     _importRegionData     = importRegionData;
     _importUsers          = importUsers;
     _importTaxRates       = importTaxRates;
     _importBrands         = importBrands;
     _importSpecifications = importSpecifications;
     _importSpecificationAttributeOptions = importSpecificationAttributeOptions;
     _importOptions    = importOptions;
     _importTags       = importTags;
     _importCategories = importCategories;
     _importProducts   = importProducts;
     _importOrders     = importOrders;
     _indexService     = indexService;
     _importAddresses  = importAddresses;
 }
 /// <summary>
 /// Initializes a new ProjectDocumentService.
 /// </summary>
 /// <param name="context">The context to query.</param>
 /// <param name="indexService">The index service.</param>
 /// <param name="notificationService">The notification service.</param>
 /// <param name="batchSize">The project dto batch size.</param>
 public ProjectDocumentService(EcaContext context, IIndexService indexService, IIndexNotificationService notificationService, int batchSize = 100)
     : base(context, indexService, notificationService, batchSize)
 {
     Contract.Requires(context != null, "The context must not be null.");
     Contract.Requires(indexService != null, "The index service must not be null.");
     Contract.Requires(notificationService != null, "The notification service must not be null.");
 }
Esempio n. 8
0
        public static void PerformActions(IIndexService indexService, List<LuceneAction> luceneActions)
        {
            foreach (var @group in luceneActions.GroupBy(action => action.Type))
            {
                IIndexManagerBase managerBase = indexService.GetIndexManagerBase(@group.Key);
                if (!managerBase.IndexExists)
                    managerBase.CreateIndex();

                IGrouping<Type, LuceneAction> thisGroup = @group;
                managerBase.Write(writer =>
                {
                    foreach (
                        LuceneAction luceneAction in
                            thisGroup.Where(action => action.Operation == LuceneOperation.Insert).ToList())
                        luceneAction.Execute(writer);
                    foreach (
                        LuceneAction luceneAction in
                            thisGroup.Where(action => action.Operation == LuceneOperation.Update).ToList())
                        luceneAction.Execute(writer);
                    foreach (
                        LuceneAction luceneAction in
                            thisGroup.Where(action => action.Operation == LuceneOperation.Delete).ToList())
                        luceneAction.Execute(writer);

                    //writer.Optimize();
                });
                managerBase.ResetSearcher();
            }
        }
Esempio n. 9
0
 //, INotificationSender notificationSender)
 //private readonly INotificationSender _notificationSender;
 public SystemController(IIndexService indexService, IRepositoryFactory repositoryFactory, IRepositoryWithTypedId<EmailQueue, Guid> emailQueueRepository)
 {
     _indexService = indexService;
     _repositoryFactory = repositoryFactory;
     _emailQueueRepository = emailQueueRepository;
     //_notificationSender = notificationSender;
 }
Esempio n. 10
0
 public SearchService(ILocalhost localhost, IFhirModel fhirModel, IFhirIndex fhirIndex, IIndexService indexService)
 {
     this.fhirModel    = fhirModel;
     this.localhost    = localhost;
     this.indexService = indexService;
     this.fhirIndex    = fhirIndex;
 }
Esempio n. 11
0
 public PerformNopImport(
     IImportPictureData importPictureData,
     IImportCountryData importCountryData,
     IImportRegionData importRegionData,
     IImportUsers importUsers,
     IImportTaxRates importTaxRates,
     IImportBrands importBrands,
     IImportSpecifications importSpecifications,
     IImportSpecificationAttributeOptions importSpecificationAttributeOptions,
     IImportOptions importOptions,
     IImportTags importTags,
     IImportCategories importCategories,
     IImportProducts importProducts,
     IImportOrders importOrders,
     IIndexService indexService, IImportAddresses importAddresses)
 {
     _importPictureData = importPictureData;
     _importCountryData = importCountryData;
     _importRegionData = importRegionData;
     _importUsers = importUsers;
     _importTaxRates = importTaxRates;
     _importBrands = importBrands;
     _importSpecifications = importSpecifications;
     _importSpecificationAttributeOptions = importSpecificationAttributeOptions;
     _importOptions = importOptions;
     _importTags = importTags;
     _importCategories = importCategories;
     _importProducts = importProducts;
     _importOrders = importOrders;
     _indexService = indexService;
     _importAddresses = importAddresses;
 }
 public CSettingsGetController(KokazContext context, IMapper mapper, Logging logging, ICountryCashedService countryCashedService, IRegionCashedService regionCashedService, IIndexService <MoenyPlaced> moneyPlacedIndexService, IIndexService <OrderPlaced> orderPlacedIndexService) : base(context, mapper, logging)
 {
     _countryCashedService    = countryCashedService;
     _regionCashedService     = regionCashedService;
     _orderPlacedIndexService = orderPlacedIndexService;
     _moneyPlacedIndexService = moneyPlacedIndexService;
 }
Esempio n. 13
0
 /// <summary>
 /// Creates a new SearchController with the given index service and user provider.
 /// </summary>
 /// <param name="indexService">The index service.</param>
 /// <param name="userProvider">The user provider.</param>
 public SearchController(IIndexService indexService, IUserProvider userProvider)
 {
     Contract.Requires(indexService != null, "The index service must not be null.");
     Contract.Requires(userProvider != null, "The user provider must not be null.");
     this.indexService = indexService;
     this.userProvider = userProvider;
 }
Esempio n. 14
0
 public TeamsController(IDetailsService <TeamDetails> teamDetailsService, IEditService <TeamEdit> teamEditService, IFormService <TeamViewModel> teamFormService, IIndexService <TeamIndex, TeamFilterOptionsViewModel> teamIndexService)
 {
     _teamDetailsService = teamDetailsService;
     _teamEditService    = teamEditService;
     _teamFormService    = teamFormService;
     _teamIndexService   = teamIndexService;
 }
Esempio n. 15
0
 public IndexAdminService(IKernel kernel, ISession session,
     IUniversalSearchIndexManager universalSearchIndexManager, IIndexService indexService)
 {
     _kernel = kernel;
     _session = session;
     _universalSearchIndexManager = universalSearchIndexManager;
     _indexService = indexService;
 }
Esempio n. 16
0
        public void Execute(IIndexService indexService)
        {
            if (indexService == null)
            {
                throw new ArgumentNullException("indexService");
            }

            var result = indexService.IndexEntity(entity, definition);
        }
Esempio n. 17
0
 public Executor(
     IIndexService indexService,
     IDocumentService documentService,
     ISearchService searchService)
 {
     IndexService    = indexService;
     DocumentService = documentService;
     SearchService   = searchService;
 }
        public InsanelySimpleBlogSidebarController(
            ICategoriesService categoriesService,
            IIndexService indexService)
        {
            Condition.Requires(categoriesService, "categoriesService").IsNotNull();
            Condition.Requires(indexService, "indexService").IsNotNull();

            _categoriesService = categoriesService;
            _indexService = indexService;
        }
Esempio n. 19
0
 public IndexCommands(Logger.Logger logger,
                      IIndexService indexService,
                      GuildService guildService)
 {
     this._logger       = logger;
     this._indexService = indexService;
     this._guildService = guildService;
     this._embed        = new EmbedBuilder()
                          .WithColor(Constants.LastFMColorRed);
 }
Esempio n. 20
0
 public HomeController(IIndexService indexService, IVipTicketService vipTicketService,
                       IMonthlySubscriptionService monthlySubscriptionService, IFreeTipsService freeTipsService,
                       IHtmlService htmlService, IControllerActionService controllerActionService)
 {
     _indexService               = indexService;
     _vipTicketService           = vipTicketService;
     _monthlySubscriptionService = monthlySubscriptionService;
     _freeTipsService            = freeTipsService;
     _htmlService             = htmlService;
     _controllerActionService = controllerActionService;
 }
Esempio n. 21
0
        public ShellViewModel(IWindowManager windowManager, 
            SimpleContainer container, 
            IIndexService indexService,
            OverviewViewModel overview)
        {
            _windowManager = windowManager;
            _container = container;
            _indexService = indexService;

            this.DisplayName = "Luke.Net - Lucene Index Toolbox, v" + typeof(ShellViewModel).Assembly.GetName().Version.ToString();
        }
Esempio n. 22
0
 public UserService(
     IUserRepository userRepository,
     IUserQueryRepository userQueryRepository,
     IIndexService <UserModel> indexService,
     IUnitOfWork unitOfWork)
 {
     this.userRepository      = userRepository;
     this.userQueryRepository = userQueryRepository;
     this.indexService        = indexService;
     this.unitOfWork          = unitOfWork;
 }
Esempio n. 23
0
        //	public AdminController(ISearch3Service search,ICorbeil3Service corbeil, IPreselectionService preselec, ICorrectionService corret, IIndexService index)

        public AdminController(ISearch3Service search, ICorbeil3Service corbeil, ICorrectionService corret, IPreselectionService preselec, ISelectionService selection, IEpreuveService epreuve, IIndexService index)

        {
            this.search    = search;
            this.corbeil   = corbeil;
            this.preselec  = preselec;
            this.selection = selection;
            this.corret    = corret;
            this.index     = index;
            this.epreuve   = epreuve;
        }
Esempio n. 24
0
 public IndexRebuildService(
     IIndexStore indexStore,
     IIndexService indexService,
     IFhirStorePagedReader entryReader,
     SparkSettings sparkSettings)
 {
     _indexStore    = indexStore ?? throw new ArgumentNullException(nameof(indexStore));
     _indexService  = indexService ?? throw new ArgumentNullException(nameof(indexService));
     _entryReader   = entryReader ?? throw new ArgumentNullException(nameof(entryReader));
     _sparkSettings = sparkSettings ?? throw new ArgumentNullException(nameof(sparkSettings));
 }
Esempio n. 25
0
        public ShellViewModel(IWindowManager windowManager,
                              SimpleContainer container,
                              IIndexService indexService,
                              OverviewViewModel overview)
        {
            _windowManager = windowManager;
            _container     = container;
            _indexService  = indexService;

            this.DisplayName = "Luke.Net - Lucene Index Toolbox, v" + typeof(ShellViewModel).Assembly.GetName().Version.ToString();
        }
Esempio n. 26
0
        public static void EnsureIndexExists <T1, T2>()
            where T1 : SystemEntity
            where T2 : IndexDefinition <T1>
        {
            IIndexService     service          = MrCMSApplication.Get <IIndexService>();
            IIndexManagerBase indexManagerBase = service.GetIndexManagerBase(typeof(T2));

            if (!indexManagerBase.IndexExists)
            {
                service.Reindex(indexManagerBase.GetIndexDefinitionType().FullName);
            }
        }
Esempio n. 27
0
        public IndexingService(
            ILogger <IndexingService> logger,
            IIndexService indexService,
            ILockWork lockWork,
            IndexingSettings indexingSettings)
        {
            this.logger       = logger;
            this.indexService = indexService;
            this.lockWork     = lockWork;

            this.IndexingFrequencySeconds = indexingSettings.IndexingFrequencySeconds;
        }
Esempio n. 28
0
 public IndexCommands(
     IIndexService indexService,
     IUpdateService updateService,
     GuildService guildService,
     UserService userService,
     IPrefixService prefixService)
 {
     this._indexService  = indexService;
     this._updateService = updateService;
     this._guildService  = guildService;
     this._userService   = userService;
     this._prefixService = prefixService;
     this._embed         = new EmbedBuilder()
                           .WithColor(Constants.LastFMColorRed);
 }
Esempio n. 29
0
 public HomeController(IIndexService indexService)
 {
     this._indexService = indexService;
 }
Esempio n. 30
0
 public OrderService(IRepositoryFactory repositoryFactory, 
                     IEventService eventService, 
                     IUserIdentity userIdentity, 
                     ISecurityService securityService, 
                     IRepository<WorkgroupPermission> workgroupPermissionRepository, 
                     IRepository<Approval> approvalRepository, 
                     IRepository<OrderTracking> orderTrackingRepository, 
                     IRepositoryWithTypedId<Organization, string> organizationRepository, 
                     //IRepositoryWithTypedId<User, string> userRepository, 
                     IRepository<Order> orderRepository, 
                     IQueryRepositoryFactory queryRepositoryFactory, 
                     IAccessQueryService accessQueryService,
                     IFinancialSystemService financialSystemService,
                     IIndexService indexService)
 {
     _repositoryFactory = repositoryFactory;
     _eventService = eventService;
     _userIdentity = userIdentity;
     _securityService = securityService;
     _workgroupPermissionRepository = workgroupPermissionRepository;
     _approvalRepository = approvalRepository;
     _orderTrackingRepository = orderTrackingRepository;
     _organizationRepository = organizationRepository;
     //_userRepository = userRepository;
     _orderRepository = orderRepository;
     _queryRepositoryFactory = queryRepositoryFactory;
     _accessQueryService = accessQueryService;
     _financialSystemService = financialSystemService;
     _indexService = indexService;
 }
Esempio n. 31
0
 public OptimiseIndexes(IIndexService indexService)
 {
     _indexService = indexService;
 }
 public void Execute(IIndexService indexService)
 {
     throw new NotImplementedException();
 }
Esempio n. 33
0
 public IndexSetup(IIndexService indexService)
 {
     _indexService = indexService;
 }
 public void Setup()
 {
     _categoriesService = MockRepository.GenerateStub<ICategoriesService>();
     _indexService = MockRepository.GenerateStub<IIndexService>();
 }
Esempio n. 35
0
 public OverviewViewModel(IIndexService indexService)
 {
     _indexService = indexService;
 }
Esempio n. 36
0
 public IndexController(IIndexService IndexService)
 {
     _IndexService = IndexService;
 }
 public LuceneIndexTaskExecutionHandler(IIndexService indexService, ITaskStatusUpdater taskStatusUpdater)
 {
     _indexService = indexService;
     _taskStatusUpdater = taskStatusUpdater;
 }