Skip to content

Commit

Permalink
suppress CA2213 to unblock dev
Browse files Browse the repository at this point in the history
  • Loading branch information
aortiz-msft committed Sep 27, 2022
1 parent 0c551dc commit f3d9c1d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public class HttpSourceAuthenticationHandler : DelegatingHandler
private readonly HttpClientHandler _clientHandler;
private readonly ICredentialService _credentialService;

#pragma warning disable CA2213
private readonly SemaphoreSlim _httpClientLock = new SemaphoreSlim(1, 1);
#pragma warning restore CA2213
private Dictionary<string, AmbientAuthenticationState> _authStates = new Dictionary<string, AmbientAuthenticationState>();
private HttpSourceCredentials _credentials;

Expand Down
3 changes: 2 additions & 1 deletion test/TestUtilities/Test.Utility/Protocol/TestContent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ namespace Test.Utility
{
public class TestContent : HttpContent
{
#pragma warning disable CA2213
private MemoryStream _stream;

#pragma warning restore CA2213
public TestContent(string s)
{
_stream = new MemoryStream(Encoding.UTF8.GetBytes(s));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ namespace Test.Utility
{
public class ReadTimeoutHonoringSlowStream : SlowStream
{
#pragma warning disable CA2213
private readonly Stream _innerStream;
#pragma warning restore CA2213
private readonly CancellationToken _cancellationToken;

public ReadTimeoutHonoringSlowStream(Stream innerStream)
Expand Down
2 changes: 2 additions & 0 deletions test/TestUtilities/Test.Utility/SlowStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ namespace Test.Utility
{
public class SlowStream : Stream
{
#pragma warning disable CA2213
private readonly Stream _innerStream;
#pragma warning restore CA2213
private readonly CancellationToken _cancellationToken;

public SlowStream(Stream innerStream)
Expand Down

0 comments on commit f3d9c1d

Please sign in to comment.