Class EbicsFileTransfer
public class EbicsFileTransfer
- Inheritance
-
EbicsFileTransfer
- Inherited Members
Constructors
EbicsFileTransfer(IEbicsTransport)
public EbicsFileTransfer(IEbicsTransport aTransport = null)
Parameters
aTransportIEbicsTransport
Methods
DownloadFile(EbicsContact, IEbicsSecurityMedium, string, string, DateTime)
Synchronously downloads a data file.
public EbicsFileTransferResult DownloadFile(EbicsContact aContact, IEbicsSecurityMedium aSecurityMedium, string sFilePath, string sOrderType, DateTime tFrom)
Parameters
aContactEbicsContactThe EbicsContact that shall be used to download. Must not be
null.aSecurityMediumIEbicsSecurityMediumAn authenticated security medium for the given contact. Must not be
null.sFilePathstringThe destination file path and file name where new data files shall be stored. Must not be
null.sOrderTypestringtFromDateTimeStart date. If this is
DateTime.MinValue, then no date range will be specified for the download request.
Returns
Remarks
This method performs a single EBICS transaction downloading all data from
tFrom to today. The received data is stored
in the given sFilePath.
Exceptions
DownloadStream(EbicsContact, IEbicsSecurityMedium, Stream, string, DateTime)
public EbicsFileTransferResult DownloadStream(EbicsContact aContact, IEbicsSecurityMedium aSecurityMedium, Stream aStream, string sOrderType, DateTime tFrom)
Parameters
aContactEbicsContactaSecurityMediumIEbicsSecurityMediumaStreamStreamWritable destination Stream to write the received data to. This Stream is not disposed by this method.
sOrderTypestringtFromDateTime
Returns
UploadFile(EbicsContact, IEbicsSecurityMedium, string, string, EbicsAuthorisationLevel)
Synchronously uploads the referenced data file from the given data folder.
public EbicsFileTransferResult UploadFile(EbicsContact aContact, IEbicsSecurityMedium aSecurityMedium, string sFilePath, string sOrderType, EbicsAuthorisationLevel nAuthorisationLevel = EbicsAuthorisationLevel.Null)
Parameters
aContactEbicsContactaSecurityMediumIEbicsSecurityMediumsFilePathstringsOrderTypestringnAuthorisationLevelEbicsAuthorisationLevelThe authorisation level for the signature of the order. In order to create a default signature, use the value Null.
Returns
Remarks
This method exclusively locks the file to be uploaded for the duration of the upload. This shall prevent that the same file is uploaded simultaneously. If uploading fails and there was no receipt phase, then the file is released without modification. If uploading was successful and there was a receipt acknowledgement, then the file is ...
UploadStream(EbicsContact, IEbicsSecurityMedium, Stream, string, EbicsAuthorisationLevel)
Synchronously uploads the given data stream.
public EbicsFileTransferResult UploadStream(EbicsContact aContact, IEbicsSecurityMedium aSecurityMedium, Stream aDataSourceStream, string sOrderType, EbicsAuthorisationLevel nAuthorisationLevel = EbicsAuthorisationLevel.Null)
Parameters
aContactEbicsContactaSecurityMediumIEbicsSecurityMediumaDataSourceStreamStreamsOrderTypestringnAuthorisationLevelEbicsAuthorisationLevelThe authorisation level for the signature of the order. In order to create a default signature, use the value Null.