diff --git a/Bot-Utils/Bot-Utils.csproj b/Bot-Utils/Bot-Utils.csproj index 6177c6c..f434382 100644 --- a/Bot-Utils/Bot-Utils.csproj +++ b/Bot-Utils/Bot-Utils.csproj @@ -5,19 +5,20 @@ BlubbFish.Utils.IoT.Bots Bot-Utils Bots.IoT.Utils.BlubbFish - 1.2.2 - 1.2.2 - 1.2.2 + 1.2.3 + 1.2.3 + 1.2.3 de-DE Bot-Utils are helpers for programming a bot BlubbFish BlubbFish - Copyright © BlubbFish 2018 - 22.08.2021 + Copyright © BlubbFish 2018 - 09.01.2022 LICENSE http://git.blubbfish.net/vs_utils/Bot-Utils http://git.blubbfish.net/vs_utils/Bot-Utils.git git - 1.2.2 Going to netcore + 1.2.3 Tiny Refactoring +1.2.2 Going to netcore 1.2.1 When using Dispose, kill also mqtt connection and other tiny fixes 1.2.0 Refactor Bot to ABot and refere MultiSourceBot, Webserver and Bot to it. Add MultiSourceBot. Rewrite Mqtt module so that it not need to watch the connection. 1.1.9 Modify Output of SendFileResponse diff --git a/Bot-Utils/Moduls/Mqtt.cs b/Bot-Utils/Moduls/Mqtt.cs index 144bcce..b3d5f13 100644 --- a/Bot-Utils/Moduls/Mqtt.cs +++ b/Bot-Utils/Moduls/Mqtt.cs @@ -25,13 +25,7 @@ namespace BlubbFish.Utils.IoT.Bots.Moduls { } } - protected void Connect() { - if(!this.config.ContainsKey("settings")) { - throw new ArgumentException("Setting section [settings] is missing!"); - } else { - this.mqtt = ABackend.GetInstance(this.config["settings"], ABackend.BackendType.Data); - } - } + protected void Connect() => this.mqtt = !this.config.ContainsKey("settings") ? throw new ArgumentException("Setting section [settings] is missing!") : ABackend.GetInstance(this.config["settings"], ABackend.BackendType.Data); protected void Disconnect() => this.mqtt.Dispose(); #endregion diff --git a/Bot-Utils/Moduls/Overtaker.cs b/Bot-Utils/Moduls/Overtaker.cs index 3031c67..25da35e 100644 --- a/Bot-Utils/Moduls/Overtaker.cs +++ b/Bot-Utils/Moduls/Overtaker.cs @@ -22,7 +22,7 @@ namespace BlubbFish.Utils.IoT.Bots.Moduls { } } - protected void SetValues(Object sender, String name, Dictionary dictionary) { + protected void SetValues(Object sender, String _, Dictionary dictionary) { String from = dictionary["from"]; String[] source = from.Split(':'); if (source.Length != 2) { diff --git a/Changelog.md b/Changelog.md index b9c05ad..66f2a0b 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,13 +1,23 @@ -## 1.2.2 - Going to netcore +# Changelog + +## 1.2.3 - 2022-01-09 - Tiny Refactoring +### New Features +### Bugfixes +### Changes +* Cleanup Changelog +* Tiny Refactorings + +## 1.2.2 - 2021-08-22 - Going to netcore ### New Features * Split Wbserver to AWebserver and AWebserverDataBackend * Add mp4 as binary content * make a mirror of this repo on github +### Bugfixes ### Changes * change to c+ newer coding style * mograde to c# netcore 3.1 -## 1.2.1 +## 1.2.1 - 2019-08-30 - When using Dispose, kill also mqtt connection and other tiny fixes ### New Features * Add LICENSE, CONTRIBUTING.md and README.md ### Bugfixes @@ -15,51 +25,72 @@ ### Changes * A bit more debugging -## 1.2.0 +## 1.2.0 - 2019-05-27 - Refactor Bot to ABot and refere MultiSourceBot ### New Features * Add MultiSourceBot* * Refere MultiSourceBot, Webserver and Bot to it. +### Bugfixes ### Changes * Refactor Bot to ABot * Rewrite Mqtt module so that it not need to watch the connection. -## 1.1.9 +## 1.1.9 - 2019-04-21 - Modify Output of SendFileResponse ### New Features * Modify Output of SendFileResponse +### Bugfixes +### Changes -## 1.1.8 +## 1.1.8 - 2019-04-15 - Add logger to Webserver Class ### New Features * Add logger to Webserver Class +### Bugfixes +### Changes -## 1.1.7 +## 1.1.7 - 2019-04-14 - REQUEST_URL_HOST +### New Features +### Bugfixes ### Changes * Restrucutre loading, so that all is init and after the listener is started, REQUEST_URL_HOST gives now host and port -## 1.1.6 +## 1.1.6 - 2019-04-03 - Refactoring and bugfixing ### New Features * SendFileResponse with a parameter for the folder * add function that parse post params +### Bugfixes +### Changes -## 1.1.5 +## 1.1.5 - 2019-03-27 - add a function to send an object as json directly ### New Features * add a function to send an object as json directly +### Bugfixes +### Changes -## 1.1.4 +## 1.1.4 - 2019-03-13 - add Woff as Binary type ### New Features * add Woff as Binary type +### Bugfixes +### Changes -## 1.1.3 +## 1.1.3 - 2019-03-10 - Variables parsing now as a String +### New Features +### Bugfixes ### Changes * Variables parsing now as a String -## 1.1.2 +## 1.1.2 - 2019-03-08 - Fixing bug for Contenttype +### New Features ### Bugfixes * Fixing bug for Contenttype +### Changes -## 1.1.1 +## 1.1.1 - 2019-02-17 - Update to local librarys +### New Features +### Bugfixes ### Changes * Update to local librarys -## 1.1.0 +## 1.1.0 - 2019-02-14 - Remove Helper from Bot-Utils ### New Features -* Remove Helper from Bot-Utils \ No newline at end of file +* Remove Helper from Bot-Utils +### Bugfixes +### Changes