diff --git a/Bot-Utils/Bot-Utils.csproj b/Bot-Utils/Bot-Utils.csproj
index d603c05..c66700b 100644
--- a/Bot-Utils/Bot-Utils.csproj
+++ b/Bot-Utils/Bot-Utils.csproj
@@ -64,6 +64,11 @@
+
+
+
+
+
{91a14cd2-2940-4500-8193-56d37edddbaa}
diff --git a/Bot-Utils/Bot-Utils_Core.csproj b/Bot-Utils/Bot-Utils_Core.csproj
new file mode 100644
index 0000000..47330d5
--- /dev/null
+++ b/Bot-Utils/Bot-Utils_Core.csproj
@@ -0,0 +1,52 @@
+
+
+
+ netcoreapp3.0
+ BlubbFish.Utils.IoT.Bots
+ Bot-Utils
+ Bots.IoT.Utils.BlubbFish
+ 1.2.1
+ 1.2.1
+ 1.2.1
+ de-DE
+ Bot-Utils are helpers for programming a bot
+ BlubbFish
+ BlubbFish
+ Copyright © BlubbFish 2018 - 30.08.2019
+ LICENSE
+ http://git.blubbfish.net/vs_utils/Bot-Utils
+ http://git.blubbfish.net/vs_utils/Bot-Utils.git
+ git
+ 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
+1.1.8 Add logger to Webserver Class
+1.1.7 Restrucutre loading, so that all is init and after the listener is started, REQUEST_URL_HOST gives now host and port
+1.1.6 rename functions and make SendFileResponse with a parameter for the folder (default resources), also put returntype boolean, add function that parse post params, if path is a dictionary try to load index.html
+1.1.5 add a function to send an object as json directly
+1.1.4 add Woff as Binary type
+1.1.3 Variables parsing now as a String
+1.1.2 Fixing bug for Contenttype
+1.1.1 Update to local librarys
+1.1.0 Remove Helper from Bot-Utils
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ True
+
+
+
+
+
diff --git a/Bot-Utils/Events/ModulEventArgs.cs b/Bot-Utils/Events/ModulEventArgs.cs
index cabef82..26d4696 100644
--- a/Bot-Utils/Events/ModulEventArgs.cs
+++ b/Bot-Utils/Events/ModulEventArgs.cs
@@ -14,8 +14,6 @@ namespace BlubbFish.Utils.IoT.Bots.Events {
public String Property { get; protected set; }
public String Value { get; protected set; }
public String Source { get; protected set; }
- public override String ToString() {
- return this.Source + ": " + this.Address + " set " + this.Property + " to " + this.Value;
- }
+ public override String ToString() => this.Source + ": " + this.Address + " set " + this.Property + " to " + this.Value;
}
}
diff --git a/Bot-Utils/Events/MqttEvent.cs b/Bot-Utils/Events/MqttEvent.cs
index 4af1a4d..67298f1 100644
--- a/Bot-Utils/Events/MqttEvent.cs
+++ b/Bot-Utils/Events/MqttEvent.cs
@@ -9,8 +9,6 @@ namespace BlubbFish.Utils.IoT.Bots.Events {
this.Value = text;
this.Source = "MQTT";
}
- public override String ToString() {
- return this.Source + ": on " + this.Address + " set " + this.Value;
- }
+ public override String ToString() => this.Source + ": on " + this.Address + " set " + this.Value;
}
}
diff --git a/Bot-Utils/Events/SenmlEvent.cs b/Bot-Utils/Events/SenmlEvent.cs
index e3071d5..71c68be 100644
--- a/Bot-Utils/Events/SenmlEvent.cs
+++ b/Bot-Utils/Events/SenmlEvent.cs
@@ -9,8 +9,6 @@ namespace BlubbFish.Utils.IoT.Bots.Events {
this.Value = text;
this.Source = "Senml";
}
- public override String ToString() {
- return this.Source + ": on " + this.Address + " set " + this.Value;
- }
+ public override String ToString() => this.Source + ": on " + this.Address + " set " + this.Value;
}
}
diff --git a/Bot-Utils/Events/StatusPollingEvent.cs b/Bot-Utils/Events/StatusPollingEvent.cs
index 273fc2d..9d602e9 100644
--- a/Bot-Utils/Events/StatusPollingEvent.cs
+++ b/Bot-Utils/Events/StatusPollingEvent.cs
@@ -11,8 +11,6 @@ namespace BlubbFish.Utils.IoT.Bots.Events {
this.Source = "POLLING";
}
- public override String ToString() {
- return this.Source + ": " + this.Value + " on " + this.Address;
- }
+ public override String ToString() => this.Source + ": " + this.Value + " on " + this.Address;
}
}
diff --git a/Bot-Utils/Moduls/AModul.cs b/Bot-Utils/Moduls/AModul.cs
index 59c90cd..af77bbe 100644
--- a/Bot-Utils/Moduls/AModul.cs
+++ b/Bot-Utils/Moduls/AModul.cs
@@ -39,7 +39,7 @@ namespace BlubbFish.Utils.IoT.Bots.Moduls {
if (this.HasConfig && this.ConfigPublic) {
Dictionary> ret = new Dictionary>(this.config);
if (ret.ContainsKey("modul")) {
- ret.Remove("modul");
+ _ = ret.Remove("modul");
}
return ret;
}
@@ -61,7 +61,7 @@ namespace BlubbFish.Utils.IoT.Bots.Moduls {
public void SetConfig(Dictionary> newconf) {
if (this.HasConfig && this.ConfigPublic) {
if (newconf.ContainsKey("modul")) {
- newconf.Remove("modul");
+ _ = newconf.Remove("modul");
}
if (this.config.ContainsKey("modul")) {
newconf.Add("modul", this.config["modul"]);
diff --git a/Bot-Utils/Moduls/CronJob.cs b/Bot-Utils/Moduls/CronJob.cs
index dcd6fc8..cc00e69 100644
--- a/Bot-Utils/Moduls/CronJob.cs
+++ b/Bot-Utils/Moduls/CronJob.cs
@@ -30,7 +30,7 @@ namespace BlubbFish.Utils.IoT.Bots.Moduls {
#region Cronjobrunner
protected void Runner() {
- Thread.Sleep(DateTime.Now.AddMinutes(1).AddSeconds(DateTime.Now.Second * (-1)).AddMilliseconds(DateTime.Now.Millisecond * (-1)) - DateTime.Now);
+ Thread.Sleep(DateTime.Now.AddMinutes(1).AddSeconds(DateTime.Now.Second * -1).AddMilliseconds(DateTime.Now.Millisecond * -1) - DateTime.Now);
while (true) {
if (this.crontime.Minute != DateTime.Now.Minute) {
this.crontime = DateTime.Now;
@@ -140,9 +140,7 @@ namespace BlubbFish.Utils.IoT.Bots.Moduls {
#endregion
#region AModul
- public override void SetInterconnection(String cron, Action