public IContentRepositoryQueryContext <PageRoute> GetByPath(GetNotFoundPageRouteByPathQuery query)
 {
     return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
 }
コード例 #2
0
ファイル: PageRepository.cs プロジェクト: kishea/kteq-cms
 /// <summary>
 /// Attempts to find the most relevant 'Not Found' page route by searching
 /// for a 'Not Found' page up the directory tree.
 /// </summary>
 /// <param name="query">Query parameters</param>
 /// <param name="executionContext">Optional execution context to use when executing the query. Useful if you need to temporarily elevate your permission level.</param>
 public Task <PageRoute> GetNotFoundPageRouteByPathAsync(GetNotFoundPageRouteByPathQuery query, IExecutionContext executionContext = null)
 {
     return(_queryExecutor.ExecuteAsync(query, executionContext));
 }
コード例 #3
0
 public Task <PageRoute> GetByPathAsync(GetNotFoundPageRouteByPathQuery query)
 {
     return(ExtendableContentRepository.ExecuteQueryAsync(query));
 }