private ITerminalService terminalService;
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
foreach (var token in profferTokens)
token?.Dispose();
this.serviceBrokerClient?.Dispose();
(this.terminalService as IDisposable)?.Dispose();
}
The field is disposed, but the analyzer still emits this:
error ISB001: The proxy stored in "LinuxConnectionManagerPackage.terminalService" must be disposed by an IDisposable.Dispose or Dispose(bool) method on the "LinuxConnectionManagerPackage" type.