예제 #1
0
 public Async.Task <HttpResponseData> Run(
     [HttpTrigger(
          AuthorizationLevel.Anonymous,
          "GET", "POST",
          Route = "agents/registration")] HttpRequestData req)
 => _auth.CallIfAgent(
     req,
     r => r.Method switch {
     "GET" => Get(r),
     "POST" => Post(r),
예제 #2
0
 public Async.Task <HttpResponseData> Run(
     [HttpTrigger(AuthorizationLevel.Anonymous, "GET", "DELETE", Route = "agents/commands")]
     HttpRequestData req)
 => _auth.CallIfAgent(req, r => r.Method switch {
     "GET" => Get(req),
     "DELETE" => Delete(req),
예제 #3
0
 public Async.Task <HttpResponseData> Run(
     [HttpTrigger(AuthorizationLevel.Anonymous, "POST", Route = "agents/events")]
     HttpRequestData req)
 => _auth.CallIfAgent(req, Post);