private bool disposedValue; // To detect redundant calls protected virtual void Dispose(bool disposing) { if (!disposedValue) { if (disposing) { AuthState.Dispose(); } disposedValue = true; } }
protected override void OnDestroy() { base.OnDestroy(); authState.Dispose(); }