[Modify] Rename it

This commit is contained in:
sta 2017-08-23 16:54:06 +09:00
parent b33f63c344
commit f506b79eac

View File

@ -45,7 +45,7 @@ namespace WebSocketSharp.Server
private volatile bool _clean; private volatile bool _clean;
private object _forSweep; private object _forSweep;
private Logger _logger; private Logger _log;
private Dictionary<string, IWebSocketSession> _sessions; private Dictionary<string, IWebSocketSession> _sessions;
private volatile ServerState _state; private volatile ServerState _state;
private volatile bool _sweeping; private volatile bool _sweeping;
@ -57,9 +57,9 @@ namespace WebSocketSharp.Server
#region Internal Constructors #region Internal Constructors
internal WebSocketSessionManager (Logger logger) internal WebSocketSessionManager (Logger log)
{ {
_logger = logger; _log = log;
_clean = true; _clean = true;
_forSweep = new object (); _forSweep = new object ();
@ -256,7 +256,7 @@ namespace WebSocketSharp.Server
completed (); completed ();
} }
catch (Exception ex) { catch (Exception ex) {
_logger.Fatal (ex.ToString ()); _log.Fatal (ex.ToString ());
} }
finally { finally {
cache.Clear (); cache.Clear ();
@ -272,7 +272,7 @@ namespace WebSocketSharp.Server
completed (); completed ();
} }
catch (Exception ex) { catch (Exception ex) {
_logger.Fatal (ex.ToString ()); _log.Fatal (ex.ToString ());
} }
finally { finally {
foreach (var cached in cache.Values) foreach (var cached in cache.Values)
@ -545,7 +545,7 @@ namespace WebSocketSharp.Server
} }
if (len < length) { if (len < length) {
_logger.Warn ( _log.Warn (
String.Format ( String.Format (
"Only {0} byte(s) of data could be read from the stream.", "Only {0} byte(s) of data could be read from the stream.",
len len
@ -729,7 +729,7 @@ namespace WebSocketSharp.Server
} }
if (len < length) { if (len < length) {
_logger.Warn ( _log.Warn (
String.Format ( String.Format (
"Only {0} byte(s) of data could be read from the stream.", "Only {0} byte(s) of data could be read from the stream.",
len len