/// <inheritdoc /> public Task<IShardsOperationResponse> RefreshAsync(IRefreshRequest refreshRequest) { return this.DispatchAsync<IRefreshRequest, RefreshRequestParameters, ShardsOperationResponse, IShardsOperationResponse>( refreshRequest, (p, d) => this.RawDispatch.IndicesRefreshDispatchAsync<ShardsOperationResponse>(p) ); }
/// <inheritdoc /> public Task <IShardsOperationResponse> RefreshAsync(IRefreshRequest refreshRequest) { return(this.DispatchAsync <IRefreshRequest, RefreshRequestParameters, ShardsOperationResponse, IShardsOperationResponse>( refreshRequest, (p, d) => this.RawDispatch.IndicesRefreshDispatchAsync <ShardsOperationResponse>(p) )); }
/// <inheritdoc /> public IShardsOperationResponse Refresh(IRefreshRequest refreshRequest) { return this.Dispatch<IRefreshRequest, RefreshRequestParameters, ShardsOperationResponse>( refreshRequest, (p, d) => this.RawDispatch.IndicesRefreshDispatch<ShardsOperationResponse>(p) ); }
/// <inheritdoc /> public IShardsOperationResponse Refresh(IRefreshRequest refreshRequest) { return(this.Dispatch <IRefreshRequest, RefreshRequestParameters, ShardsOperationResponse>( refreshRequest, (p, d) => this.RawDispatch.IndicesRefreshDispatch <ShardsOperationResponse>(p) )); }
public IRefreshResponse Refresh(IRefreshRequest request, [CallerMemberName] string callerName = "") { var timer = Stopwatch.StartNew(); var result = _client.Refresh(request); SendLog(result.ApiCall, null, timer.ElapsedMilliseconds, $"Refresh {callerName}"); return(result); }
public RefreshResponse Refresh(IRefreshRequest request, [CallerMemberName] string callerName = "") { var timer = Stopwatch.StartNew(); var result = _client.Indices.Refresh(request); ValidateResponse(result); SendLog(result.ApiCall, null, timer.ElapsedMilliseconds, $"Elasticsearch.Refresh.{callerName}"); return(result); }
/// <inheritdoc/> public IRefreshResponse Refresh(IRefreshRequest request) => this.Dispatcher.Dispatch<IRefreshRequest, RefreshRequestParameters, RefreshResponse>( request, (p, d) => this.LowLevelDispatch.IndicesRefreshDispatch<RefreshResponse>(p) );
/// <inheritdoc/> public Task<IRefreshResponse> RefreshAsync(IRefreshRequest request, CancellationToken cancellationToken = default(CancellationToken)) => this.Dispatcher.DispatchAsync<IRefreshRequest, RefreshRequestParameters, RefreshResponse, IRefreshResponse>( request, cancellationToken, (p, d, c) => this.LowLevelDispatch.IndicesRefreshDispatchAsync<RefreshResponse>(p, c) );
/// <inheritdoc /> public Task <RefreshResponse> RefreshAsync(IRefreshRequest request, CancellationToken ct = default) => DoRequestAsync <IRefreshRequest, RefreshResponse>(request, request.RequestParameters, ct);
/// <inheritdoc /> public RefreshResponse Refresh(IRefreshRequest request) => DoRequest <IRefreshRequest, RefreshResponse>(request, request.RequestParameters);
public static RefreshResponse Refresh(this IElasticClient client, IRefreshRequest request) => client.Indices.Refresh(request);
/// <inheritdoc/> public IShardsOperationResponse Refresh(IRefreshRequest request) => this.Dispatcher.Dispatch <IRefreshRequest, RefreshRequestParameters, ShardsOperationResponse>( request, (p, d) => this.LowLevelDispatch.IndicesRefreshDispatch <ShardsOperationResponse>(p) );
/// <inheritdoc /> public Task <IRefreshResponse> RefreshAsync(IRefreshRequest request, CancellationToken cancellationToken = default(CancellationToken)) => Dispatcher.DispatchAsync <IRefreshRequest, RefreshRequestParameters, RefreshResponse, IRefreshResponse>( request, cancellationToken, (p, d, c) => LowLevelDispatch.IndicesRefreshDispatchAsync <RefreshResponse>(p, c) );
/// <inheritdoc /> public IRefreshResponse Refresh(IRefreshRequest request) => Dispatcher.Dispatch <IRefreshRequest, RefreshRequestParameters, RefreshResponse>( request, (p, d) => LowLevelDispatch.IndicesRefreshDispatch <RefreshResponse>(p) );
public static Task <RefreshResponse> RefreshAsync(this IElasticClient client, IRefreshRequest request, CancellationToken ct = default) => client.Indices.RefreshAsync(request, ct);
/// <inheritdoc/> public Task<IRefreshResponse> RefreshAsync(IRefreshRequest request) => this.Dispatcher.DispatchAsync<IRefreshRequest, RefreshRequestParameters, RefreshResponse, IRefreshResponse>( request, (p, d) => this.LowLevelDispatch.IndicesRefreshDispatchAsync<RefreshResponse>(p) );
/// <inheritdoc/> public Task <IShardsOperationResponse> RefreshAsync(IRefreshRequest request) => this.Dispatcher.DispatchAsync <IRefreshRequest, RefreshRequestParameters, ShardsOperationResponse, IShardsOperationResponse>( request, (p, d) => this.LowLevelDispatch.IndicesRefreshDispatchAsync <ShardsOperationResponse>(p) );
public static void Update(ElasticsearchPathInfo <RefreshRequestParameters> pathInfo, IRefreshRequest request) { pathInfo.HttpMethod = PathInfoHttpMethod.POST; }