From abc7120e4885af3704363a409454f4be0f782c70 Mon Sep 17 00:00:00 2001 From: Florian Bachinger Date: Thu, 1 Feb 2024 13:52:12 +0100 Subject: [PATCH] rename project to new convention --- ...tributedApplicationTools.sln => Ai.Hgb.Dat.sln} | 0 src/Communication/Broker/IBroker.cs | 4 ++-- src/Communication/Broker/MqttBroker.cs | 4 ++-- src/Communication/Communication.csproj | 4 ++-- src/Communication/DataStructures.cs | 6 +++--- src/Communication/InterfaceStore.cs | 2 +- .../PayloadConverter/IPayloadConverter.cs | 2 +- .../PayloadConverter/JsonPayloadConverter.cs | 2 +- .../PayloadConverter/MemoryPackPayloadConverter.cs | 2 +- .../PayloadConverter/PayloadConverter.cs | 4 ++-- .../PayloadConverter/YamlPayloadConverter.cs | 2 +- src/Communication/Sockets/ApachekafkaSocket.cs | 6 +++--- src/Communication/Sockets/DynamicSocket.cs | 2 +- src/Communication/Sockets/ISocket.cs | 6 +++--- src/Communication/Sockets/MqttSocket.cs | 8 ++++---- src/Communication/Sockets/SharedMemorySocket.cs | 2 +- src/Communication/Sockets/Socket.cs | 4 ++-- src/Configuration/Configuration.csproj | 4 ++-- .../Configurations/BrokerConfiguration.cs | 4 ++-- src/Configuration/Configurations/Configuration.cs | 4 ++-- src/Configuration/Configurations/IConfiguration.cs | 4 ++-- .../Configurations/SocketConfiguration.cs | 4 ++-- src/Configuration/DataStructures.cs | 2 +- src/Configuration/Monitor.cs | 4 ++-- src/Configuration/Parser/IParser.cs | 2 +- src/Configuration/Parser/Parser.cs | 2 +- src/Configuration/Parser/SidlParser.cs | 2 +- src/Configuration/Parser/YamlParser.cs | 2 +- src/DemoApp/Configurations/ConsumerConfig.yml | 2 +- src/DemoApp/Configurations/ServerSocket.yml | 2 +- src/DemoApp/Configurations/SocketConfig.yml | 2 +- src/DemoApp/DataStructures.cs | 2 +- src/DemoApp/DemoApp.csproj | 4 ++-- src/DemoApp/PerformanceTestSuite.cs | 10 +++++----- src/DemoApp/Program.cs | 14 +++++++------- src/Utils/DataStructures.cs | 2 +- src/Utils/Extensions.cs | 2 +- src/Utils/Misc.cs | 2 +- src/Utils/Statistics.cs | 2 +- src/Utils/Utils.csproj | 4 ++-- version.json | 2 +- 41 files changed, 72 insertions(+), 72 deletions(-) rename src/{DistributedApplicationTools.sln => Ai.Hgb.Dat.sln} (100%) diff --git a/src/DistributedApplicationTools.sln b/src/Ai.Hgb.Dat.sln similarity index 100% rename from src/DistributedApplicationTools.sln rename to src/Ai.Hgb.Dat.sln diff --git a/src/Communication/Broker/IBroker.cs b/src/Communication/Broker/IBroker.cs index 55a9987..82bd5c8 100644 --- a/src/Communication/Broker/IBroker.cs +++ b/src/Communication/Broker/IBroker.cs @@ -1,6 +1,6 @@ -using DAT.Configuration; +using Ai.Hgb.Dat.Configuration; -namespace DAT.Communication { +namespace Ai.Hgb.Dat.Communication { public interface IBroker : IDisposable { HostAddress Address { get; } diff --git a/src/Communication/Broker/MqttBroker.cs b/src/Communication/Broker/MqttBroker.cs index a0f6ff4..7538bfc 100644 --- a/src/Communication/Broker/MqttBroker.cs +++ b/src/Communication/Broker/MqttBroker.cs @@ -1,4 +1,4 @@ -using DAT.Configuration; +using Ai.Hgb.Dat.Configuration; using MQTTnet; using MQTTnet.Server; using MQTTnet.AspNetCore; @@ -8,7 +8,7 @@ using Microsoft.Extensions.DependencyInjection; // https://blog.behroozbc.ir/c-mqtt-broker-using-mqttnet-version-4 -namespace DAT.Communication { +namespace Ai.Hgb.Dat.Communication { public sealed class MqttBroker : IBroker { public HostAddress Address { get { return address; } diff --git a/src/Communication/Communication.csproj b/src/Communication/Communication.csproj index 37eaa10..60e1841 100644 --- a/src/Communication/Communication.csproj +++ b/src/Communication/Communication.csproj @@ -3,8 +3,8 @@ net7.0 enable - DAT.$(MSBuildProjectName) - DAT.$(MSBuildProjectName.Replace(" ", "_")) + Ai.Hgb.Dat.$(MSBuildProjectName) + Ai.Hgb.Dat.$(MSBuildProjectName.Replace(" ", "_")) diff --git a/src/Communication/DataStructures.cs b/src/Communication/DataStructures.cs index b894b1d..fae226b 100644 --- a/src/Communication/DataStructures.cs +++ b/src/Communication/DataStructures.cs @@ -1,9 +1,9 @@ -using DAT.Configuration; -using DAT.Utils; +using Ai.Hgb.Dat.Configuration; +using Ai.Hgb.Dat.Utils; using MemoryPack; using System.Net.Mime; -namespace DAT.Communication { +namespace Ai.Hgb.Dat.Communication { public interface IMessage : ICloneable { string ClientId { get; set; } diff --git a/src/Communication/InterfaceStore.cs b/src/Communication/InterfaceStore.cs index 4fad742..fa261b9 100644 --- a/src/Communication/InterfaceStore.cs +++ b/src/Communication/InterfaceStore.cs @@ -1,6 +1,6 @@ using System.Text; -namespace DAT.Communication { +namespace Ai.Hgb.Dat.Communication { public enum CommunicationMode { Publish, diff --git a/src/Communication/PayloadConverter/IPayloadConverter.cs b/src/Communication/PayloadConverter/IPayloadConverter.cs index aa87589..6a5da76 100644 --- a/src/Communication/PayloadConverter/IPayloadConverter.cs +++ b/src/Communication/PayloadConverter/IPayloadConverter.cs @@ -1,4 +1,4 @@ -namespace DAT.Communication { +namespace Ai.Hgb.Dat.Communication { public interface IPayloadConverter { byte[] Serialize(T payload); diff --git a/src/Communication/PayloadConverter/JsonPayloadConverter.cs b/src/Communication/PayloadConverter/JsonPayloadConverter.cs index 76af8c1..ddfea98 100644 --- a/src/Communication/PayloadConverter/JsonPayloadConverter.cs +++ b/src/Communication/PayloadConverter/JsonPayloadConverter.cs @@ -1,7 +1,7 @@ using System.Text; using System.Text.Json; -namespace DAT.Communication { +namespace Ai.Hgb.Dat.Communication { public class JsonPayloadConverter : IPayloadConverter { public T Deserialize(byte[] payload) { if (payload == null) return default(T); diff --git a/src/Communication/PayloadConverter/MemoryPackPayloadConverter.cs b/src/Communication/PayloadConverter/MemoryPackPayloadConverter.cs index 3489f37..ce83789 100644 --- a/src/Communication/PayloadConverter/MemoryPackPayloadConverter.cs +++ b/src/Communication/PayloadConverter/MemoryPackPayloadConverter.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; -namespace DAT.Communication { +namespace Ai.Hgb.Dat.Communication { public class MemoryPackPayloadConverter : IPayloadConverter { public T Deserialize(byte[] payload) { return MemoryPackSerializer.Deserialize(payload); diff --git a/src/Communication/PayloadConverter/PayloadConverter.cs b/src/Communication/PayloadConverter/PayloadConverter.cs index 30fead9..fb321f9 100644 --- a/src/Communication/PayloadConverter/PayloadConverter.cs +++ b/src/Communication/PayloadConverter/PayloadConverter.cs @@ -1,11 +1,11 @@ -using DAT.Configuration; +using Ai.Hgb.Dat.Configuration; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -namespace DAT.Communication { +namespace Ai.Hgb.Dat.Communication { public class PayloadConverter { private static Dictionary payloadFormatDict = new Dictionary diff --git a/src/Communication/PayloadConverter/YamlPayloadConverter.cs b/src/Communication/PayloadConverter/YamlPayloadConverter.cs index 3231cf0..cb8d34b 100644 --- a/src/Communication/PayloadConverter/YamlPayloadConverter.cs +++ b/src/Communication/PayloadConverter/YamlPayloadConverter.cs @@ -5,7 +5,7 @@ using System.Threading.Tasks; using YamlDotNet.Serialization; -namespace DAT.Communication { +namespace Ai.Hgb.Dat.Communication { public class YamlPayloadConverter : IPayloadConverter { private ISerializer ser; diff --git a/src/Communication/Sockets/ApachekafkaSocket.cs b/src/Communication/Sockets/ApachekafkaSocket.cs index 02fff40..8437cd8 100644 --- a/src/Communication/Sockets/ApachekafkaSocket.cs +++ b/src/Communication/Sockets/ApachekafkaSocket.cs @@ -1,13 +1,13 @@ using Confluent.Kafka; -using DAT.Configuration; -using DAT.Utils; +using Ai.Hgb.Dat.Configuration; +using Ai.Hgb.Dat.Utils; using Microsoft.Extensions.Configuration; using MQTTnet; using System.Net; using System.Net.Sockets; using System.Xml.Linq; -namespace DAT.Communication { +namespace Ai.Hgb.Dat.Communication { public class ApachekafkaSocket : ISocket { public SocketConfiguration Configuration { diff --git a/src/Communication/Sockets/DynamicSocket.cs b/src/Communication/Sockets/DynamicSocket.cs index f4d4e69..0e8975c 100644 --- a/src/Communication/Sockets/DynamicSocket.cs +++ b/src/Communication/Sockets/DynamicSocket.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace DAT.Communication.Sockets { +namespace Ai.Hgb.Dat.Communication.Sockets { public class DynamicSocket { // TBD: hosts different sockets and dynamically at runtime (optionally also autonomously) decides which to use diff --git a/src/Communication/Sockets/ISocket.cs b/src/Communication/Sockets/ISocket.cs index 7246cea..75ab948 100644 --- a/src/Communication/Sockets/ISocket.cs +++ b/src/Communication/Sockets/ISocket.cs @@ -1,7 +1,7 @@ -using DAT.Configuration; -using DAT.Utils; +using Ai.Hgb.Dat.Configuration; +using Ai.Hgb.Dat.Utils; -namespace DAT.Communication { +namespace Ai.Hgb.Dat.Communication { /// /// This interface describes the base functionality all socket implementations must provide. /// diff --git a/src/Communication/Sockets/MqttSocket.cs b/src/Communication/Sockets/MqttSocket.cs index fccc201..157b35b 100644 --- a/src/Communication/Sockets/MqttSocket.cs +++ b/src/Communication/Sockets/MqttSocket.cs @@ -1,6 +1,6 @@ using Confluent.Kafka; -using DAT.Configuration; -using DAT.Utils; +using Ai.Hgb.Dat.Configuration; +using Ai.Hgb.Dat.Utils; using MQTTnet; using MQTTnet.Client; using MQTTnet.Extensions.ManagedClient; @@ -9,7 +9,7 @@ using System; using System.Net.Mime; -namespace DAT.Communication { +namespace Ai.Hgb.Dat.Communication { public class MqttSocket : ISocket { public SocketConfiguration Configuration { @@ -139,7 +139,7 @@ public object Clone() { BlockingActionExecution); } - private void Configuration_ConfigurationChanged(object sender, EventArgs e) { + private void Configuration_ConfigurationChanged(object sender, EventArgs e) { Console.WriteLine("Udating socket now..."); var newConfiguration = e.Value as SocketConfiguration; diff --git a/src/Communication/Sockets/SharedMemorySocket.cs b/src/Communication/Sockets/SharedMemorySocket.cs index ee3c17a..1f8d096 100644 --- a/src/Communication/Sockets/SharedMemorySocket.cs +++ b/src/Communication/Sockets/SharedMemorySocket.cs @@ -8,7 +8,7 @@ using System.Threading.Tasks; using YamlDotNet.Core.Tokens; -namespace DAT.Communication.Sockets { +namespace Ai.Hgb.Dat.Communication.Sockets { public class SharedMemorySocket { public string Id { get => id; set => id = value; } diff --git a/src/Communication/Sockets/Socket.cs b/src/Communication/Sockets/Socket.cs index 274a41f..4d110f7 100644 --- a/src/Communication/Sockets/Socket.cs +++ b/src/Communication/Sockets/Socket.cs @@ -1,11 +1,11 @@ -using DAT.Configuration; +using Ai.Hgb.Dat.Configuration; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -namespace DAT.Communication { +namespace Ai.Hgb.Dat.Communication { public class Socket { private static Dictionary socketTypeDict = new Dictionary diff --git a/src/Configuration/Configuration.csproj b/src/Configuration/Configuration.csproj index 25ff97f..3002881 100644 --- a/src/Configuration/Configuration.csproj +++ b/src/Configuration/Configuration.csproj @@ -4,8 +4,8 @@ net7.0 enable enable - DAT.$(MSBuildProjectName) - DAT.$(MSBuildProjectName.Replace(" ", "_")) + Ai.Hgb.Dat.$(MSBuildProjectName) + Ai.Hgb.Dat.$(MSBuildProjectName.Replace(" ", "_")) diff --git a/src/Configuration/Configurations/BrokerConfiguration.cs b/src/Configuration/Configurations/BrokerConfiguration.cs index 33339ba..9ef4903 100644 --- a/src/Configuration/Configurations/BrokerConfiguration.cs +++ b/src/Configuration/Configurations/BrokerConfiguration.cs @@ -1,4 +1,4 @@ -using DAT.Utils; +using Ai.Hgb.Dat.Utils; using System; using System.Collections.Generic; using System.Linq; @@ -7,7 +7,7 @@ using System.Threading.Tasks; using System.Xml.Linq; -namespace DAT.Configuration { +namespace Ai.Hgb.Dat.Configuration { public class BrokerConfiguration : IConfiguration { public string Type { get; set; } public string Url { get; set; } diff --git a/src/Configuration/Configurations/Configuration.cs b/src/Configuration/Configurations/Configuration.cs index 4f0cb23..ef357b4 100644 --- a/src/Configuration/Configurations/Configuration.cs +++ b/src/Configuration/Configurations/Configuration.cs @@ -1,11 +1,11 @@ -using DAT.Utils; +using Ai.Hgb.Dat.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -namespace DAT.Configuration { +namespace Ai.Hgb.Dat.Configuration { public class Configuration : IConfiguration { public string Type { get; set; } public string Url { get; set; } diff --git a/src/Configuration/Configurations/IConfiguration.cs b/src/Configuration/Configurations/IConfiguration.cs index 55596fb..33fe6c4 100644 --- a/src/Configuration/Configurations/IConfiguration.cs +++ b/src/Configuration/Configurations/IConfiguration.cs @@ -1,6 +1,6 @@ -using DAT.Utils; +using Ai.Hgb.Dat.Utils; -namespace DAT.Configuration { +namespace Ai.Hgb.Dat.Configuration { public interface IConfiguration : ICloneable { string Type { get; set; } diff --git a/src/Configuration/Configurations/SocketConfiguration.cs b/src/Configuration/Configurations/SocketConfiguration.cs index 30fd348..db3c573 100644 --- a/src/Configuration/Configurations/SocketConfiguration.cs +++ b/src/Configuration/Configurations/SocketConfiguration.cs @@ -1,11 +1,11 @@ -using DAT.Utils; +using Ai.Hgb.Dat.Utils; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; -namespace DAT.Configuration { +namespace Ai.Hgb.Dat.Configuration { public class SocketConfiguration : IConfiguration { public string Type { get; set; } public string Url { get; set; } diff --git a/src/Configuration/DataStructures.cs b/src/Configuration/DataStructures.cs index 02d1f76..e833e27 100644 --- a/src/Configuration/DataStructures.cs +++ b/src/Configuration/DataStructures.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; using YamlDotNet.Serialization; -namespace DAT.Configuration { +namespace Ai.Hgb.Dat.Configuration { public class HostAddress { public HostAddress() { } diff --git a/src/Configuration/Monitor.cs b/src/Configuration/Monitor.cs index 6db6f77..c20548c 100644 --- a/src/Configuration/Monitor.cs +++ b/src/Configuration/Monitor.cs @@ -7,7 +7,7 @@ using System.Threading.Tasks; using YamlDotNet.Core; -namespace DAT.Configuration { +namespace Ai.Hgb.Dat.Configuration { public class Monitor : BackgroundService where T : IConfiguration { public T Configuration { get { return configuration; } set { configuration = value; } } public IParser Parser { get { return parser; } private set { parser = value; } } @@ -25,7 +25,7 @@ public Monitor(IParser parser) { } public void Initialize(string uri) { - parser = DAT.Configuration.Parser.GetParser(uri); + parser = Ai.Hgb.Dat.Configuration.Parser.GetParser(uri); configuration = parser.Parse(uri); monitorIntervalMilliseconds = Configuration.MonitorIntervalMilliseconds; cts = new CancellationTokenSource(); diff --git a/src/Configuration/Parser/IParser.cs b/src/Configuration/Parser/IParser.cs index 53f31bb..d863336 100644 --- a/src/Configuration/Parser/IParser.cs +++ b/src/Configuration/Parser/IParser.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace DAT.Configuration { +namespace Ai.Hgb.Dat.Configuration { public interface IParser { IConfiguration Parse(string uri); diff --git a/src/Configuration/Parser/Parser.cs b/src/Configuration/Parser/Parser.cs index 4ef58b4..555df44 100644 --- a/src/Configuration/Parser/Parser.cs +++ b/src/Configuration/Parser/Parser.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace DAT.Configuration { +namespace Ai.Hgb.Dat.Configuration { public static class Parser { private static YamlParser yamlParser = null; diff --git a/src/Configuration/Parser/SidlParser.cs b/src/Configuration/Parser/SidlParser.cs index 80760e4..0a311dd 100644 --- a/src/Configuration/Parser/SidlParser.cs +++ b/src/Configuration/Parser/SidlParser.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace DAT.Configuration { +namespace Ai.Hgb.Dat.Configuration { public class SidlParser : IParser { public IConfiguration Parse(string uri) { throw new NotImplementedException(); diff --git a/src/Configuration/Parser/YamlParser.cs b/src/Configuration/Parser/YamlParser.cs index 9d2e8fb..3c5c5ff 100644 --- a/src/Configuration/Parser/YamlParser.cs +++ b/src/Configuration/Parser/YamlParser.cs @@ -6,7 +6,7 @@ using YamlDotNet.Serialization; using YamlDotNet.Serialization.NamingConventions; -namespace DAT.Configuration { +namespace Ai.Hgb.Dat.Configuration { public class YamlParser : IParser { private ISerializer ser; diff --git a/src/DemoApp/Configurations/ConsumerConfig.yml b/src/DemoApp/Configurations/ConsumerConfig.yml index 3b3b8ca..2daed58 100644 --- a/src/DemoApp/Configurations/ConsumerConfig.yml +++ b/src/DemoApp/Configurations/ConsumerConfig.yml @@ -21,4 +21,4 @@ PayloadType: json DefaultSubscriptionOptions: Topic: docs QosLevel: ExactlyOnce - ContentTypeFullName: DAT.DemoApp.Document + ContentTypeFullName: Ai.Hgb.Dat.DemoApp.Document diff --git a/src/DemoApp/Configurations/ServerSocket.yml b/src/DemoApp/Configurations/ServerSocket.yml index 9eb40e7..e0587b6 100644 --- a/src/DemoApp/Configurations/ServerSocket.yml +++ b/src/DemoApp/Configurations/ServerSocket.yml @@ -26,7 +26,7 @@ DefaultPublicationOptions: DefaultSubscriptionOptions: Topic: docs QosLevel: ExactlyOnce - ContentTypeFullName: DAT.DemoApp.Document + ContentTypeFullName: Ai.Hgb.Dat.DemoApp.Document DefaultRequestOptions: Topic: docs diff --git a/src/DemoApp/Configurations/SocketConfig.yml b/src/DemoApp/Configurations/SocketConfig.yml index d340121..cfb9cb2 100644 --- a/src/DemoApp/Configurations/SocketConfig.yml +++ b/src/DemoApp/Configurations/SocketConfig.yml @@ -26,7 +26,7 @@ DefaultPublicationOptions: DefaultSubscriptionOptions: Topic: docs QosLevel: ExactlyOnce - ContentTypeFullName: DAT.DemoApp.Document + ContentTypeFullName: Ai.Hgb.Dat.DemoApp.Document DefaultRequestOptions: Topic: docs diff --git a/src/DemoApp/DataStructures.cs b/src/DemoApp/DataStructures.cs index eef09de..184dcd0 100644 --- a/src/DemoApp/DataStructures.cs +++ b/src/DemoApp/DataStructures.cs @@ -5,7 +5,7 @@ using System.Text; using System.Threading.Tasks; -namespace DAT.DemoApp { +namespace Ai.Hgb.Dat.DemoApp { public struct Document { public string Id { get; set; } diff --git a/src/DemoApp/DemoApp.csproj b/src/DemoApp/DemoApp.csproj index c1ecd5b..809d319 100644 --- a/src/DemoApp/DemoApp.csproj +++ b/src/DemoApp/DemoApp.csproj @@ -4,8 +4,8 @@ Exe net7.0 enable - DAT.$(MSBuildProjectName) - DAT.$(MSBuildProjectName.Replace(" ", "_")) + Ai.Hgb.Dat.$(MSBuildProjectName) + Ai.Hgb.Dat.$(MSBuildProjectName.Replace(" ", "_")) true diff --git a/src/DemoApp/PerformanceTestSuite.cs b/src/DemoApp/PerformanceTestSuite.cs index 600def5..0a9d979 100644 --- a/src/DemoApp/PerformanceTestSuite.cs +++ b/src/DemoApp/PerformanceTestSuite.cs @@ -1,7 +1,7 @@ -using DAT.Communication; -using DAT.Communication.Sockets; -using DAT.Configuration; -using DAT.Utils; +using Ai.Hgb.Dat.Communication; +using Ai.Hgb.Dat.Communication.Sockets; +using Ai.Hgb.Dat.Configuration; +using Ai.Hgb.Dat.Utils; using System; using System.Collections.Generic; using System.Diagnostics; @@ -9,7 +9,7 @@ using System.Text; using System.Threading.Tasks; -namespace DAT.DemoApp { +namespace Ai.Hgb.Dat.DemoApp { public class PerformanceTestSuite { public static void RunSuite() { diff --git a/src/DemoApp/Program.cs b/src/DemoApp/Program.cs index 484218c..f99b2db 100644 --- a/src/DemoApp/Program.cs +++ b/src/DemoApp/Program.cs @@ -1,6 +1,6 @@ -using DAT.Communication; -using DAT.Communication.Sockets; -using DAT.Configuration; +using Ai.Hgb.Dat.Communication; +using Ai.Hgb.Dat.Communication.Sockets; +using Ai.Hgb.Dat.Configuration; using Microsoft.AspNetCore.SignalR; using MQTTnet; using MQTTnet.Client; @@ -10,9 +10,9 @@ using System.Text.Json; using System.Text; using System.Runtime.InteropServices; -using DAT.Utils; +using Ai.Hgb.Dat.Utils; -namespace DAT.DemoApp { +namespace Ai.Hgb.Dat.DemoApp { public class Program { @@ -111,8 +111,8 @@ public static void RunDemo_ConfigurationMonitorBasedProducerConsumer() { int jobsPerProducer = 10; ce = new CountdownEvent(jobsPerProducer); - var pMonitor = new DAT.Configuration.Monitor(); - var cMonitor = new DAT.Configuration.Monitor(); + var pMonitor = new Ai.Hgb.Dat.Configuration.Monitor(); + var cMonitor = new Ai.Hgb.Dat.Configuration.Monitor(); pMonitor.Initialize(@"..\..\..\Configurations\ProducerConfig.yml"); cMonitor.Initialize(@"..\..\..\Configurations\ConsumerConfig.yml"); diff --git a/src/Utils/DataStructures.cs b/src/Utils/DataStructures.cs index 8816dac..cc2f0a3 100644 --- a/src/Utils/DataStructures.cs +++ b/src/Utils/DataStructures.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace DAT.Utils { +namespace Ai.Hgb.Dat.Utils { public class EventArgs : EventArgs { public T Value { get; private set; } diff --git a/src/Utils/Extensions.cs b/src/Utils/Extensions.cs index 9d0b9ad..2bdc658 100644 --- a/src/Utils/Extensions.cs +++ b/src/Utils/Extensions.cs @@ -1,4 +1,4 @@ -namespace DAT.Utils { +namespace Ai.Hgb.Dat.Utils { public static class Extensions { public static List Clone(this IEnumerable listToClone) where T : ICloneable { return listToClone.Select(item => (T)item.Clone()).ToList(); diff --git a/src/Utils/Misc.cs b/src/Utils/Misc.cs index 6dad11c..5919765 100644 --- a/src/Utils/Misc.cs +++ b/src/Utils/Misc.cs @@ -1,4 +1,4 @@ -namespace DAT.Utils { +namespace Ai.Hgb.Dat.Utils { public class Misc { private readonly static string charset = "abcdefghijklmnopqrstuvwxyz0123456789"; diff --git a/src/Utils/Statistics.cs b/src/Utils/Statistics.cs index e73f76e..54c2de3 100644 --- a/src/Utils/Statistics.cs +++ b/src/Utils/Statistics.cs @@ -4,7 +4,7 @@ using System.Text; using System.Threading.Tasks; -namespace DAT.Utils { +namespace Ai.Hgb.Dat.Utils { public static class Statistics { public static int Max(int a, int b) { return a > b ? a : b; diff --git a/src/Utils/Utils.csproj b/src/Utils/Utils.csproj index 151b926..05b0340 100644 --- a/src/Utils/Utils.csproj +++ b/src/Utils/Utils.csproj @@ -4,8 +4,8 @@ net7.0 enable enable - DAT.$(MSBuildProjectName) - DAT.$(MSBuildProjectName.Replace(" ", "_")) + Ai.Hgb.Dat.$(MSBuildProjectName) + Ai.Hgb.Dat.$(MSBuildProjectName.Replace(" ", "_")) diff --git a/version.json b/version.json index c6cdc20..ea76bf0 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json", - "version": "0.6-prerelease", + "version": "0.1-prerelease", "publicReleaseRefSpec": [ "^refs/heads/release/v\\d+(?:\\.\\d+)?$" ],