public IContentRepositoryQueryContext <PageRoute> GetByPath(GetNotFoundPageRouteByPathQuery query)
 {
     return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
 }
Beispiel #2
0
 /// <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));
 }
Beispiel #3
0
 public Task <PageRoute> GetByPathAsync(GetNotFoundPageRouteByPathQuery query)
 {
     return(ExtendableContentRepository.ExecuteQueryAsync(query));
 }