From 82f16b3e08d3eab94225ccba84c37d5beec63b80 Mon Sep 17 00:00:00 2001 From: Lior Banai Date: Wed, 18 Dec 2024 09:47:54 +0200 Subject: [PATCH] Add MessageSelected method --- Analogy.Interfaces/Analogy.Interfaces.csproj | 4 ++-- Analogy.Interfaces/IAnalogyDataProvider.cs | 13 +++++++------ Directory.Build.props | 6 +++++- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Analogy.Interfaces/Analogy.Interfaces.csproj b/Analogy.Interfaces/Analogy.Interfaces.csproj index f55038e..d40c817 100644 --- a/Analogy.Interfaces/Analogy.Interfaces.csproj +++ b/Analogy.Interfaces/Analogy.Interfaces.csproj @@ -9,7 +9,7 @@ Analogy.Interfaces Analogy.Interfaces Analogy.LogViewer.Interfaces - 7.1.0 + 7.2.0 Lior Banai Analogy.LogViewer.Interfaces @@ -25,7 +25,7 @@ - + diff --git a/Analogy.Interfaces/IAnalogyDataProvider.cs b/Analogy.Interfaces/IAnalogyDataProvider.cs index 3a474c6..73cfbfd 100644 --- a/Analogy.Interfaces/IAnalogyDataProvider.cs +++ b/Analogy.Interfaces/IAnalogyDataProvider.cs @@ -11,7 +11,7 @@ namespace Analogy.Interfaces public interface IAnalogyDataProvider { /// - /// ID of the data provider + /// ID of the data provider. /// Guid Id { get; set; } @@ -21,27 +21,28 @@ public interface IAnalogyDataProvider Task InitializeDataProvider(Microsoft.Extensions.Logging.ILogger logger); /// - /// //Optional title to display in the ribbon bar + /// //Optional title to display in the ribbon bar. /// string? OptionalTitle { get; set; } /// /// called when the message is open in Analogy in full view mode (detailed view). Should not throw exception /// - /// void MessageOpened(IAnalogyLogMessage message); + /// + /// called when the message is selected/focused in Analogy list view. Should not throw exception + /// + void MessageSelected(IAnalogyLogMessage message); + /// /// indicate that the data provider will supply coloring logic per row/message - /// if true the /// bool UseCustomColors { get; set; } /// /// get the colors to use in the data grid of Analogy /// - /// - /// (Color BackgroundColor, Color ForegroundColor) GetColorForMessage(IAnalogyLogMessage logMessage); /// diff --git a/Directory.Build.props b/Directory.Build.props index 92e0919..e052c8b 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -38,6 +38,10 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive + + all + runtime; build; native; contentfiles; analyzers + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -52,7 +56,7 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive