Compare commits
2 Commits
f7377a9ef3
...
20097e2d24
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20097e2d24 | ||
|
|
a40af2f977 |
4
Jobs/DEX_API/APISQLArgs.vb
Normal file
4
Jobs/DEX_API/APISQLArgs.vb
Normal file
@@ -0,0 +1,4 @@
|
||||
Public Class APISQLArgs
|
||||
Inherits JobArgs
|
||||
Public ProfileID As String
|
||||
End Class
|
||||
6
Jobs/DEX_API/APISQLConfig.vb
Normal file
6
Jobs/DEX_API/APISQLConfig.vb
Normal file
@@ -0,0 +1,6 @@
|
||||
Public Class APISQLConfig
|
||||
Public Property BaseUrl As String = ""
|
||||
Public Property Property1 As String = ""
|
||||
Public Property Property2 As String = ""
|
||||
Public Property Property3 As String = ""
|
||||
End Class
|
||||
@@ -5,15 +5,15 @@ Imports DigitalData.Modules.Database
|
||||
Imports DigitalData.Modules.Interfaces
|
||||
Imports DigitalData.Modules.Logging
|
||||
|
||||
Public Class DEX_API
|
||||
Public Class DEX_APIJob
|
||||
Inherits JobBase
|
||||
Implements IJob(Of ADSyncArgs)
|
||||
Implements IJob(Of APISQLArgs)
|
||||
|
||||
Public Sub New(LogConfig As LogConfig, MSSQL As MSSQLServer)
|
||||
MyBase.New(LogConfig, MSSQL)
|
||||
End Sub
|
||||
|
||||
Public Sub StartDex_API(Arguments As ADSyncArgs) Implements IJob(Of ADSyncArgs).Start
|
||||
Public Sub StartDex_API(Arguments As APISQLArgs) Implements IJob(Of APISQLArgs).Start
|
||||
Dim oJobName As String = [GetType]().Name
|
||||
|
||||
Try
|
||||
@@ -27,7 +27,7 @@ Public Class DEX_API
|
||||
End Try
|
||||
End Sub
|
||||
|
||||
Public Function ShouldStart(Arguments As ADSyncArgs) As Boolean Implements IJob(Of ADSyncArgs).ShouldStart
|
||||
Public Function ShouldStart(Arguments As APISQLArgs) As Boolean Implements IJob(Of APISQLArgs).ShouldStart
|
||||
Return Arguments.Enabled
|
||||
End Function
|
||||
|
||||
@@ -17,5 +17,6 @@ Public Class JobConfig
|
||||
ADSync
|
||||
GraphQL
|
||||
Test
|
||||
API_SQL
|
||||
End Enum
|
||||
End Class
|
||||
@@ -69,7 +69,9 @@
|
||||
<ItemGroup>
|
||||
<Compile Include="ADSync\ADSyncArgs.vb" />
|
||||
<Compile Include="ADSync\ADSyncJob.vb" />
|
||||
<Compile Include="DEX_API\DEX_API.vb" />
|
||||
<Compile Include="DEX_API\APISQLArgs.vb" />
|
||||
<Compile Include="DEX_API\APISQLConfig.vb" />
|
||||
<Compile Include="DEX_API\DEX_APIJob.vb" />
|
||||
<Compile Include="GraphQL\GraphQLArgs.vb" />
|
||||
<Compile Include="GraphQL\GraphQLConfig.vb" />
|
||||
<Compile Include="GraphQL\GraphQLJob.vb" />
|
||||
|
||||
Reference in New Issue
Block a user