[Modify] Polish it

This commit is contained in:
sta 2021-04-21 19:55:04 +09:00
parent 3daac29bc4
commit 6d6e2e6941

View File

@ -98,16 +98,13 @@ namespace WebSocketSharp.Net
public HttpListener () public HttpListener ()
{ {
_authSchemes = AuthenticationSchemes.Anonymous; _authSchemes = AuthenticationSchemes.Anonymous;
_contextQueue = new Queue<HttpListenerContext> (); _contextQueue = new Queue<HttpListenerContext> ();
_contextRegistry = new LinkedList<HttpListenerContext> (); _contextRegistry = new LinkedList<HttpListenerContext> ();
_contextRegistrySync = ((ICollection) _contextRegistry).SyncRoot; _contextRegistrySync = ((ICollection) _contextRegistry).SyncRoot;
_logger = new Logger (); _logger = new Logger ();
_prefixes = new HttpListenerPrefixCollection (this); _prefixes = new HttpListenerPrefixCollection (this);
_waitQueue = new Queue<HttpListenerAsyncResult> (); _waitQueue = new Queue<HttpListenerAsyncResult> ();
} }