-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCommandExecutionFailedEventArgs.cs
More file actions
33 lines (30 loc) · 1.18 KB
/
CommandExecutionFailedEventArgs.cs
File metadata and controls
33 lines (30 loc) · 1.18 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
using System;
using Ultz.Extensions.Commands.Context;
using Ultz.Extensions.Commands.Results.Failed.Execution;
namespace Ultz.Extensions.Commands.Events
{
/// <summary>
/// Represents the event data for when a command errored during execution.
/// </summary>
public sealed class CommandExecutionFailedEventArgs : EventArgs
{
/// <summary>
/// Initialises a new <see cref="CommandExecutionFailedEventArgs" />.
/// </summary>
/// <param name="result"> The <see cref="ExecutionFailedResult" /> returned from execution. </param>
/// <param name="context"> The <see cref="CommandContext" /> used for execution. </param>
public CommandExecutionFailedEventArgs(ExecutionFailedResult result, CommandContext context)
{
Result = result;
Context = context;
}
/// <summary>
/// Gets the <see cref="ExecutionFailedResult" /> returned from execution.
/// </summary>
public ExecutionFailedResult Result { get; }
/// <summary>
/// Gets the <see cref="CommandContext" /> used for execution.
/// </summary>
public CommandContext Context { get; }
}
}