// 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.Core.Preprocess { using System; using System.Xml.Linq; /// /// Preprocessed output stream event handler delegate. /// /// Sender of the message. /// Arguments for the preprocessed stream event. public delegate void ProcessedStreamEventHandler(object sender, ProcessedStreamEventArgs e); /// /// Event args for preprocessed stream event. /// public class ProcessedStreamEventArgs : EventArgs { /// /// Creates a new ProcessedStreamEventArgs. /// /// Source file that is preprocessed. /// Preprocessed output document. public ProcessedStreamEventArgs(string sourceFile, XDocument document) { this.SourceFile = sourceFile; this.Document = document; } /// /// Gets the full path of the source file. /// /// The full path of the source file. public string SourceFile { get; private set; } /// /// Gets the preprocessed output stream. /// /// The the preprocessed output stream. public XDocument Document { get; private set; } } }