public ActionResult <QuickConnectResult> Initiate()
 {
     try
     {
         return(_quickConnect.TryConnect());
     }
     catch (AuthenticationException)
     {
         return(Unauthorized("Quick connect is disabled"));
     }
 }
Example #2
0
        public async Task <ActionResult <QuickConnectResult> > Initiate()
        {
            try
            {
                var auth = await _authContext.GetAuthorizationInfo(Request).ConfigureAwait(false);

                return(_quickConnect.TryConnect(auth));
            }
            catch (AuthenticationException)
            {
                return(Unauthorized("Quick connect is disabled"));
            }
        }
Example #3
0
 public ActionResult <QuickConnectResult> Initiate()
 {
     return(_quickConnect.TryConnect());
 }