aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core/IncludedFileEventHandler.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolset.Core/IncludedFileEventHandler.cs')
-rw-r--r--src/WixToolset.Core/IncludedFileEventHandler.cs52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/WixToolset.Core/IncludedFileEventHandler.cs b/src/WixToolset.Core/IncludedFileEventHandler.cs
new file mode 100644
index 00000000..57527e5c
--- /dev/null
+++ b/src/WixToolset.Core/IncludedFileEventHandler.cs
@@ -0,0 +1,52 @@
1// Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information.
2
3namespace WixToolset
4{
5 using System;
6 using WixToolset.Data;
7
8 /// <summary>
9 /// Included file event handler delegate.
10 /// </summary>
11 /// <param name="sender">Sender of the message.</param>
12 /// <param name="ea">Arguments for the included file event.</param>
13 public delegate void IncludedFileEventHandler(object sender, IncludedFileEventArgs e);
14
15 /// <summary>
16 /// Event args for included file event.
17 /// </summary>
18 public class IncludedFileEventArgs : EventArgs
19 {
20 private SourceLineNumber sourceLineNumbers;
21 private string fullName;
22
23 /// <summary>
24 /// Creates a new IncludedFileEventArgs.
25 /// </summary>
26 /// <param name="sourceLineNumbers">Source line numbers for the included file.</param>
27 /// <param name="fullName">The full path of the included file.</param>
28 public IncludedFileEventArgs(SourceLineNumber sourceLineNumbers, string fullName)
29 {
30 this.sourceLineNumbers = sourceLineNumbers;
31 this.fullName = fullName;
32 }
33
34 /// <summary>
35 /// Gets the full path of the included file.
36 /// </summary>
37 /// <value>The full path of the included file.</value>
38 public string FullName
39 {
40 get { return this.fullName; }
41 }
42
43 /// <summary>
44 /// Gets the source line numbers.
45 /// </summary>
46 /// <value>The source line numbers.</value>
47 public SourceLineNumber SourceLineNumbers
48 {
49 get { return this.sourceLineNumbers; }
50 }
51 }
52}