Skip to content

Commit

Permalink
remove DisposeAsync in RestHubLifetimeManager. (#2175)
Browse files Browse the repository at this point in the history
  • Loading branch information
vwxyzh authored Mar 5, 2025
1 parent 049ef04 commit 2c0222b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,6 @@ public async Task SendStreamCompletionAsync(string connectionId, string streamId
await _restClient.SendWithRetryAsync(api, HttpMethod.Post, cancellationToken: cancellationToken);
}

#pragma warning disable CA1822
public Task DisposeAsync() => Task.CompletedTask;
#pragma warning restore CA1822

private static bool FilterExpectedResponse(HttpResponseMessage response, string expectedErrorCode) =>
response.IsSuccessStatusCode
|| (response.StatusCode == HttpStatusCode.NotFound && response.Headers.TryGetValues(Headers.MicrosoftErrorCode, out var errorCodes) && errorCodes.First().Equals(expectedErrorCode, StringComparison.OrdinalIgnoreCase));
Expand Down

0 comments on commit 2c0222b

Please sign in to comment.