src/Elastic.Transport/Responses/Special/VoidResponseBuilder.cs (12 lines of code) (raw):

// Licensed to Elasticsearch B.V under one or more agreements. // Elasticsearch B.V licenses this file to you under the Apache 2.0 License. // See the LICENSE file in the project root for more information using System.IO; using System.Threading; using System.Threading.Tasks; namespace Elastic.Transport; internal class VoidResponseBuilder : TypedResponseBuilder<VoidResponse> { protected override VoidResponse Build(ApiCallDetails apiCallDetails, BoundConfiguration boundConfiguration, Stream responseStream, string contentType, long contentLength) => VoidResponse.Default; protected override Task<VoidResponse> BuildAsync(ApiCallDetails apiCallDetails, BoundConfiguration boundConfiguration, Stream responseStream, string contentType, long contentLength, CancellationToken cancellationToken = default) => Task.FromResult(VoidResponse.Default); }