add logprovider

This commit is contained in:
Jonathan Jenne 2023-12-15 08:30:18 +01:00
parent eea1bd2177
commit 0ad1d214ba

View File

@ -18,6 +18,8 @@ Public Class Scheduler
MyBase.New(pLogConfig)
ConnectionString = pConnectionString
LicenseKey = pLicenseKey
Logging.LogProvider.SetCurrentLogProvider(New LogProvider(Logger))
End Sub
Public Async Function Start(pInterval As Integer) As Task
@ -49,6 +51,7 @@ Public Class Scheduler
WithSimpleSchedule(Sub(s) s.
RepeatForever().
WithIntervalInMinutes(pInterval)).
StartNow().
Build()
Logger.Debug("Initialized Trigger")