public IContentRepositoryQueryContext <ICustomEntityRoutingRule> AsRoutingRule()
        {
            var query = new GetCustomEntityRoutingRuleByRouteFormatQuery(_routeFormat);

            return(ContentRepositoryQueryContextFactory.Create(query, ExtendableContentRepository));
        }
Ejemplo n.º 2
0
        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));
        }