コード例 #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         upload_manager.Completed -= OnCompleted;
         upload_manager.Updated   -= OnUpdated;
         upload_manager.Dispose();
     }
 }
コード例 #2
0
        /// <summary>
        /// Releases all resources taken by this engine
        /// </summary>
        public void Dispose()
        {
            if (_updateTimer != null)
            {
                _updateTimer.Dispose();
                _updateTimer = null;
            }

            HttpUploadItem.Manager.Dispose();

            Hubs.ForEach(h => h.Dispose());
            TransferManager.Dispose();
            InitTcp(0);
            InitUdp(0);
        }