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