diff --git a/Config/My Project/Settings.Designer.vb b/Config/My Project/Settings.Designer.vb index c0dfd971..df8aa7a2 100644 --- a/Config/My Project/Settings.Designer.vb +++ b/Config/My Project/Settings.Designer.vb @@ -15,7 +15,7 @@ Option Explicit On Namespace My _ Partial Friend NotInheritable Class MySettings Inherits Global.System.Configuration.ApplicationSettingsBase diff --git a/Database/My Project/Settings.Designer.vb b/Database/My Project/Settings.Designer.vb index 183e592d..eeac171f 100644 --- a/Database/My Project/Settings.Designer.vb +++ b/Database/My Project/Settings.Designer.vb @@ -15,7 +15,7 @@ Option Explicit On Namespace My _ Partial Friend NotInheritable Class MySettings Inherits Global.System.Configuration.ApplicationSettingsBase diff --git a/Encryption/My Project/Settings.Designer.vb b/Encryption/My Project/Settings.Designer.vb index 7d3786b6..5df70bfb 100644 --- a/Encryption/My Project/Settings.Designer.vb +++ b/Encryption/My Project/Settings.Designer.vb @@ -15,7 +15,7 @@ Option Explicit On Namespace My _ Partial Friend NotInheritable Class MySettings Inherits Global.System.Configuration.ApplicationSettingsBase diff --git a/Filesystem/My Project/Settings.Designer.vb b/Filesystem/My Project/Settings.Designer.vb index cec9af04..bbbefd49 100644 --- a/Filesystem/My Project/Settings.Designer.vb +++ b/Filesystem/My Project/Settings.Designer.vb @@ -15,7 +15,7 @@ Option Explicit On Namespace My _ Partial Friend NotInheritable Class MySettings Inherits Global.System.Configuration.ApplicationSettingsBase diff --git a/Logging/My Project/Settings.Designer.vb b/Logging/My Project/Settings.Designer.vb index 5688b861..756fb6c5 100644 --- a/Logging/My Project/Settings.Designer.vb +++ b/Logging/My Project/Settings.Designer.vb @@ -15,7 +15,7 @@ Option Explicit On Namespace My _ Partial Friend NotInheritable Class MySettings Inherits Global.System.Configuration.ApplicationSettingsBase diff --git a/Messaging/My Project/Settings.Designer.vb b/Messaging/My Project/Settings.Designer.vb index 5e43dae7..1ab720f8 100644 --- a/Messaging/My Project/Settings.Designer.vb +++ b/Messaging/My Project/Settings.Designer.vb @@ -15,7 +15,7 @@ Option Explicit On Namespace My _ Partial Friend NotInheritable Class MySettings Inherits Global.System.Configuration.ApplicationSettingsBase diff --git a/Windream/Windream.vb b/Windream/Windream.vb index 87676b00..9cd377f8 100644 --- a/Windream/Windream.vb +++ b/Windream/Windream.vb @@ -182,7 +182,18 @@ Public Class Windream _sessionPassword = SessionPassword _sessionDomain = SessionDomain End Sub - + Public Sub Disconnect() + Try + If Session IsNot Nothing AndAlso Session.aLoggedin Then + Session.Logout() + _logger.Info("Session successfully logged out.") + Else + _logger.Info("No active session to log out.") + End If + Catch ex As Exception + _logger.Error(ex, "Error while logging out session") + End Try + End Sub Public Function GetCleanedPath(Path As String) As String Return Regex.Replace(Path, Constants.REGEX_CLEAN_FILENAME, String.Empty) End Function