Fix the sample to await when writing directly to the output stream in a controller.

This commit is contained in:
YishaiGalatzer 2014-09-09 08:39:44 -07:00
parent df0b33a378
commit 8fd7cd51e2
1 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
using System.Threading.Tasks;
using Microsoft.AspNet.Http;
using Microsoft.AspNet.Mvc;
using MvcSample.Web.Models;
@ -37,9 +38,9 @@ namespace MvcSample.Web.RandomNameSpace
};
}
public void Raw()
public async Task Raw()
{
Response.WriteAsync("Hello World raw");
await Response.WriteAsync("Hello World raw");
}
public ActionResult UserJson()