EDI Integrator V9 - Online Help
Available for:
EDI Integrator V9
Questions / Feedback?

EndTransfer Event

Fired when a file finishes transferring.

Syntax

[VB.NET]
Public Event OnEndTransfer As OnEndTransferHandler
[C#]
public event OnEndTransferHandler OnEndTransfer;

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

class OftpserverEndTransferEventArgs : EventArgs {
  string ConnectionId {get;}
  int Direction {get;}
  string VirtualFileName {get;}
  string VirtualFileDate {get;}
  string Destination {get;}
  string Originator {get;}
  long FileSize {get;}
  string FileHash {get;}
  bool SendEndResponse {get; set;}
}

Remarks

The EndTransfer event is fired when a file is sent or received by the component.

The FileSize parameter gives the size of the file that was sent or received.

The Direction parameter shows whether the client (0) or the server (1) is sending the data.

VirtualFileName holds the filename.

VirtualFileDate holds the date associated with the file in the format specified by VirtualFileDateFormat. The default value is "MM/dd/yyyy HH:mm:ss".

Originator identifies the sender (SFID) code in the send file request.

Destination identifies the receiver (SFID) code in the send file request.

SendEndResponse indicates whether the EERP/NERP for this request should be sent synchronously or asynchronously. When this parameter is True (default) the component will automatically respond with an EERP/NERP synchronously. To respond asynchronously set this parameter to False. You may then use the SendEndResponse method to send the response at a later time. See SendEndResponse for more details. Note: VirtualFileDateFormat must be set to a format that includes the necessary level of accuracy.

FileHash holds the hash of the file being transmitted. This is only applicable when the OFTP version is 2.0 and the sender requested a signed receipt. When receiving files this value should be saved if you wish to respond asynchronously using SendEndResponse. See SendEndResponse for more details.

 
 
Copyright (c) 2018 /n software inc. - All rights reserved.
Build 9.0.6635.0