示例#1
0
        public async Task <EvalResult> PostEvaluation(EvalContext evalContext, CancellationToken cancellationToken)
        {
            var content = await SerializeAsync(evalContext);

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

            var respContent = resp.Content;

            return(await DeserializeAsync <EvalResult>(respContent));
        }
示例#2
0
 public async Task <EvalResult> PostEvaluation(EvalContext evalContext)
 {
     return(await PostEvaluation(evalContext, CancellationToken.None));
 }