Пример #1
0
 public async Task <IResultList <IContentEntity> > QueryAsync(IAppEntity app, ISchemaEntity schema, ClrQuery query, DomainId?referenced)
 {
     using (Profiler.TraceMethod <MongoContentRepository>("QueryAsyncByQuery"))
     {
         return(await queryContentsByQuery.DoAsync(app, schema, query, referenced, SearchScope.Published));
     }
 }
 public async Task <IResultList <IContentEntity> > QueryAsync(IAppEntity app, ISchemaEntity schema, Status[]?status, bool inDraft, ClrQuery query, bool includeDraft = true)
 {
     using (Profiler.TraceMethod <MongoContentRepository>("QueryAsyncByQuery"))
     {
         return(await queryContentsByQuery.DoAsync(app, schema, query, status, inDraft, includeDraft));
     }
 }