Exemplo n.º 1
0
        public Task <SecurityClearCachedRealmsResponse> ClearCachedRealmsAsync(Elastic.Clients.Elasticsearch.Names realms, Action <SecurityClearCachedRealmsRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SecurityClearCachedRealmsRequestDescriptor(realms);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SecurityClearCachedRealmsRequestDescriptor, SecurityClearCachedRealmsResponse>(descriptor));
        }
Exemplo n.º 2
0
        public SecurityClearCachedRealmsResponse ClearCachedRealms(Elastic.Clients.Elasticsearch.Names realms, Action <SecurityClearCachedRealmsRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SecurityClearCachedRealmsRequestDescriptor(realms);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SecurityClearCachedRealmsRequestDescriptor, SecurityClearCachedRealmsResponse>(descriptor));
        }