From 0140ddb3b57bcf8e3d241786b9004a2f741713ce Mon Sep 17 00:00:00 2001 From: sta Date: Thu, 9 Mar 2017 15:40:09 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/Server/WebSocketServer.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/websocket-sharp/Server/WebSocketServer.cs b/websocket-sharp/Server/WebSocketServer.cs index 1aa14b9c..290d48b0 100644 --- a/websocket-sharp/Server/WebSocketServer.cs +++ b/websocket-sharp/Server/WebSocketServer.cs @@ -1030,14 +1030,14 @@ namespace WebSocketSharp.Server /// /// Adds a WebSocket service with the specified behavior, - /// , and . + /// , and . /// /// /// A that represents an absolute path to /// the service. It will be converted to a URL-decoded string, /// and will be removed '/' from tail end if any. /// - /// + /// /// A Func<TBehavior> delegate that invokes /// the method used to create a new session instance for /// the service. The method must create a new instance of @@ -1048,15 +1048,15 @@ namespace WebSocketSharp.Server /// the class. /// public void AddWebSocketService ( - string path, Func initializer + string path, Func creator ) where TBehavior : WebSocketBehavior { if (path == null) throw new ArgumentNullException ("path"); - if (initializer == null) - throw new ArgumentNullException ("initializer"); + if (creator == null) + throw new ArgumentNullException ("creator"); if (path.Length == 0) throw new ArgumentException ("An empty string.", "path"); @@ -1069,7 +1069,7 @@ namespace WebSocketSharp.Server throw new ArgumentException (msg, "path"); } - _services.Add (path, initializer); + _services.Add (path, creator); } ///