/// <inheritdoc /> public override Task <T> ExecuteQueryModelAsync <T>(QueryModel queryModel, IAsyncQueryExecutor executor, CancellationToken cancellationToken = default) { if (queryModel == null) { throw new ArgumentNullException(nameof(queryModel)); } if (executor == null) { throw new ArgumentNullException(nameof(executor)); } return(executor.ExecuteScalarAsync <T>(queryModel, cancellationToken)); }
private static object ExecuteScalarQueryModel <T>(QueryModel queryModel, IAsyncQueryExecutor executor, CancellationToken cancel) { ArgumentUtility.CheckNotNull("queryModel", queryModel); ArgumentUtility.CheckNotNull("executor", executor); return(executor.ExecuteScalarAsync <T>(queryModel, cancel)); }