Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
LiorBanai committed Oct 26, 2020
1 parent 1184bd3 commit de509c2
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

<ItemGroup>
<PackageReference Include="Analogy.LogViewer.Interfaces" Version="2.7.9.5" />
<PackageReference Include="Analogy.LogViewer.Template" Version="1.6.10" />
<PackageReference Include="Confluent.Kafka" Version="1.5.2" />
<PackageReference Include="librdkafka.redist" Version="1.5.2" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Version>1.3.4</Version>
<Version>1.3.5</Version>
<Authors>Lior Banai</Authors>
<Company>Analogy.LogViewer</Company>
<Product>Analogy.LogViewer.KafkaProvider</Product>
Expand All @@ -19,12 +19,15 @@
<PackageIconUrl />
<RepositoryUrl>https://github.com/Analogy-LogViewer/Analogy.LogViewer.KafkaProvider</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Nullable>enable</Nullable>
<LangVersion>8.0</LangVersion>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<GenerateResourceUsePreserializedResources>true</GenerateResourceUsePreserializedResources>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Analogy.LogViewer.Interfaces" Version="2.7.9.5" />
<PackageReference Include="Analogy.LogViewer.Template" Version="1.6.10" />
<PackageReference Include="Confluent.Kafka" Version="1.5.2" />
<PackageReference Include="librdkafka.redist" Version="1.5.2" />
<PackageReference Include="Microsoft.Build.Tasks.Git" Version="1.0.0">
Expand Down
37 changes: 37 additions & 0 deletions Analogy.Implementation.KafkaProvider/DownloadInformation.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.Versioning;
using System.Text;
using System.Threading.Tasks;
using Analogy.LogViewer.Template;

namespace Analogy.LogViewer.KafkaProvider
{
public class DownloadInformation : Analogy.LogViewer.Template.AnalogyDownloadInformation
{
protected override string RepositoryURL { get; set; } = "https://api.github.com/repos/Analogy-LogViewer/Analogy.LogViewer.KafkaProvider";
public override TargetFrameworkAttribute CurrentFrameworkAttribute { get; set; } = (TargetFrameworkAttribute)Assembly.GetExecutingAssembly().GetCustomAttribute(typeof(TargetFrameworkAttribute));

public override Guid FactoryId { get; set; } = AnalogyKafkaFactory.Id;
public override string Name { get; set; } = "Kafka Data Provider";

private string? _installedVersionNumber;
public override string InstalledVersionNumber
{
get
{
if (_installedVersionNumber != null)
{
return _installedVersionNumber;
}
Assembly assembly = Assembly.GetExecutingAssembly();
FileVersionInfo fvi = FileVersionInfo.GetVersionInfo(assembly.Location);
_installedVersionNumber = fvi.FileVersion;
return _installedVersionNumber;
}
}
}
}

0 comments on commit de509c2

Please sign in to comment.