You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <summary>/// Frees managed resources used by the object./// </summary>/// <returns>A <see cref="ValueTask">task</see> that represents the asynchronous dispose operation.</returns>protectedvirtualasyncValueTaskDisposeAsyncCore()// <<<<<<< WARNING HERE{this.log.Debug("*");lock(this.disposedValueLock){if(this.disposedValue){this.log.Debug("$<ALREADY_DISPOSED>");return;}this.disposedValue=true;}// ...this.log.Debug("$");}/// <inheritdoc/>publicasyncValueTaskDisposeAsync(){awaitthis.DisposeAsyncCore().ConfigureAwait(false);GC.SuppressFinalize(this);}
Expected behavior
No warning.
Actual behavior
A warning is emitted.
The text was updated successfully, but these errors were encountered:
Bug description
VSTHRD200 should (probably) not report a warning for
DisposeAsyncCore
method name as it is recommended here: https://docs.microsoft.com/en-us/dotnet/standard/garbage-collection/implementing-disposeasync#disposeasync-and-disposeasynccoreRepro steps
Code to reproduce the behavior.
Expected behavior
No warning.
Actual behavior
A warning is emitted.
The text was updated successfully, but these errors were encountered: