Skip to content

Commit ce25cb0

Browse files
chore: fix build error
1 parent e78fa8b commit ce25cb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sample/Sink/CustomHttpClient.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ public class CustomHttpClient : IHttpClient
1414

1515
public void Configure(IConfiguration configuration) => httpClient.DefaultRequestHeaders.Add("X-Api-Key", configuration["apiKey"]);
1616

17-
public async Task<HttpResponseMessage> PostAsync(string requestUri, Stream contentStream)
17+
public async Task<HttpResponseMessage> PostAsync(string requestUri, Stream contentStream, CancellationToken cancellationToken)
1818
{
1919
using var content = new StreamContent(contentStream);
2020
content.Headers.Add("Content-Type", "application/json");
2121

2222
var response = await httpClient
23-
.PostAsync(requestUri, content)
23+
.PostAsync(requestUri, content, cancellationToken)
2424
.ConfigureAwait(false);
2525

2626
return response;

0 commit comments

Comments
 (0)