restructure job

This commit is contained in:
Jonathan Jenne
2024-01-04 10:15:55 +01:00
parent 119f54e8aa
commit 26fe798a68
8 changed files with 102 additions and 59 deletions

View File

@@ -2,7 +2,7 @@
Imports DigitalData.Modules.Base
Public Class ActionService
Inherits BaseClass
Inherits BaseService
Private ReadOnly EmailService As EmailService
Private ReadOnly HistoryService As HistoryService
@@ -11,7 +11,7 @@ Public Class ActionService
Public Sub New(pState As State)
MyBase.New(pState.LogConfig)
MyBase.New(pState)
EmailService = New EmailService(pState)
HistoryService = New HistoryService(pState)

View File

@@ -0,0 +1,13 @@
Imports DigitalData.Modules.Base
Public Class BaseService
Inherits BaseClass
Friend Property State As State
Public Sub New(pState As State)
MyBase.New(pState.LogConfig)
State = pState
End Sub
End Class

View File

@@ -3,7 +3,7 @@ Imports DigitalData.Modules.Base
Imports DigitalData.Modules.Logging
Public Class EmailService
Inherits BaseClass
Inherits BaseService
Private ReadOnly State As State
@@ -14,9 +14,8 @@ Public Class EmailService
Private ReadOnly EmailTemplate As EmailTemplate
Public Sub New(pState As State)
MyBase.New(pState.LogConfig)
MyBase.New(pState)
State = pState
EnvelopeModel = New EnvelopeModel(pState)
ReceiverModel = New ReceiverModel(pState)
EmailModel = New EmailModel(pState)

View File

@@ -4,18 +4,15 @@ Imports DigitalData.Modules.Logging
Imports EnvelopeGenerator.Common.Constants
Public Class HistoryService
Inherits BaseClass
Private ReadOnly State As State
Inherits BaseService
Private ReadOnly EnvelopeModel As EnvelopeModel
Private ReadOnly ReceiverModel As ReceiverModel
Private ReadOnly HistoryModel As HistoryModel
Public Sub New(pState As State)
MyBase.New(pState.LogConfig)
MyBase.New(pState)
State = pState
EnvelopeModel = New EnvelopeModel(pState)
ReceiverModel = New ReceiverModel(pState)
HistoryModel = New HistoryModel(pState)