From 1e288d344d5c7c834eea11db4898e96f8c3a68ce Mon Sep 17 00:00:00 2001 From: sta Date: Fri, 25 Nov 2016 16:45:45 +0900 Subject: [PATCH] [Modify] Polish it --- websocket-sharp/WebSocket.cs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/websocket-sharp/WebSocket.cs b/websocket-sharp/WebSocket.cs index 67fd3df0..249c3d54 100644 --- a/websocket-sharp/WebSocket.cs +++ b/websocket-sharp/WebSocket.cs @@ -2802,13 +2802,13 @@ namespace WebSocketSharp } /// - /// Sends the specified as the binary data + /// Sends the specified as the binary data /// asynchronously using the WebSocket connection. /// /// /// This method does not wait for the send to be complete. /// - /// + /// /// A that represents the file to send. /// /// @@ -2820,27 +2820,27 @@ namespace WebSocketSharp /// The current state of the connection is not Open. /// /// - /// is . + /// is . /// /// - /// cannot be opened to read. + /// cannot be opened to read. /// - public void SendAsync (FileInfo file, Action completed) + public void SendAsync (FileInfo fileInfo, Action completed) { if (_readyState != WebSocketState.Open) { var msg = "The current state of the connection is not Open."; throw new InvalidOperationException (msg); } - if (file == null) - throw new ArgumentNullException ("file"); + if (fileInfo == null) + throw new ArgumentNullException ("fileInfo"); - if (!file.Exists) - throw new ArgumentException ("The file does not exist.", "file"); + if (!fileInfo.Exists) + throw new ArgumentException ("The file does not exist.", "fileInfo"); FileStream stream; - if (!file.TryOpenRead (out stream)) - throw new ArgumentException ("Cannot be opened to read.", "file"); + if (!fileInfo.TryOpenRead (out stream)) + throw new ArgumentException ("The file could not be opened.", "fileInfo"); sendAsync (Opcode.Binary, stream, completed); }