diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-12-19 12:25:40 -0800 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-12-19 12:25:40 -0800 |
| commit | 155a6e96346e0cb3d9ab6f5372fa29b46ebaee89 (patch) | |
| tree | 59d1f151bfde8068b6014b05b5c8cfea3402c974 /src/WixToolset.Core/Preprocess/IncludedFileEventHandler.cs | |
| parent | 6f1665ed759b31bd095f186f9239232c653597cd (diff) | |
| download | wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.tar.gz wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.tar.bz2 wix-155a6e96346e0cb3d9ab6f5372fa29b46ebaee89.zip | |
Integrate simplified message handling
Diffstat (limited to 'src/WixToolset.Core/Preprocess/IncludedFileEventHandler.cs')
| -rw-r--r-- | src/WixToolset.Core/Preprocess/IncludedFileEventHandler.cs | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/WixToolset.Core/Preprocess/IncludedFileEventHandler.cs b/src/WixToolset.Core/Preprocess/IncludedFileEventHandler.cs new file mode 100644 index 00000000..beba216d --- /dev/null +++ b/src/WixToolset.Core/Preprocess/IncludedFileEventHandler.cs | |||
| @@ -0,0 +1,43 @@ | |||
| 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 | |||
| 3 | namespace WixToolset.Core.Preprocess | ||
| 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 | /// <summary> | ||
| 21 | /// Creates a new IncludedFileEventArgs. | ||
| 22 | /// </summary> | ||
| 23 | /// <param name="sourceLineNumbers">Source line numbers for the included file.</param> | ||
| 24 | /// <param name="fullName">The full path of the included file.</param> | ||
| 25 | public IncludedFileEventArgs(SourceLineNumber sourceLineNumbers, string fullName) | ||
| 26 | { | ||
| 27 | this.SourceLineNumbers = sourceLineNumbers; | ||
| 28 | this.FullName = fullName; | ||
| 29 | } | ||
| 30 | |||
| 31 | /// <summary> | ||
| 32 | /// Gets the full path of the included file. | ||
| 33 | /// </summary> | ||
| 34 | /// <value>The full path of the included file.</value> | ||
| 35 | public string FullName { get; } | ||
| 36 | |||
| 37 | /// <summary> | ||
| 38 | /// Gets the source line numbers. | ||
| 39 | /// </summary> | ||
| 40 | /// <value>The source line numbers.</value> | ||
| 41 | public SourceLineNumber SourceLineNumbers { get; } | ||
| 42 | } | ||
| 43 | } | ||
