Ejemplo n.º 1
0
 /// <inheritdoc cref="CreateApiKey(System.Func{Nest6.CreateApiKeyDescriptor,Nest6.ICreateApiKeyRequest})" />
 public Task <ICreateApiKeyResponse> CreateApiKeyAsync(ICreateApiKeyRequest request,
                                                       CancellationToken cancellationToken = default(CancellationToken)
                                                       ) => Dispatcher
 .DispatchAsync <ICreateApiKeyRequest, CreateApiKeyRequestParameters, CreateApiKeyResponse, ICreateApiKeyResponse>(
     request,
     cancellationToken,
     LowLevelDispatch.XpackSecurityCreateApiKeyDispatchAsync <CreateApiKeyResponse>
     );
Ejemplo n.º 2
0
 /// <inheritdoc cref="CreateApiKey(System.Func{Nest6.CreateApiKeyDescriptor,Nest6.ICreateApiKeyRequest})" />
 public ICreateApiKeyResponse CreateApiKey(ICreateApiKeyRequest request) =>
 Dispatcher.Dispatch <ICreateApiKeyRequest, CreateApiKeyRequestParameters, CreateApiKeyResponse>(
     request,
     LowLevelDispatch.XpackSecurityCreateApiKeyDispatch <CreateApiKeyResponse>
     );