protected override void DoRelease() { _api.Dispose(); if (_query != null) { _query.Dispose(); } }
private RemindersQuery OpenQuery() { if (_query == null) { if (_feature.Reminders) { RemindersQuery query = new RemindersQuery(_feature, _account.Account.Store); if (query.Open()) { _query = query; } else { query.Dispose(); } } } return(_query); }