コード例 #1
0
        public Task <SecurityPutUserResponse> PutUserAsync(Elastic.Clients.Elasticsearch.Username username, Action <SecurityPutUserRequestDescriptor> configureRequest = null, CancellationToken cancellationToken = default)
        {
            var descriptor = new SecurityPutUserRequestDescriptor(username);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequestAsync <SecurityPutUserRequestDescriptor, SecurityPutUserResponse>(descriptor));
        }
コード例 #2
0
        public SecurityPutUserResponse PutUser(Elastic.Clients.Elasticsearch.Username username, Action <SecurityPutUserRequestDescriptor> configureRequest = null)
        {
            var descriptor = new SecurityPutUserRequestDescriptor(username);

            configureRequest?.Invoke(descriptor);
            descriptor.BeforeRequest();
            return(DoRequest <SecurityPutUserRequestDescriptor, SecurityPutUserResponse>(descriptor));
        }