public MongodbSourceHandler(ILogger <MongodbSourceHandler> logger, IOutputMapping mapping, IMongodbService service) { _logger = logger; _mapping = mapping; _service = service; }
public List <JObject> QueryTextWithMapping(string queriedField, string queriedText, int pageLimit, int pageSkip, List <PropertyOutput> maps, IOutputMapping outputMapping) { var bsonList = QueryText(queriedField, queriedText, pageLimit, pageSkip); var jObjects = new List <JObject>(); bsonList.ForEach(x => jObjects.Add(outputMapping.ConvertFromBson(x, maps))); return(jObjects); }