@joebigelow / wix / commits / fdb5b2a2

Let listeners adjust message levels; general messaging cleanup.

Bob Arnson committed Jan 17, 2020 at 20:59 UTC fdb5b2a2cf0690cebbb449ba47370bdc55928539
2 files changed +4 -12
src/WixToolset.Extensibility/IMessageListener.cs
+4 -5
@@ -1,17 +1,16 @@
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.
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.Extensibility
4 {
5 using WixToolset.Data;
6 + using WixToolset.Extensibility.Services;
7
8 public interface IMessageListener
9 {
9 - string ShortAppName { get; }
10 -
11 - string LongAppName { get; }
12 -
10 void Write(Message message);
11
12 void Write(string message);
13 +
14 + MessageLevel CalculateMessageLevel(IMessaging messaging, Message message, MessageLevel defaultMessageLevel);
15 }
16 }
src/WixToolset.Extensibility/Services/IMessaging.cs
-7
@@ -57,13 +57,6 @@ namespace WixToolset.Extensibility.Services
57 /// <param name="warningNumber">Id of the message to suppress.</param>
58 void SuppressWarningMessage(int warningNumber);
59
60 - /// <summary>
61 - /// Formats a message to standard message.
62 - /// </summary>
63 - /// <param name="message">Message to format.</param>
64 - /// <returns>Formatted message</returns>
65 - string FormatMessage(Message message);
66 -
60 /// <summary>
61 /// Sends a message with the given arguments.
62 /// </summary>