forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathServiceShutdownEventArgs.cs
More file actions
37 lines (33 loc) · 1.11 KB
/
Copy pathServiceShutdownEventArgs.cs
File metadata and controls
37 lines (33 loc) · 1.11 KB
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 L2dotNET.Network
{
/// <summary>
/// Service shutdown event arguments.
/// </summary>
public sealed class ServiceShutdownEventArgs : EventArgs
{
/// <summary>
/// Shutdown message.
/// </summary>
public readonly string Message;
/// <summary>
/// Last occurred exception.
/// </summary>
public readonly Exception LastException;
/// <summary>
/// Initializes new instance of <see cref="ServiceShutdownEventArgs"/> object.
/// </summary>
/// <param name="message">Shutdown message.</param>
public ServiceShutdownEventArgs(string message) : this(message, null) { }
/// <summary>
/// Initializes new instance of <see cref="ServiceShutdownEventArgs"/> object.
/// </summary>
/// <param name="message">Shutdown message.</param>
/// <param name="e">Occurred <see cref="Exception"/>.</param>
public ServiceShutdownEventArgs(string message, Exception e)
{
Message = message;
LastException = e;
}
}
}