add logprovider
This commit is contained in:
parent
eea1bd2177
commit
0ad1d214ba
@ -18,6 +18,8 @@ Public Class Scheduler
|
|||||||
MyBase.New(pLogConfig)
|
MyBase.New(pLogConfig)
|
||||||
ConnectionString = pConnectionString
|
ConnectionString = pConnectionString
|
||||||
LicenseKey = pLicenseKey
|
LicenseKey = pLicenseKey
|
||||||
|
|
||||||
|
Logging.LogProvider.SetCurrentLogProvider(New LogProvider(Logger))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public Async Function Start(pInterval As Integer) As Task
|
Public Async Function Start(pInterval As Integer) As Task
|
||||||
@ -49,6 +51,7 @@ Public Class Scheduler
|
|||||||
WithSimpleSchedule(Sub(s) s.
|
WithSimpleSchedule(Sub(s) s.
|
||||||
RepeatForever().
|
RepeatForever().
|
||||||
WithIntervalInMinutes(pInterval)).
|
WithIntervalInMinutes(pInterval)).
|
||||||
|
StartNow().
|
||||||
Build()
|
Build()
|
||||||
|
|
||||||
Logger.Debug("Initialized Trigger")
|
Logger.Debug("Initialized Trigger")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user