add logprovider
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user