From 8412a1e364cca5e926ec977022e2943bdfc04c98 Mon Sep 17 00:00:00 2001 From: sta Date: Sat, 3 May 2025 17:56:00 +0900 Subject: [PATCH] [Modify] Polish it --- Example3/Program.cs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Example3/Program.cs b/Example3/Program.cs index fc3776ff..a0649ae3 100644 --- a/Example3/Program.cs +++ b/Example3/Program.cs @@ -185,10 +185,9 @@ namespace Example3 httpsv.Start (); if (httpsv.IsListening) { - Console.WriteLine ( - "Listening on port {0}, and providing WebSocket services:", - httpsv.Port - ); + var fmt = "Listening on port {0}, and providing WebSocket services:"; + + Console.WriteLine (fmt, httpsv.Port); foreach (var path in httpsv.WebSocketServices.Paths) Console.WriteLine ("- {0}", path);