예제 #1
0
        public async Task <Client> FindClientByIdAsync(string clientId)
        {
            var client = await _customClientRepository.FindAsync(x => x.ClientId == clientId);

            return(client);
        }
        public async Task IsActiveAsync(IsActiveContext context)
        {
            var client = await _customClientRepository.FindAsync(x => x.ClientId == context.Client.ClientId);

            context.IsActive = client.Enabled;
        }