public IContentRepositoryQueryContext <ICustomEntityRoutingRule> AsRoutingRule() { var query = new GetCustomEntityRoutingRuleByRouteFormatQuery(_routeFormat); return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository)); }
public Task <ICustomEntityRoutingRule> GetCustomEntityRoutingRuleByRouteFormatAsync(string routeFormat, IExecutionContext executionContext = null) { var query = new GetCustomEntityRoutingRuleByRouteFormatQuery(routeFormat); return(_queryExecutor.ExecuteAsync(query, executionContext)); }
public Task <ICustomEntityRoutingRule> AsRoutingRuleAsync() { var query = new GetCustomEntityRoutingRuleByRouteFormatQuery(_routeFormat); return(ExtendableContentRepository.ExecuteQueryAsync(query)); }