From cc8621d632b57080ac66e9044f3dee1efe531f05 Mon Sep 17 00:00:00 2001 From: ig Date: Mon, 3 Jul 2023 15:59:55 +0200 Subject: [PATCH] Introduce Ip4Address class, standard IpAddress class is unwieldy... --- csharp/App/SaliMax/src/BusPort.cs | 10 ---------- csharp/Lib/Utils/Net/Ip4Address.cs | 7 +++++++ 2 files changed, 7 insertions(+), 10 deletions(-) delete mode 100644 csharp/App/SaliMax/src/BusPort.cs create mode 100644 csharp/Lib/Utils/Net/Ip4Address.cs diff --git a/csharp/App/SaliMax/src/BusPort.cs b/csharp/App/SaliMax/src/BusPort.cs deleted file mode 100644 index e8cbd649b..000000000 --- a/csharp/App/SaliMax/src/BusPort.cs +++ /dev/null @@ -1,10 +0,0 @@ -namespace InnovEnergy.App.SaliMax; - -public enum BusPort -{ - None, - Ac, - Dc, - Dc48, - Infer, -} \ No newline at end of file diff --git a/csharp/Lib/Utils/Net/Ip4Address.cs b/csharp/Lib/Utils/Net/Ip4Address.cs new file mode 100644 index 000000000..8c343247b --- /dev/null +++ b/csharp/Lib/Utils/Net/Ip4Address.cs @@ -0,0 +1,7 @@ +namespace InnovEnergy.Lib.Utils.Net; + +public class Ip4Address +{ + public required String Address { get; init; } + public required UInt16 Port { get; init; } +} \ No newline at end of file