/Code/Source/Teaching.Threading.Web/Controllers/ApiTplController.cs

https://bitbucket.org/BernhardGlueck/teaching · C# · 20 lines · 18 code · 2 blank · 0 comment · 0 complexity · 42be3a35765d93a5f13a3e93f6fd7d79 MD5 · raw file

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Net;
  5. using System.Net.Http;
  6. using System.Threading.Tasks;
  7. using System.Web.Http;
  8. namespace Teaching.Threading.Web.Controllers
  9. {
  10. public class ApiTplController : ApiController
  11. {
  12. public async Task<HttpResponseMessage> Get()
  13. {
  14. await Task.Delay(5000);
  15. return Request.CreateResponse(HttpStatusCode.OK, "Waited");
  16. }
  17. }
  18. }