@@ -109,7 +109,7 @@ public class HttpListener
109109 /// </remarks>
110110 public SslProtocols SslProtocols
111111#pragma warning restore S2292 // Trivial properties should be auto-implemented
112- // nanoFramework doesn't support auto-properties
112+ // nanoFramework doesn't support auto-properties
113113 {
114114 get { return m_sslProtocols ; }
115115 set { m_sslProtocols = value ; }
@@ -194,7 +194,7 @@ private void InitListener(string prefix, int port)
194194 /// <param name="clientStream">The stream to add.</param>
195195 internal void AddClientStream ( OutputNetworkStreamWrapper clientStream )
196196 {
197- lock ( m_ClientStreams )
197+ lock ( m_ClientStreams )
198198 {
199199 m_ClientStreams . Add ( clientStream ) ;
200200 }
@@ -207,7 +207,7 @@ internal void AddClientStream(OutputNetworkStreamWrapper clientStream)
207207 /// <param name="clientStream">The stream to remove.</param>
208208 internal void RemoveClientStream ( OutputNetworkStreamWrapper clientStream )
209209 {
210- lock ( m_ClientStreams )
210+ lock ( m_ClientStreams )
211211 {
212212 for ( int i = 0 ; i < m_ClientStreams . Count ; i ++ )
213213 {
@@ -283,7 +283,7 @@ private void WaitingConnectionThreadFunc(OutputNetworkStreamWrapper outputStream
283283 outputStream . Dispose ( ) ;
284284 }
285285 }
286- catch ( Exception ex )
286+ catch ( Exception ex )
287287 {
288288 Debug . WriteLine ( ex . Message ) ;
289289 }
@@ -310,7 +310,7 @@ public void Abort()
310310 {
311311 // First we shut down the service.
312312 Close ( ) ;
313-
313+
314314 // Now we need to go through list of all client sockets and close all of them.
315315 // This will cause exceptions on read/write operations on these sockets.
316316 foreach ( OutputNetworkStreamWrapper netStream in m_ClientStreams )
@@ -418,7 +418,7 @@ private void AcceptThreadFunc()
418418 // Throws exception if this fails
419419 // pass the server certificate
420420 // do not require client certificate
421- ( ( SslStream ) netStream ) . AuthenticateAsServer ( m_httpsCert , false , m_sslProtocols ) ;
421+ ( ( SslStream ) netStream ) . AuthenticateAsServer ( m_httpsCert , false , m_sslProtocols ) ;
422422
423423 netStream . ReadTimeout = 10000 ;
424424 }
@@ -465,13 +465,13 @@ public void Start()
465465 lock ( lockObj )
466466 {
467467 if ( m_Closed ) throw new ObjectDisposedException ( ) ;
468-
468+
469469 // If service was already started, the call has no effect.
470470 if ( m_ServiceRunning )
471471 {
472472 return ;
473473 }
474-
474+
475475 m_listener = new Socket ( AddressFamily . InterNetwork , SocketType . Stream , ProtocolType . Tcp ) ;
476476
477477 try
@@ -532,7 +532,7 @@ public void Close()
532532 {
533533 // empty on purpose to catch any exceptions thrown when calling the Stop above
534534 }
535-
535+
536536 m_Closed = true ;
537537 }
538538 }
@@ -549,19 +549,19 @@ public void Close()
549549 /// </para>
550550 /// </remarks>
551551 public void Stop ( )
552- {
552+ {
553553 // Need to lock access to object, because Stop can be called from a
554554 // different thread.
555555 lock ( lockObj )
556556 {
557557 if ( m_Closed ) throw new ObjectDisposedException ( ) ;
558-
558+
559559 m_ServiceRunning = false ;
560-
560+
561561 // We close the server socket that listen for incoming connection.
562562 // Connections that already accepted are processed.
563563 // Connections that has been in queue for server socket, but not accepted, are lost.
564- if ( m_listener != null )
564+ if ( m_listener != null )
565565 {
566566 m_listener . Close ( ) ;
567567 m_listener = null ;
@@ -604,7 +604,7 @@ public HttpListenerContext GetContext()
604604 lock ( lockObj )
605605 {
606606 if ( m_Closed ) throw new ObjectDisposedException ( ) ;
607-
607+
608608 if ( ! m_ServiceRunning ) throw new InvalidOperationException ( ) ;
609609 }
610610
@@ -640,7 +640,7 @@ public HttpListenerContext GetContext()
640640 /// <itemref>false</itemref>.</value>
641641 public bool IsListening
642642 {
643- get { return m_ServiceRunning ; }
643+ get { return m_ServiceRunning ; }
644644 }
645645
646646 /// <summary>
@@ -666,7 +666,7 @@ public int MaximumResponseHeadersLength
666666#pragma warning disable S3928 // Parameter names used into ArgumentException constructors should match an existing one
667667 throw new ArgumentOutOfRangeException ( ) ;
668668#pragma warning restore S3928 // Parameter names used into ArgumentException constructors should match an existing one
669- // can't add description as that would increase the deployment image size
669+ // can't add description as that would increase the deployment image size
670670 }
671671
672672 m_maxResponseHeadersLen = value ;
@@ -679,7 +679,7 @@ public int MaximumResponseHeadersLength
679679 /// </summary>
680680 public X509Certificate HttpsCert
681681#pragma warning restore S2292 // Trivial properties should be auto-implemented
682- // nanoFramework doesn't support auto-properties
682+ // nanoFramework doesn't support auto-properties
683683 {
684684 get { return m_httpsCert ; }
685685 set { m_httpsCert = value ; }
0 commit comments