Beispiel #1
0
        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();
            }
        }
Beispiel #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    RosterStream?.Dispose();
                    ZetaRosterStream?.Dispose();
                    CShopStream?.Dispose();
                }

                RosterStream     = null;
                ZetaRosterStream = null;
                CShopStream      = null;

                disposedValue = true;
            }
        }