예제 #1
0
 public ActionResult <QuickConnectResult> Connect([FromQuery, Required] string secret)
 {
     try
     {
         return(_quickConnect.CheckRequestStatus(secret));
     }
     catch (ResourceNotFoundException)
     {
         return(NotFound("Unknown secret"));
     }
 }
예제 #2
0
 public ActionResult <QuickConnectResult> Connect([FromQuery, Required] string secret)
 {
     try
     {
         return(_quickConnect.CheckRequestStatus(secret));
     }
     catch (ResourceNotFoundException)
     {
         return(NotFound("Unknown secret"));
     }
     catch (AuthenticationException)
     {
         return(Unauthorized("Quick connect is disabled"));
     }
 }