Skip to content
This repository has been archived by the owner on Feb 14, 2021. It is now read-only.

Commit

Permalink
Add support of Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
quynh-ng committed Jun 2, 2018
1 parent 0c2f46c commit d306de6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Others/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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})")
};
Expand Down
2 changes: 1 addition & 1 deletion Windows/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d306de6

Please sign in to comment.