예제 #1
0
 protected override void DoRelease()
 {
     _api.Dispose();
     if (_query != null)
     {
         _query.Dispose();
     }
 }
예제 #2
0
 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);
 }