From c7a895f5305272da8a0bbb7db33116bc8ce768da Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 25 Sep 2013 20:52:07 +0900 Subject: [PATCH] Removed ServicePaths property from WebSocketServer class --- Example2/Program.cs | 14 +++++++------- websocket-sharp/Server/WebSocketServer.cs | 17 ----------------- 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/Example2/Program.cs b/Example2/Program.cs index 07bf6427..16b8930b 100644 --- a/Example2/Program.cs +++ b/Example2/Program.cs @@ -4,10 +4,10 @@ using System.Security.Cryptography.X509Certificates; using WebSocketSharp; using WebSocketSharp.Server; -namespace Example2 { - - public class Program { - +namespace Example2 +{ + public class Program + { public static void Main (string [] args) { /* Single service server @@ -53,12 +53,12 @@ namespace Example2 { wssv.Start (); Console.WriteLine ( - "WebSocket Server listening on port: {0} service path:", wssv.Port); - foreach (var path in wssv.ServicePaths) + "A WebSocket Server listening on port: {0} service path:", wssv.Port); + foreach (var path in wssv.WebSocketServices.ServicePaths) Console.WriteLine (" {0}", path); Console.WriteLine (); - Console.WriteLine ("Press enter key to stop server..."); + Console.WriteLine ("Press Enter key to stop server..."); Console.ReadLine (); wssv.Stop (); diff --git a/websocket-sharp/Server/WebSocketServer.cs b/websocket-sharp/Server/WebSocketServer.cs index bd86ebe4..e024e12f 100644 --- a/websocket-sharp/Server/WebSocketServer.cs +++ b/websocket-sharp/Server/WebSocketServer.cs @@ -168,23 +168,6 @@ namespace WebSocketSharp.Server } } - /// - /// Gets the collection of each path to the WebSocket services that the server provides. - /// - /// - /// An IEnumerable<string> that contains the collection of each path to the WebSocket services. - /// - public IEnumerable ServicePaths { - get { - var url = BaseUri.IsAbsoluteUri - ? BaseUri.ToString ().TrimEnd ('/') - : String.Empty; - - foreach (var path in _serviceHosts.ServicePaths) - yield return url + path; - } - } - /// /// Gets the functions for the WebSocket services that the server provides. ///