public static IQueryNode Run(IQueryNode node, IDictionary <string, string> includes, IQueryVisitorContextWithIncludeResolver context = null, ShouldSkipIncludeFunc shouldSkipInclude = null) { return(RunAsync(node, includes, context, shouldSkipInclude).GetAwaiter().GetResult()); }
public static Task <IQueryNode> RunAsync(IQueryNode node, IDictionary <string, string> includes, IQueryVisitorContextWithIncludeResolver context = null, ShouldSkipIncludeFunc shouldSkipInclude = null) { return(RunAsync(node, name => Task.FromResult(includes.ContainsKey(name) ? includes[name] : null), context, shouldSkipInclude)); }
public static IQueryNode Run(IQueryNode node, Func <string, string> includeResolver, IQueryVisitorContextWithIncludeResolver context = null, ShouldSkipIncludeFunc shouldSkipInclude = null) { return(RunAsync(node, name => Task.FromResult(includeResolver(name)), context, shouldSkipInclude).GetAwaiter().GetResult()); }
public static Task <IQueryNode> RunAsync(IQueryNode node, IncludeResolver includeResolver, IQueryVisitorContextWithIncludeResolver context = null, ShouldSkipIncludeFunc shouldSkipInclude = null) { return(new IncludeVisitor(shouldSkipInclude).AcceptAsync(node, context ?? new QueryVisitorContextWithIncludeResolver { IncludeResolver = includeResolver })); }
public static IQueryNode Run(IQueryNode node, Func <string, Task <string> > includeResolver, IQueryVisitorContextWithIncludeResolver context = null) { return(RunAsync(node, includeResolver, context).GetAwaiter().GetResult()); }
public static Task <IQueryNode> RunAsync(IQueryNode node, Func <string, Task <string> > includeResolver, IQueryVisitorContextWithIncludeResolver context = null) { return(new IncludeVisitor().AcceptAsync(node, context ?? new QueryVisitorContextWithIncludeResolver { IncludeResolver = includeResolver })); }