public ActionResult <QuickConnectResult> Initiate() { try { return(_quickConnect.TryConnect()); } catch (AuthenticationException) { return(Unauthorized("Quick connect is disabled")); } }
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")); } }
public ActionResult <QuickConnectResult> Initiate() { return(_quickConnect.TryConnect()); }