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
The Channel is created, added to the ConcurrentDictionary and will be returned to the caller. So the caller has to call Dispose on it's own. The Dispose implementation in the "Channel" removes it from ConcurrentDictionary. Also, disconnecting/closing/disposing the Socket, where GetChannel(int timeout) is implemented, will raise an event which cause all "Channel"s to Dispose them self. So, in any case , the CA2000 is a false positive report in this situation.
Analyzer package
Microsoft.CodeAnalysis.FxCopAnalyzers
Package Version
v2.9.8 (Latest)
Diagnostic ID
Example: CA2000
Repro steps
Expected behavior
The Channel is created, added to the ConcurrentDictionary and will be returned to the caller. So the caller has to call Dispose on it's own. The Dispose implementation in the "Channel" removes it from ConcurrentDictionary. Also, disconnecting/closing/disposing the Socket, where GetChannel(int timeout) is implemented, will raise an event which cause all "Channel"s to Dispose them self. So, in any case , the CA2000 is a false positive report in this situation.
Actual behavior
A CA2000 error is emitted.
The text was updated successfully, but these errors were encountered: