From de509c24522eadd6a58606d7723fb0c6c71e8d08 Mon Sep 17 00:00:00 2001
From: Lior Banai <36262995+LiorBanai@users.noreply.github.com>
Date: Mon, 26 Oct 2020 08:56:12 +0200
Subject: [PATCH] ..
---
...ogy.LogViewer.KafkaProvider.Example.csproj | 1 +
.../Analogy.LogViewer.KafkaProvider.csproj | 5 ++-
.../DownloadInformation.cs | 37 +++++++++++++++++++
3 files changed, 42 insertions(+), 1 deletion(-)
create mode 100644 Analogy.Implementation.KafkaProvider/DownloadInformation.cs
diff --git a/Analogy.Implementation.KafkaProvider.Example/Analogy.LogViewer.KafkaProvider.Example.csproj b/Analogy.Implementation.KafkaProvider.Example/Analogy.LogViewer.KafkaProvider.Example.csproj
index e82e86b..0cb718f 100644
--- a/Analogy.Implementation.KafkaProvider.Example/Analogy.LogViewer.KafkaProvider.Example.csproj
+++ b/Analogy.Implementation.KafkaProvider.Example/Analogy.LogViewer.KafkaProvider.Example.csproj
@@ -18,6 +18,7 @@
+
diff --git a/Analogy.Implementation.KafkaProvider/Analogy.LogViewer.KafkaProvider.csproj b/Analogy.Implementation.KafkaProvider/Analogy.LogViewer.KafkaProvider.csproj
index a67a75e..7ac8952 100644
--- a/Analogy.Implementation.KafkaProvider/Analogy.LogViewer.KafkaProvider.csproj
+++ b/Analogy.Implementation.KafkaProvider/Analogy.LogViewer.KafkaProvider.csproj
@@ -6,7 +6,7 @@
true
true
snupkg
- 1.3.4
+ 1.3.5
Lior Banai
Analogy.LogViewer
Analogy.LogViewer.KafkaProvider
@@ -19,12 +19,15 @@
https://github.com/Analogy-LogViewer/Analogy.LogViewer.KafkaProvider
git
+ enable
+ 8.0
true
true
+
diff --git a/Analogy.Implementation.KafkaProvider/DownloadInformation.cs b/Analogy.Implementation.KafkaProvider/DownloadInformation.cs
new file mode 100644
index 0000000..0ac60c6
--- /dev/null
+++ b/Analogy.Implementation.KafkaProvider/DownloadInformation.cs
@@ -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;
+ }
+ }
+ }
+}