Verbesserungen bei Logging, WCF und Workflow-Prozeduren
Die Änderungen umfassen: - Erweiterung von `HandleCommunicationError` in Client.vb, um SQL-Befehle in Logs aufzunehmen. - Neue Funktionen und asynchrone Methoden in MailFetcher.vb zur Unterstützung delegierter Mailboxen. - Aktualisierung von AssemblyInfo.vb (Versionen und Metadaten). - Hinzufügen von WCF-Service-Throttling-Konfiguration in Config.vb und WindowsService.vb. - Einführung der gespeicherten Prozeduren `PRCUST_DYNAMIC_RIGHT_WORKFLOW_PROFILE_MB` und `PRCUST_GET_WF_DOCS_FOR_USER` zur Filterung von Workflow-Dokumenten basierend auf Benutzerrechten. - Hinzufügen der Datei `Session.csv` zum Projekt. Diese Änderungen verbessern die Fehlerbehandlung, Skalierbarkeit, Wartbarkeit und Nachvollziehbarkeit der Anwendung.
This commit is contained in:
@@ -126,7 +126,19 @@ Public Class WindowsService
|
||||
Logger.Debug("Contract: {0}", oEndpoint.Contract.Name)
|
||||
Next
|
||||
|
||||
Logger.Debug("Starting WFC ServiceHost..")
|
||||
Logger.Debug("Configuring WCF ServiceThrottling ...")
|
||||
Dim oThrottling = ServiceHost.Description.Behaviors.Find(Of ServiceThrottlingBehavior)()
|
||||
If oThrottling Is Nothing Then
|
||||
oThrottling = New ServiceThrottlingBehavior()
|
||||
ServiceHost.Description.Behaviors.Add(oThrottling)
|
||||
End If
|
||||
oThrottling.MaxConcurrentCalls = Config.WCF_MaxConcurrentCalls
|
||||
oThrottling.MaxConcurrentSessions = Config.WCF_MaxConcurrentSessions
|
||||
oThrottling.MaxConcurrentInstances = Config.WCF_MaxConcurrentInstances
|
||||
Logger.Info("✔ ServiceThrottling configured: MaxConcurrentCalls=[{0}] MaxConcurrentSessions=[{1}] MaxConcurrentInstances=[{2}]",
|
||||
oThrottling.MaxConcurrentCalls, oThrottling.MaxConcurrentSessions, oThrottling.MaxConcurrentInstances)
|
||||
|
||||
Logger.Debug("Starting WCF ServiceHost..")
|
||||
Try
|
||||
ServiceHost.Open()
|
||||
Logger.Debug("WCF ServiceHost started!")
|
||||
|
||||
Reference in New Issue
Block a user