Ejemplo n.º 1
0
 public QueryParameterBuilder(QueryBuilder <TSource> queryBuilder,
                              IInMemoryComparerProvider inMemoryComparerProvider,
                              IContextValueResolver contextValueResolver)
 {
     _queryBuilder             = queryBuilder;
     _inMemoryComparerProvider = inMemoryComparerProvider;
     _contextValueResolver     = contextValueResolver;
     _queryStep = NewQueryStep();
 }
 public ConnectionEdgeQueryBuilder(QueryParameterBuilder <TSource> source,
                                   List <QueryStep> querySteps,
                                   List <ModelMember> modelMemberList,
                                   IInMemoryComparerProvider inMemoryComparerProvider)
 {
     _source                   = source;
     _querySteps               = querySteps;
     _modelMemberList          = modelMemberList;
     _inMemoryComparerProvider = inMemoryComparerProvider;
 }
Ejemplo n.º 3
0
 public QueryBuilderFactory(IGraphQlRepositoryProvider graphQlRepository,
                            IDistributedCache distributedCache,
                            ILogger logger,
                            IConnectionEdgeHandler connectionEdgeHandler,
                            IInMemoryComparerProvider inMemoryComparerProvider,
                            IModelMemberQueryArgumentProvider modelMemberQueryArgumentProvider,
                            IContextValueResolver contextValueResolver)
 {
     _graphQlRepository                = graphQlRepository;
     _distributedCache                 = distributedCache;
     _logger                           = logger;
     _connectionEdgeHandler            = connectionEdgeHandler;
     _inMemoryComparerProvider         = inMemoryComparerProvider;
     _modelMemberQueryArgumentProvider = modelMemberQueryArgumentProvider;
     _contextValueResolver             = contextValueResolver;
 }
 internal QueryBuilder(ObjectGraphType <object> objectGraphType,
                       string queryName,
                       string description,
                       IGraphQlRepositoryProvider graphQlRepositoryProvider,
                       IDistributedCache distributedCache,
                       ILogger logger,
                       IConnectionEdgeHandler connectionEdgeHandler,
                       IInMemoryComparerProvider inMemoryComparerProvider,
                       IModelMemberQueryArgumentProvider modelMemberQueryArgumentProvider,
                       IContextValueResolver contextValueResolver)
 {
     _objectGraphType  = objectGraphType;
     _queryName        = queryName;
     _description      = description;
     _queryExecutor    = new QueryExecutor <TSource>(graphQlRepositoryProvider, logger, connectionEdgeHandler);
     _distributedCache = distributedCache;
     _logger           = logger;
     _modelMemberQueryArgumentProvider = modelMemberQueryArgumentProvider;
     _queryParameterBuilder            = new QueryParameterBuilder <TSource>(this, inMemoryComparerProvider, contextValueResolver);
 }
Ejemplo n.º 5
0
 public InMemoryRepository(IInMemoryComparerProvider inMemoryComparerProvider)
 {
     _inMemoryComparerProvider = inMemoryComparerProvider;
 }