Exemplo n.º 1
0
 /// <inheritdoc />
 public Task <IGetUserAccessTokenResponse> GetUserAccessTokenAsync(IGetUserAccessTokenRequest request,
                                                                   CancellationToken cancellationToken = default(CancellationToken)
                                                                   ) =>
 Dispatcher
 .DispatchAsync <IGetUserAccessTokenRequest, GetUserAccessTokenRequestParameters, GetUserAccessTokenResponse,
                 IGetUserAccessTokenResponse>(
     request,
     cancellationToken,
     (p, d, c) => LowLevelDispatch.XpackSecurityGetTokenDispatchAsync <GetUserAccessTokenResponse>(p, d, c)
     );
 /// <inheritdoc/>
 public IGetUserAccessTokenResponse GetUserAccessToken(IGetUserAccessTokenRequest request) =>
 this.Dispatcher.Dispatch <IGetUserAccessTokenRequest, GetUserAccessTokenRequestParameters, GetUserAccessTokenResponse>(
     request,
     (p, d) => this.LowLevelDispatch.XpackSecurityGetTokenDispatch <GetUserAccessTokenResponse>(p, d)
     );
 public static Task <GetUserAccessTokenResponse> GetUserAccessTokenAsync(this IElasticClient client, IGetUserAccessTokenRequest request,
                                                                         CancellationToken ct = default
                                                                         )
 => client.Security.GetUserAccessTokenAsync(request, ct);
 public static GetUserAccessTokenResponse GetUserAccessToken(this IElasticClient client, IGetUserAccessTokenRequest request)
 => client.Security.GetUserAccessToken(request);
 /// <inheritdoc />
 public Task <GetUserAccessTokenResponse> GetUserAccessTokenAsync(IGetUserAccessTokenRequest request, CancellationToken ct = default) =>
 DoRequestAsync <IGetUserAccessTokenRequest, GetUserAccessTokenResponse>(request, request.RequestParameters, ct);
 /// <inheritdoc />
 public GetUserAccessTokenResponse GetUserAccessToken(IGetUserAccessTokenRequest request) =>
 DoRequest <IGetUserAccessTokenRequest, GetUserAccessTokenResponse>(request, request.RequestParameters);