Skip to content

Commit

Permalink
Add MessageSelected method
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorBanai-Intuitive committed Dec 18, 2024
1 parent 76d73cb commit 82f16b3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Analogy.Interfaces/Analogy.Interfaces.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down
13 changes: 7 additions & 6 deletions Analogy.Interfaces/IAnalogyDataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

Expand All @@ -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>
Expand Down
6 changes: 5 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand Down

0 comments on commit 82f16b3

Please sign in to comment.