示例#1
0
 public void Dispose()
 {
     if (_sender != null)
     {
         _sender.Dispose();
     }
 }
示例#2
0
        public void Dispose()
        {
            // If context not shared - dispose it
            if (_context != _sharedContext && _context != null)
            {
                _context.Dispose();
            }

            if (_sender != null)
            {
                _sender.Dispose();
            }

            if (_pushSender != null)
            {
                _pushSender.Dispose();
            }
        }