Closed wazzamatazz closed 4 months ago
This PR modifies AdapterCore as follows:
AdapterCore
_disposedToken
_disposedTokenSource.Token
StopToken
_stopTokenSource
_stopTokenSource.Token
The first two items above are to avoid ObjectDisposedExceptions when e.g. StopToken is accessed after its source has been disposed.
This PR modifies
AdapterCore
as follows:_disposedToken
field to hold_disposedTokenSource.Token
StopToken
explicitly every time_stopTokenSource
is created instead of getting_stopTokenSource.Token
every time_stopTokenSource
always uses_disposedToken
as a linked token.The first two items above are to avoid ObjectDisposedExceptions when e.g.
StopToken
is accessed after its source has been disposed.