| 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.Native |
| 4 | { |
| 5 | using WixToolset.Data; |
| 6 | |
| 7 | /// <summary> |
| 8 | /// Callbacks during validation. |
| 9 | /// </summary> |
| 10 | public interface IWindowsInstallerValidatorCallback |
| 11 | { |
| 12 | /// <summary> |
| 13 | /// Indicates if the validator callback encountered an error. |
| 14 | /// </summary> |
| 15 | bool EncounteredError { get; } |
| 16 | |
| 17 | /// <summary> |
| 18 | /// Validation message from an ICE. |
| 19 | /// </summary> |
| 20 | /// <param name="message">The validation message.</param> |
| 21 | /// <returns>True if validation should continue; otherwise cancel the validation.</returns> |
| 22 | bool ValidationMessage(ValidationMessage message); |
| 23 | |
| 24 | /// <summary> |
| 25 | /// Normal message encountered while preparing for ICE validation. |
| 26 | /// </summary> |
| 27 | /// <param name="message">The message to write.</param> |
| 28 | void WriteMessage(Message message); |
| 29 | } |
| 30 | } |