Jobs: Add MSSQL as Parameter
This commit is contained in:
parent
c459c13229
commit
35f7ee677d
@ -9,12 +9,13 @@ Public Class GraphQLJob
|
||||
Public Function Execute(context As IJobExecutionContext) As Task Implements Quartz.IJob.Execute
|
||||
Dim oJobData = context.MergedJobDataMap
|
||||
Dim oLogConfig As LogConfig = oJobData.Item("LogConfig")
|
||||
Dim oMSSQL As MSSQLServer = oJobData.Item("MSSQL")
|
||||
Dim oArgs As Dictionary(Of String, String) = oJobData.Item("Args")
|
||||
Dim oJobArgs = New GraphQLArgs With {
|
||||
.QueryConfigPath = oArgs.Item("QueryConfigFolder")
|
||||
}
|
||||
|
||||
Dim oGraphQLJob As New Modules.Jobs.GraphQLJob(oLogConfig)
|
||||
Dim oGraphQLJob As New Modules.Jobs.GraphQLJob(oLogConfig, oMSSQL)
|
||||
oGraphQLJob.Start(oJobArgs)
|
||||
|
||||
Return Task.FromResult(True)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user