public async Task <Result <Info> > GetInfo(string sessionId) { this.logger.LogDebug("GetInfo"); try { var res = await client.GetInfo(sessionId); var isAuthorized = CheckAuthorization(res); if (!isAuthorized) { return(Result <Info> .Failure(new UnauthorizedAccessException())); } return(Result <Info> .Success(converter.ParseInfo(res))); } catch (Exception e) { this.logger.LogError(e, "GetInfo"); return(Result <Info> .Failure(e)); } }