GDPictureLicense via config

This commit is contained in:
Developer01 2025-12-08 14:47:11 +01:00
parent 904c4a7f2e
commit 44267288ef
2 changed files with 10 additions and 1 deletions

View File

@ -36,4 +36,9 @@ Public Class Config
''' gelesen werden soll. ''' gelesen werden soll.
''' </summary> ''' </summary>
Public Property GDPictureVersion As String = "" Public Property GDPictureVersion As String = ""
''' <summary>
''' Enthält die Lizenznummer des GDPicture Modules.
''' Nur wenn nicht über die Datenbank zu holen!!.
''' </summary>
Public Property GDPictureLicenseString As String = ""
End Class End Class

View File

@ -77,8 +77,12 @@ Public Class clsWorkEmail
_windream_index = New clsWindream_Index(LogConf) _windream_index = New clsWindream_Index(LogConf)
_windreamConnectionString = WmConStr _windreamConnectionString = WmConStr
End If End If
If pConfigData.GDPictureLicenseString = String.Empty Then
GDPictureLicense = ConfigDbFunct.GetProductLicense("GDPICTURE", pConfigData.GDPictureVersion, _LogConfig, ConStr)
Else
_Logger.Debug("clsWorkEmail - GDPicture License from local config!")
End If
GDPictureLicense = ConfigDbFunct.GetProductLicense("GDPICTURE", pConfigData.GDPictureVersion, _LogConfig, ConStr)
If String.IsNullOrEmpty(GDPictureLicense) = False Then If String.IsNullOrEmpty(GDPictureLicense) = False Then
_LicenseManager.RegisterKEY(GDPictureLicense) _LicenseManager.RegisterKEY(GDPictureLicense)
Else Else