-
Notifications
You must be signed in to change notification settings - Fork 277
Expand file tree
/
Copy pathClosedEventArgs.cs
More file actions
37 lines (34 loc) · 957 Bytes
/
ClosedEventArgs.cs
File metadata and controls
37 lines (34 loc) · 957 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
using System;
namespace WebSocket4Net
{
/// <summary>
/// The event args for closed event
/// </summary>
public class ClosedEventArgs : EventArgs
{
/// <summary>
/// Gets the code of close reason.
/// </summary>
/// <value>
/// The code.
/// </value>
public short Code { get; private set; }
/// <summary>
/// Gets the description of the close reason.
/// </summary>
/// <value>
/// The reason.
/// </value>
public string Reason { get; private set; }
/// <summary>
/// Initializes a new instance of the <see cref="ClosedEventArgs"/> class.
/// </summary>
/// <param name="code">The code.</param>
/// <param name="reason">The reason.</param>
public ClosedEventArgs(short code, string reason)
{
Code = code;
Reason = reason;
}
}
}