Example #1
0
        public async Task GetClientSessionCountAsync(string realm, string clientId)
        {
            var clients = await ClientsClient.GetClientsAsync(realm);

            string clientsId = clients.FirstOrDefault(x => x.ClientId == clientId)?.Id;

            if (clientsId != null)
            {
                int?result = await ClientsClient.GetClientSessionCountAsync(realm, clientsId);

                Assert.True(result >= 0);
            }
        }