From 82f16b3e08d3eab94225ccba84c37d5beec63b80 Mon Sep 17 00:00:00 2001 From: Lior Banai <Lior.Banai@intusurg.com> 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 @@ <AssemblyName>Analogy.Interfaces</AssemblyName> <RootNamespace>Analogy.Interfaces</RootNamespace> <PackageId>Analogy.LogViewer.Interfaces</PackageId> - <VersionPrefix>7.1.0</VersionPrefix> + <VersionPrefix>7.2.0</VersionPrefix> <VersionSuffix></VersionSuffix> <Authors>Lior Banai</Authors> <Product>Analogy.LogViewer.Interfaces</Product> @@ -25,7 +25,7 @@ </None> </ItemGroup> <ItemGroup> - <PackageReference Include="Analogy.Interfaces.DataTypes" Version="1.0.0" /> + <PackageReference Include="Analogy.Interfaces.DataTypes" Version="1.1.0" /> <PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="9.0.0" /> <PackageReference Include="System.Resources.Extensions" Version="9.0.0" /> </ItemGroup> 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 { /// <summary> - /// ID of the data provider + /// ID of the data provider. /// </summary> Guid Id { get; set; } @@ -21,27 +21,28 @@ public interface IAnalogyDataProvider Task InitializeDataProvider(Microsoft.Extensions.Logging.ILogger logger); /// <summary> - /// //Optional title to display in the ribbon bar + /// //Optional title to display in the ribbon bar. /// </summary> string? OptionalTitle { get; set; } /// <summary> /// called when the message is open in Analogy in full view mode (detailed view). Should not throw exception /// </summary> - /// <param name="message"></param> void MessageOpened(IAnalogyLogMessage message); + /// <summary> + /// called when the message is selected/focused in Analogy list view. Should not throw exception + /// </summary> + void MessageSelected(IAnalogyLogMessage message); + /// <summary> /// indicate that the data provider will supply coloring logic per row/message - /// if true the /// </summary> bool UseCustomColors { get; set; } /// <summary> /// get the colors to use in the data grid of Analogy /// </summary> - /// <param name="logMessage"></param> - /// <returns></returns> (Color BackgroundColor, Color ForegroundColor) GetColorForMessage(IAnalogyLogMessage logMessage); /// <summary> 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 @@ <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference> + <PackageReference Include="Roslynator.Analyzers" Version="4.12.10"> + <PrivateAssets>all</PrivateAssets> + <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> + </PackageReference> <PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> @@ -52,7 +56,7 @@ </ItemGroup> <ItemGroup Condition=" '$(TargetFramework)' == 'net48' "> <PackageReference Include="Microsoft.Bcl.HashCode" Version="6.0.0" /> - <PackageReference Include="PolySharp" Version="1.14.1 "> + <PackageReference Include="PolySharp" Version="1.15.0"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> </PackageReference>