Ejemplo n.º 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));
        }
Ejemplo n.º 2
0
 public async Task <EvalResult> PostEvaluation(EvalContext evalContext)
 {
     return(await PostEvaluation(evalContext, CancellationToken.None));
 }