aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener/ErrorEventArgs.cs
diff options
context:
space:
mode:
Diffstat (limited to 'SocketHttpListener/ErrorEventArgs.cs')
-rw-r--r--SocketHttpListener/ErrorEventArgs.cs62
1 files changed, 29 insertions, 33 deletions
diff --git a/SocketHttpListener/ErrorEventArgs.cs b/SocketHttpListener/ErrorEventArgs.cs
index bf1d6fc95..9502d2a15 100644
--- a/SocketHttpListener/ErrorEventArgs.cs
+++ b/SocketHttpListener/ErrorEventArgs.cs
@@ -2,45 +2,41 @@ using System;
namespace SocketHttpListener
{
- /// <summary>
- /// Contains the event data associated with a <see cref="WebSocket.OnError"/> event.
- /// </summary>
- /// <remarks>
- /// A <see cref="WebSocket.OnError"/> event occurs when the <see cref="WebSocket"/> gets an error.
- /// If you would like to get the error message, you should access the <see cref="Message"/>
- /// property.
- /// </remarks>
- public class ErrorEventArgs : EventArgs
- {
- #region Private Fields
+ /// <summary>
+ /// Contains the event data associated with a <see cref="WebSocket.OnError"/> event.
+ /// </summary>
+ /// <remarks>
+ /// A <see cref="WebSocket.OnError"/> event occurs when the <see cref="WebSocket"/> gets an error.
+ /// If you would like to get the error message, you should access the <see cref="Message"/>
+ /// property.
+ /// </remarks>
+ public class ErrorEventArgs : EventArgs
+ {
+ #region Private Fields
- private string _message;
+ private string _message;
- #endregion
+ #endregion
- #region Internal Constructors
+ #region Internal Constructors
- internal ErrorEventArgs (string message)
- {
- _message = message;
- }
+ internal ErrorEventArgs(string message)
+ {
+ _message = message;
+ }
- #endregion
+ #endregion
- #region Public Properties
+ #region Public Properties
- /// <summary>
- /// Gets the error message.
- /// </summary>
- /// <value>
- /// A <see cref="string"/> that represents the error message.
- /// </value>
- public string Message {
- get {
- return _message;
- }
- }
+ /// <summary>
+ /// Gets the error message.
+ /// </summary>
+ /// <value>
+ /// A <see cref="string"/> that represents the error message.
+ /// </value>
+ public string Message => _message;
- #endregion
- }
+ #endregion
+ }
}