diff --git a/Others/Program.cs b/Others/Program.cs index 971ddd0..acb3119 100644 --- a/Others/Program.cs +++ b/Others/Program.cs @@ -49,14 +49,14 @@ void showCommands() serviceComponent = new ServiceComponent { - OnError = (ex) => logger.LogError(ex, ex.Message), + OnError = ex => logger.LogError(ex, ex.Message), OnStarted = () => { logger.LogInformation("VIEApps NGX WAMP Router is ready for serving"); showInfo(); showCommands(); }, - OnStopped = () => logger.LogInformation("VIEApps WAMP Router is stopped"), + OnStopped = () => logger.LogInformation("VIEApps NGX WAMP Router is stopped"), OnSessionCreated = info => logger.LogInformation($"A session is opened - Session ID: {info.SessionID} - Connection Info: {info.ConnectionID} - {info.EndPoint})"), OnSessionClosed = info => logger.LogInformation($"A session is closed - Type: {info?.CloseType} ({info?.CloseReason ?? "N/A"}) - Session ID: {info?.SessionID} - Connection Info: {info?.ConnectionID} - {info?.EndPoint})") }; diff --git a/Windows/Program.cs b/Windows/Program.cs index 0f1ca15..a3352b4 100644 --- a/Windows/Program.cs +++ b/Windows/Program.cs @@ -54,7 +54,7 @@ internal static void Start(string[] args) $"- Platform: {RuntimeInformation.FrameworkDescription} @ {(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "Windows" : RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? "Linux" : "Other OS")} {RuntimeInformation.OSArchitecture} ({RuntimeInformation.OSDescription.Trim()})" + "\r\n" + $"- Process ID: {Process.GetCurrentProcess().Id}" ), - OnStopped = () => Program.WriteLog("VIEApps WAMP Router is stopped"), + OnStopped = () => Program.WriteLog("VIEApps NGX WAMP Router is stopped"), OnSessionCreated = info => { if (Environment.UserInteractive)