Ejemplo n.º 1
0
 protected EntitiesSearchService(
     IEntitiesSearchProvider <TEntity, TModel, TParameters, TStore> searchProvider,
     EntitiesSearchManager <TEntity, TParameters, TStore> manager)
     : this(searchProvider)
 {
     Manager = manager;
 }
 public AspNetCoreEntitiesSearchService(
     IEntitiesSearchProvider <TEntity, TModel, TParameters, TStore> searchProvider,
     TStore store,
     ILogger <EntitiesSearchManager <TEntity, TParameters, TStore> > logger,
     IHttpContextAccessor contextAccessor)
     : base(searchProvider, new AspNetCoreEntitiesSearchManager <TEntity, TParameters, TStore>(store, logger, contextAccessor))
 {
 }
Ejemplo n.º 3
0
 public EntitiesSearchService(
     IEntitiesSearchProvider <TEntity, TModel, TParameters, TStore> searchProvider,
     TStore store,
     ILogger <EntitiesSearchManager <TEntity, TParameters, TStore> > logger)
     : this(searchProvider)
 {
     Manager = new EntitiesSearchManager <TEntity, TParameters, TStore>(store, logger);
 }
Ejemplo n.º 4
0
        private EntitiesSearchService(IEntitiesSearchProvider <TEntity, TModel, TParameters, TStore> searchProvider)
        {
            if (searchProvider == null)
            {
                throw new ArgumentNullException(nameof(searchProvider));
            }

            Provider = searchProvider;
        }