/Code/Source/Teaching.Threading.Web/Controllers/ApiTplController.cs
C# | 20 lines | 18 code | 2 blank | 0 comment | 0 complexity | 42be3a35765d93a5f13a3e93f6fd7d79 MD5 | raw file
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Net.Http;
- using System.Threading.Tasks;
- using System.Web.Http;
-
- namespace Teaching.Threading.Web.Controllers
- {
- public class ApiTplController : ApiController
- {
- public async Task<HttpResponseMessage> Get()
- {
- await Task.Delay(5000);
-
- return Request.CreateResponse(HttpStatusCode.OK, "Waited");
- }
- }
- }