Skip to content

Commit

Permalink
Unobsoleted SentryClient.Dispose (#2842)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Dlugos <6349682+vaind@users.noreply.github.com>
  • Loading branch information
bitsandfoxes and vaind authored Nov 17, 2023
1 parent 2c0d18a commit 34b8f9c
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 9 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#### Changed APIs

- `DebugImage` and `DebugMeta` moved to `Sentry.Protocol` namespace. ([#2815](https://github.com/getsentry/sentry-dotnet/pull/2815))
- `SentryClient.Dispose` is no longer obsolete ([#2842](https://github.com/getsentry/sentry-dotnet/pull/2842))

## 4.0.0-alpha.0

Expand Down
1 change: 0 additions & 1 deletion src/Sentry/SentryClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,6 @@ private bool CaptureEnvelope(Envelope envelope)
/// Disposes this client
/// </summary>
/// <inheritdoc />
[Obsolete("Sentry client should not be explicitly disposed of. This method will be removed in version 4.")]
public void Dispose()
{
_options.LogDebug("Flushing SentryClient.");
Expand Down
2 changes: 0 additions & 2 deletions test/Sentry.Tests/ApiApprovalTests.Run.DotNet6_0.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,6 @@ namespace Sentry
public void CaptureTransaction(Sentry.Transaction transaction) { }
public void CaptureTransaction(Sentry.Transaction transaction, Sentry.Hint? hint) { }
public void CaptureUserFeedback(Sentry.UserFeedback userFeedback) { }
[System.Obsolete("Sentry client should not be explicitly disposed of. This method will be removed i" +
"n version 4.")]
public void Dispose() { }
public System.Threading.Tasks.Task FlushAsync(System.TimeSpan timeout) { }
}
Expand Down
2 changes: 0 additions & 2 deletions test/Sentry.Tests/ApiApprovalTests.Run.DotNet7_0.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,6 @@ namespace Sentry
public void CaptureTransaction(Sentry.Transaction transaction) { }
public void CaptureTransaction(Sentry.Transaction transaction, Sentry.Hint? hint) { }
public void CaptureUserFeedback(Sentry.UserFeedback userFeedback) { }
[System.Obsolete("Sentry client should not be explicitly disposed of. This method will be removed i" +
"n version 4.")]
public void Dispose() { }
public System.Threading.Tasks.Task FlushAsync(System.TimeSpan timeout) { }
}
Expand Down
2 changes: 0 additions & 2 deletions test/Sentry.Tests/ApiApprovalTests.Run.DotNet8_0.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,6 @@ namespace Sentry
public void CaptureTransaction(Sentry.Transaction transaction) { }
public void CaptureTransaction(Sentry.Transaction transaction, Sentry.Hint? hint) { }
public void CaptureUserFeedback(Sentry.UserFeedback userFeedback) { }
[System.Obsolete("Sentry client should not be explicitly disposed of. This method will be removed i" +
"n version 4.")]
public void Dispose() { }
public System.Threading.Tasks.Task FlushAsync(System.TimeSpan timeout) { }
}
Expand Down
2 changes: 0 additions & 2 deletions test/Sentry.Tests/ApiApprovalTests.Run.Net4_8.verified.txt
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,6 @@ namespace Sentry
public void CaptureTransaction(Sentry.Transaction transaction) { }
public void CaptureTransaction(Sentry.Transaction transaction, Sentry.Hint? hint) { }
public void CaptureUserFeedback(Sentry.UserFeedback userFeedback) { }
[System.Obsolete("Sentry client should not be explicitly disposed of. This method will be removed i" +
"n version 4.")]
public void Dispose() { }
public System.Threading.Tasks.Task FlushAsync(System.TimeSpan timeout) { }
}
Expand Down

0 comments on commit 34b8f9c

Please sign in to comment.