@@ -217,7 +217,7 @@ public virtual bool Stop()
217217 // Dispose the session socket
218218 Socket . Dispose ( ) ;
219219 }
220- catch ( ObjectDisposedException ) { }
220+ catch ( ObjectDisposedException ) { }
221221
222222 // Update the started flag
223223 IsStarted = false ;
@@ -466,7 +466,7 @@ private void TryReceive()
466466 if ( ! Socket . ReceiveFromAsync ( _receiveEventArg ) )
467467 ProcessReceiveFrom ( _receiveEventArg ) ;
468468 }
469- catch ( ObjectDisposedException ) { }
469+ catch ( ObjectDisposedException ) { }
470470 }
471471
472472 /// <summary>
@@ -489,7 +489,7 @@ private void TrySend()
489489 if ( ! Socket . SendToAsync ( _sendEventArg ) )
490490 ProcessSendTo ( _sendEventArg ) ;
491491 }
492- catch ( ObjectDisposedException ) { }
492+ catch ( ObjectDisposedException ) { }
493493 }
494494
495495 /// <summary>
@@ -605,11 +605,11 @@ private void ProcessSendTo(SocketAsyncEventArgs e)
605605 /// <summary>
606606 /// Handle server started notification
607607 /// </summary>
608- protected virtual void OnStarted ( ) { }
608+ protected virtual void OnStarted ( ) { }
609609 /// <summary>
610610 /// Handle server stopped notification
611611 /// </summary>
612- protected virtual void OnStopped ( ) { }
612+ protected virtual void OnStopped ( ) { }
613613
614614 /// <summary>
615615 /// Handle datagram received notification
@@ -620,7 +620,7 @@ protected virtual void OnStopped() { }
620620 /// <remarks>
621621 /// Notification is called when another datagram was received from some endpoint
622622 /// </remarks>
623- protected virtual void OnReceived ( IPEndPoint endpoint , byte [ ] buffer , long size ) { }
623+ protected virtual void OnReceived ( IPEndPoint endpoint , byte [ ] buffer , long size ) { }
624624 /// <summary>
625625 /// Handle datagram sent notification
626626 /// </summary>
@@ -630,13 +630,13 @@ protected virtual void OnReceived(IPEndPoint endpoint, byte[] buffer, long size)
630630 /// Notification is called when a datagram was sent to the client.
631631 /// This handler could be used to send another datagram to the client for instance when the pending size is zero.
632632 /// </remarks>
633- protected virtual void OnSent ( IPEndPoint endpoint , long sent ) { }
633+ protected virtual void OnSent ( IPEndPoint endpoint , long sent ) { }
634634
635635 /// <summary>
636636 /// Handle error notification
637637 /// </summary>
638638 /// <param name="error">Socket error code</param>
639- protected virtual void OnError ( SocketError error ) { }
639+ protected virtual void OnError ( SocketError error ) { }
640640
641641 #endregion
642642
@@ -674,16 +674,16 @@ public void Dispose()
674674
675675 protected virtual void Dispose ( bool disposingManagedResources )
676676 {
677- // The idea here is that Dispose(Boolean) knows whether it is
678- // being called to do explicit cleanup (the Boolean is true)
679- // versus being called due to a garbage collection (the Boolean
680- // is false). This distinction is useful because, when being
681- // disposed explicitly, the Dispose(Boolean) method can safely
682- // execute code using reference type fields that refer to other
683- // objects knowing for sure that these other objects have not been
684- // finalized or disposed of yet. When the Boolean is false,
685- // the Dispose(Boolean) method should not execute code that
686- // refer to reference type fields because those objects may
677+ // The idea here is that Dispose(Boolean) knows whether it is
678+ // being called to do explicit cleanup (the Boolean is true)
679+ // versus being called due to a garbage collection (the Boolean
680+ // is false). This distinction is useful because, when being
681+ // disposed explicitly, the Dispose(Boolean) method can safely
682+ // execute code using reference type fields that refer to other
683+ // objects knowing for sure that these other objects have not been
684+ // finalized or disposed of yet. When the Boolean is false,
685+ // the Dispose(Boolean) method should not execute code that
686+ // refer to reference type fields because those objects may
687687 // have already been finalized."
688688
689689 if ( ! _disposed )
0 commit comments