From d3d3649a68cb1fa589fdd987a6690dbd5d671f0d Mon Sep 17 00:00:00 2001 From: Rob Mensching Date: Sun, 17 Sep 2017 15:35:20 -0700 Subject: Initial code commit --- src/WixToolset.Core/IncludedFileEventHandler.cs | 52 +++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/WixToolset.Core/IncludedFileEventHandler.cs (limited to 'src/WixToolset.Core/IncludedFileEventHandler.cs') 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 @@ +// 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. + +namespace WixToolset +{ + using System; + using WixToolset.Data; + + /// + /// Included file event handler delegate. + /// + /// Sender of the message. + /// Arguments for the included file event. + public delegate void IncludedFileEventHandler(object sender, IncludedFileEventArgs e); + + /// + /// Event args for included file event. + /// + public class IncludedFileEventArgs : EventArgs + { + private SourceLineNumber sourceLineNumbers; + private string fullName; + + /// + /// Creates a new IncludedFileEventArgs. + /// + /// Source line numbers for the included file. + /// The full path of the included file. + public IncludedFileEventArgs(SourceLineNumber sourceLineNumbers, string fullName) + { + this.sourceLineNumbers = sourceLineNumbers; + this.fullName = fullName; + } + + /// + /// Gets the full path of the included file. + /// + /// The full path of the included file. + public string FullName + { + get { return this.fullName; } + } + + /// + /// Gets the source line numbers. + /// + /// The source line numbers. + public SourceLineNumber SourceLineNumbers + { + get { return this.sourceLineNumbers; } + } + } +} -- cgit v1.2.3-55-g6feb