Exemple #1
0
        public Task <SecurityClearCachedRolesResponse> ClearCachedRolesAsync(Elastic.Clients.Elasticsearch.Names name, Action <SecurityClearCachedRolesRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SecurityClearCachedRolesRequestDescriptor(name);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SecurityClearCachedRolesRequestDescriptor, SecurityClearCachedRolesResponse>(descriptor));
        }
Exemple #2
0
        public SecurityClearCachedRolesResponse ClearCachedRoles(Elastic.Clients.Elasticsearch.Names name, Action <SecurityClearCachedRolesRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SecurityClearCachedRolesRequestDescriptor(name);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SecurityClearCachedRolesRequestDescriptor, SecurityClearCachedRolesResponse>(descriptor));
        }