public virtual IValueBufferFactory CreateValueBufferFactory(
            IValueBufferFactoryFactory valueBufferFactoryFactory)
        {
            Check.NotNull(valueBufferFactoryFactory, nameof(valueBufferFactoryFactory));

            return(valueBufferFactoryFactory.Create(_findExpression.GetProjectionTypes().ToArray(), indexMap: null));
        }
        public ShaperCommandContext([NotNull] IValueBufferFactoryFactory valueBufferFactoryFactory,
                                    [NotNull] Func <IBsonQueryGenerator> bsonQueryGeneratorFunc)
        {
            Check.NotNull(valueBufferFactoryFactory, nameof(valueBufferFactoryFactory));
            Check.NotNull(bsonQueryGeneratorFunc, nameof(bsonQueryGeneratorFunc));

            _valueBufferFactoryFactory = valueBufferFactoryFactory;
            BsonQueryGeneratorFunc     = bsonQueryGeneratorFunc;
        }
        public ShaperCommandContextFactory([NotNull] IValueBufferFactoryFactory valueBufferFactoryFactory)
        {
            Check.NotNull(valueBufferFactoryFactory, nameof(valueBufferFactoryFactory));

            _valueBufferFactoryFactory = valueBufferFactoryFactory;
        }
 public IValueBufferFactory CreateValueBufferFactory(IValueBufferFactoryFactory valueBufferFactoryFactory)
 {
     return(valueBufferFactoryFactory.
            Create(_findExpression.GetProjectionTypes().ToArray(), indexMap: null));
 }
 public ShaperCommandContextFactory(IValueBufferFactoryFactory valueBufferFactoryFactory)
 {
     _valueBufferFactoryFactory = valueBufferFactoryFactory;
 }
Exemplo n.º 6
0
 public ShaperCommandContext(IValueBufferFactoryFactory valueBufferFactoryFactory,
                             Func <IBsonQueryGenerator> bsonQueryGeneratorFunc)
 {
     _valueBufferFactoryFactory = valueBufferFactoryFactory;
     BsonQueryGeneratorFunc     = bsonQueryGeneratorFunc;
 }