diff options
| author | Rob Mensching <rob@firegiant.com> | 2017-09-17 15:35:20 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2017-09-17 16:00:11 -0700 |
| commit | d3d3649a68cb1fa589fdd987a6690dbd5d671f0d (patch) | |
| tree | 44fe37ee352b7e3a355cc1e08b1d7d5988c14cc0 /src/WixToolset.Core/ProcessedStreamEventHandler.cs | |
| parent | a62610d23d6feb98be3b1e529a4e81b19d77d9d8 (diff) | |
| download | wix-d3d3649a68cb1fa589fdd987a6690dbd5d671f0d.tar.gz wix-d3d3649a68cb1fa589fdd987a6690dbd5d671f0d.tar.bz2 wix-d3d3649a68cb1fa589fdd987a6690dbd5d671f0d.zip | |
Initial code commit
Diffstat (limited to 'src/WixToolset.Core/ProcessedStreamEventHandler.cs')
| -rw-r--r-- | src/WixToolset.Core/ProcessedStreamEventHandler.cs | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/WixToolset.Core/ProcessedStreamEventHandler.cs b/src/WixToolset.Core/ProcessedStreamEventHandler.cs new file mode 100644 index 00000000..de6b5d1f --- /dev/null +++ b/src/WixToolset.Core/ProcessedStreamEventHandler.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 | ||
| 4 | { | ||
| 5 | using System; | ||
| 6 | using System.Xml.Linq; | ||
| 7 | |||
| 8 | /// <summary> | ||
| 9 | /// Preprocessed output stream event handler delegate. | ||
| 10 | /// </summary> | ||
| 11 | /// <param name="sender">Sender of the message.</param> | ||
| 12 | /// <param name="ea">Arguments for the preprocessed stream event.</param> | ||
| 13 | public delegate void ProcessedStreamEventHandler(object sender, ProcessedStreamEventArgs e); | ||
| 14 | |||
| 15 | /// <summary> | ||
| 16 | /// Event args for preprocessed stream event. | ||
| 17 | /// </summary> | ||
| 18 | public class ProcessedStreamEventArgs : EventArgs | ||
| 19 | { | ||
| 20 | /// <summary> | ||
| 21 | /// Creates a new ProcessedStreamEventArgs. | ||
| 22 | /// </summary> | ||
| 23 | /// <param name="sourceFile">Source file that is preprocessed.</param> | ||
| 24 | /// <param name="document">Preprocessed output document.</param> | ||
| 25 | public ProcessedStreamEventArgs(string sourceFile, XDocument document) | ||
| 26 | { | ||
| 27 | this.SourceFile = sourceFile; | ||
| 28 | this.Document = document; | ||
| 29 | } | ||
| 30 | |||
| 31 | /// <summary> | ||
| 32 | /// Gets the full path of the source file. | ||
| 33 | /// </summary> | ||
| 34 | /// <value>The full path of the source file.</value> | ||
| 35 | public string SourceFile { get; private set; } | ||
| 36 | |||
| 37 | /// <summary> | ||
| 38 | /// Gets the preprocessed output stream. | ||
| 39 | /// </summary> | ||
| 40 | /// <value>The the preprocessed output stream.</value> | ||
| 41 | public XDocument Document { get; private set; } | ||
| 42 | } | ||
| 43 | } | ||
