Beispiel #1
0
 /// <inheritdoc cref="HasPrivileges(System.Func{Nest6.HasPrivilegesDescriptor,Nest6.IHasPrivilegesRequest})" />
 public Task <IHasPrivilegesResponse> HasPrivilegesAsync(IHasPrivilegesRequest request, CancellationToken cancellationToken = default) =>
 Dispatcher.DispatchAsync <IHasPrivilegesRequest, HasPrivilegesRequestParameters, HasPrivilegesResponse, IHasPrivilegesResponse>(
     request,
     cancellationToken,
     LowLevelDispatch.XpackSecurityHasPrivilegesDispatchAsync <HasPrivilegesResponse>
     );
Beispiel #2
0
 /// <inheritdoc cref="HasPrivileges(System.Func{Nest6.HasPrivilegesDescriptor,Nest6.IHasPrivilegesRequest})" />
 public IHasPrivilegesResponse HasPrivileges(IHasPrivilegesRequest request) =>
 Dispatcher.Dispatch <IHasPrivilegesRequest, HasPrivilegesRequestParameters, HasPrivilegesResponse>(
     request,
     LowLevelDispatch.XpackSecurityHasPrivilegesDispatch <HasPrivilegesResponse>
     );
 public static Task <HasPrivilegesResponse> HasPrivilegesAsync(this IElasticClient client, IHasPrivilegesRequest request,
                                                               CancellationToken ct = default
                                                               )
 => client.Security.HasPrivilegesAsync(request, ct);
 public static HasPrivilegesResponse HasPrivileges(this IElasticClient client, IHasPrivilegesRequest request)
 => client.Security.HasPrivileges(request);
Beispiel #5
0
 /// <inheritdoc cref="HasPrivileges(System.Func{Nest.HasPrivilegesDescriptor,Nest.IHasPrivilegesRequest})" />
 public Task <HasPrivilegesResponse> HasPrivilegesAsync(IHasPrivilegesRequest request, CancellationToken ct = default) =>
 DoRequestAsync <IHasPrivilegesRequest, HasPrivilegesResponse>
     (request, request.RequestParameters, ct);
Beispiel #6
0
 /// <inheritdoc cref="HasPrivileges(System.Func{Nest.HasPrivilegesDescriptor,Nest.IHasPrivilegesRequest})" />
 public HasPrivilegesResponse HasPrivileges(IHasPrivilegesRequest request) =>
 DoRequest <IHasPrivilegesRequest, HasPrivilegesResponse>(request, request.RequestParameters);