Add option to check file age
This commit is contained in:
@@ -37,6 +37,13 @@
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Property MaxAttachmentSizeInMegaBytes As Integer = -1
|
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 AllowFacturX As Boolean = False
|
||||||
Public Property AllowXRechnung As Boolean = False
|
Public Property AllowXRechnung As Boolean = False
|
||||||
Public Property AllowZugferd10 As Boolean = True
|
Public Property AllowZugferd10 As Boolean = True
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ Public Class ThreadRunner
|
|||||||
.ExceptionEmailAddress = _config.Config.ExceptionEmailAddress,
|
.ExceptionEmailAddress = _config.Config.ExceptionEmailAddress,
|
||||||
.IgnoreRejectionStatus = _config.Config.Custom.IgnoreRejectionStatus,
|
.IgnoreRejectionStatus = _config.Config.Custom.IgnoreRejectionStatus,
|
||||||
.MaxAttachmentSizeInMegaBytes = _config.Config.Custom.MaxAttachmentSizeInMegaBytes,
|
.MaxAttachmentSizeInMegaBytes = _config.Config.Custom.MaxAttachmentSizeInMegaBytes,
|
||||||
|
.MinFileAgeInMinutes = _config.Config.Custom.MinFileAgeInMinutes,
|
||||||
.NamePortal = _config.Config.PORTAL_NAME,
|
.NamePortal = _config.Config.PORTAL_NAME,
|
||||||
.EmailOutProfileId = _config.Config.MSSQLEmailOutAccountID,
|
.EmailOutProfileId = _config.Config.MSSQLEmailOutAccountID,
|
||||||
.AllowFacturX = _config.Config.Custom.AllowFacturX,
|
.AllowFacturX = _config.Config.Custom.AllowFacturX,
|
||||||
@@ -60,6 +61,7 @@ Public Class ThreadRunner
|
|||||||
_logger.Debug("ExceptionEmailAddress: [{0}]", oArgs.ExceptionEmailAddress)
|
_logger.Debug("ExceptionEmailAddress: [{0}]", oArgs.ExceptionEmailAddress)
|
||||||
_logger.Debug("IgnoreRejectionStatus: [{0}]", oArgs.IgnoreRejectionStatus)
|
_logger.Debug("IgnoreRejectionStatus: [{0}]", oArgs.IgnoreRejectionStatus)
|
||||||
_logger.Debug("MaxAttachmentSizeInMegaBytes: [{0}]", oArgs.MaxAttachmentSizeInMegaBytes)
|
_logger.Debug("MaxAttachmentSizeInMegaBytes: [{0}]", oArgs.MaxAttachmentSizeInMegaBytes)
|
||||||
|
_logger.Debug("MinFileAgeInMinutes: [{0}]", oArgs.MinFileAgeInMinutes)
|
||||||
|
|
||||||
_jobArguments = oArgs
|
_jobArguments = oArgs
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user