protected virtual async ValueTask DisposeAsyncCore() { if (RosterStream is not null) { await RosterStream.DisposeAsync(); } if (ZetaRosterStream is not null) { await ZetaRosterStream.DisposeAsync(); } if (CShopStream is not null) { await CShopStream.DisposeAsync(); } }
protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { RosterStream?.Dispose(); ZetaRosterStream?.Dispose(); CShopStream?.Dispose(); } RosterStream = null; ZetaRosterStream = null; CShopStream = null; disposedValue = true; } }