Exemplo n.º 1
0
        private void OnTransferAborted(object sender, TransferAbortedEventArgs e)
        {
            FileMetaData data;

            if (this.metaData.TryGetValue(e.Session.Sid, out data))
            {
                this.FileTransferAborted.Raise <FileTransferAbortedEventArgs>(this, new FileTransferAbortedEventArgs(new FileTransfer(e.Session, data.Name, data.Description)));
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Callback mthod invoked when an on-going transfer has been aborted.
        /// </summary>
        /// <param name="sender">The sender of the event.</param>
        /// <param name="e">The event arguments containing the SISession instance
        /// whose data-transfer has been aborted.</param>
        void OnTransferAborted(object sender, TransferAbortedEventArgs e)
        {
            // Get the Metadata of the file.
            FileMetaData meta;

            if (metaData.TryGetValue(e.Session.Sid, out meta))
            {
                // Raise the 'FileTransferAborted' event.
                FileTransferAborted.Raise(this, new FileTransferAbortedEventArgs(
                                              new FileTransfer(e.Session, meta.Name, meta.Description)));
            }
        }
Exemplo n.º 3
0
		/// <summary>
		/// Callback mthod invoked when an on-going transfer has been aborted.
		/// </summary>
		/// <param name="sender">The sender of the event.</param>
		/// <param name="e">The event arguments containing the SISession instance
		/// whose data-transfer has been aborted.</param>
		void OnTransferAborted(object sender, TransferAbortedEventArgs e) {
			// Get the Metadata of the file.
			FileMetaData meta;
			if (metaData.TryGetValue(e.Session.Sid, out meta)) {
				// Raise the 'FileTransferAborted' event.
				FileTransferAborted.Raise(this, new FileTransferAbortedEventArgs(
					new FileTransfer(e.Session, meta.Name, meta.Description)));
			}
		}