Add option to check file age

This commit is contained in:
Jonathan Jenne
2023-12-20 15:01:11 +01:00
parent f8a2f73bb9
commit 476a7c782d
2 changed files with 9 additions and 0 deletions

View File

@@ -37,6 +37,13 @@
''' </summary>
Public Property MaxAttachmentSizeInMegaBytes As Integer = -1
''' <summary>
''' Minimum file age. If one file is newer than this, the whole group will be skipped
''' to ensure that all files of a group have been created.
''' </summary>
''' <returns></returns>
Public Property MinFileAgeInMinutes As Integer = 5
Public Property AllowFacturX As Boolean = False
Public Property AllowXRechnung As Boolean = False
Public Property AllowZugferd10 As Boolean = True

View File

@@ -45,6 +45,7 @@ Public Class ThreadRunner
.ExceptionEmailAddress = _config.Config.ExceptionEmailAddress,
.IgnoreRejectionStatus = _config.Config.Custom.IgnoreRejectionStatus,
.MaxAttachmentSizeInMegaBytes = _config.Config.Custom.MaxAttachmentSizeInMegaBytes,
.MinFileAgeInMinutes = _config.Config.Custom.MinFileAgeInMinutes,
.NamePortal = _config.Config.PORTAL_NAME,
.EmailOutProfileId = _config.Config.MSSQLEmailOutAccountID,
.AllowFacturX = _config.Config.Custom.AllowFacturX,
@@ -60,6 +61,7 @@ Public Class ThreadRunner
_logger.Debug("ExceptionEmailAddress: [{0}]", oArgs.ExceptionEmailAddress)
_logger.Debug("IgnoreRejectionStatus: [{0}]", oArgs.IgnoreRejectionStatus)
_logger.Debug("MaxAttachmentSizeInMegaBytes: [{0}]", oArgs.MaxAttachmentSizeInMegaBytes)
_logger.Debug("MinFileAgeInMinutes: [{0}]", oArgs.MinFileAgeInMinutes)
_jobArguments = oArgs