I have this:
public async Task AddMyCookie() { await SomeFunction() ; HttpContext.Response.AppendCookie(new HttpCookie(...)); }
What result i