public static IQueryExecutionBuilder UsePersistedQueryPipeline( this IQueryExecutionBuilder builder) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } return(builder .UsePersistedQueryPipeline(new QueryExecutionOptions())); }
public static IQueryExecutionBuilder UseActivePersistedQueryPipeline( this IQueryExecutionBuilder builder, IQueryExecutionOptionsAccessor options) { if (builder == null) { throw new ArgumentNullException(nameof(builder)); } if (options == null) { throw new ArgumentNullException(nameof(options)); } return(builder .UsePersistedQueryPipeline(options) .UseWritePersistedQuery()); }