コード例 #1
0
        public async Task <List <UserSession> > GetUserSessions(string tenantGroupName, string tenant, string hostPoolName, string sessionHostName)
        {
            _logger.LogInformation($"Make api call to get user session of host {sessionHostName} within hostpool {hostPoolName},  tenant {tenant} and tenant group {tenantGroupName} ");
            string token = Request.Headers["Authorization"];

            return(await _userSessionService.GetUserSessions(token, tenantGroupName, tenant, hostPoolName, sessionHostName).ConfigureAwait(false));
        }
コード例 #2
0
        public async Task <List <UserSession> > GetUserSessions(string accessToken, string tenantGroupName, string tenant, string hostPoolName, string hostName)
        {
            var data = await _userSessionService.GetUserSessions(accessToken, tenantGroupName, tenant, hostPoolName, hostName).ConfigureAwait(false);

            return(data);
        }