Пример #1
0
        public async Task <BatchEvalResult> PostEvaluationBatch(BatchEvalContext evalContext, CancellationToken cancellationToken)
        {
            var content = await SerializeAsync(evalContext);

            var resp = await client.PostAsync($"{this.host}/evaluation/batch", content, cancellationToken);

            var respContent = resp.Content;

            return(await DeserializeAsync <BatchEvalResult>(respContent));
        }
Пример #2
0
 public async Task <BatchEvalResult> PostEvaluationBatch(BatchEvalContext evalContext)
 {
     return(await PostEvaluationBatch(evalContext, CancellationToken.None));
 }