示例#1
0
 public static Task <GetPrivilegesResponse> GetPrivilegesAsync(this IElasticClient client, IGetPrivilegesRequest request,
                                                               CancellationToken ct = default
                                                               )
 => client.Security.GetPrivilegesAsync(request, ct);
示例#2
0
 public static GetPrivilegesResponse GetPrivileges(this IElasticClient client, IGetPrivilegesRequest request)
 => client.Security.GetPrivileges(request);
示例#3
0
 /// <inheritdoc cref="GetPrivileges(System.Func{Nest6.GetPrivilegesDescriptor,Nest6.IGetPrivilegesRequest})" />
 public Task <IGetPrivilegesResponse> GetPrivilegesAsync(IGetPrivilegesRequest request, CancellationToken cancellationToken = default(CancellationToken)) =>
 Dispatcher.DispatchAsync <IGetPrivilegesRequest, GetPrivilegesRequestParameters, GetPrivilegesResponse, IGetPrivilegesResponse>(
     request,
     cancellationToken,
     (p, d, c) => LowLevelDispatch.XpackSecurityGetPrivilegesDispatchAsync <GetPrivilegesResponse>(p, c)
     );
示例#4
0
 /// <inheritdoc cref="GetPrivileges(System.Func{Nest6.GetPrivilegesDescriptor,Nest6.IGetPrivilegesRequest})" />
 public IGetPrivilegesResponse GetPrivileges(IGetPrivilegesRequest request) =>
 Dispatcher.Dispatch <IGetPrivilegesRequest, GetPrivilegesRequestParameters, GetPrivilegesResponse>(
     request,
     (p, d) => LowLevelDispatch.XpackSecurityGetPrivilegesDispatch <GetPrivilegesResponse>(p)
     );
示例#5
0
 /// <inheritdoc cref="GetPrivileges(System.Func{Nest.GetPrivilegesDescriptor,Nest.IGetPrivilegesRequest})" />
 public Task <GetPrivilegesResponse> GetPrivilegesAsync(IGetPrivilegesRequest request, CancellationToken ct = default) =>
 DoRequestAsync <IGetPrivilegesRequest, GetPrivilegesResponse>(request, request.RequestParameters, ct);
示例#6
0
 /// <inheritdoc cref="GetPrivileges(System.Func{Nest.GetPrivilegesDescriptor,Nest.IGetPrivilegesRequest})" />
 public GetPrivilegesResponse GetPrivileges(IGetPrivilegesRequest request) =>
 DoRequest <IGetPrivilegesRequest, GetPrivilegesResponse>(request, request.RequestParameters);