EndTransfer Event

Fired when a file completes downloading/uploading.

Syntax

public event OnEndTransferHandler OnEndTransfer;

public delegate void OnEndTransferHandler(object sender, SshplexEndTransferEventArgs e);

public class SshplexEndTransferEventArgs : EventArgs {
  public string OperationId { get; }
  public int Direction { get; }
  public string LocalFile { get; }
  public string RemoteFile { get; }
  public string RemotePath { get; }
}
Public Event OnEndTransfer As OnEndTransferHandler

Public Delegate Sub OnEndTransferHandler(sender As Object, e As SshplexEndTransferEventArgs)

Public Class SshplexEndTransferEventArgs Inherits EventArgs
  Public ReadOnly Property OperationId As String
  Public ReadOnly Property Direction As Integer
  Public ReadOnly Property LocalFile As String
  Public ReadOnly Property RemoteFile As String
  Public ReadOnly Property RemotePath As String
End Class

Remarks

This event is fired once per file when it finishes downloading/uploading.

OperationId is the string associated with operation fired this event.

Direction is 0 for Uploads and 1 for Downloads.

LocalFile, RemoteFile, and RemotePath are populated with values of LocalFile, RemoteFile, and RemotePath, respectively, that are associated with the method that triggered this event.

Copyright (c) 2023 /n software inc. - All rights reserved.
IPWorks SSH 2020 .NET Edition - Version 20.0 [Build 8501]