Rewrite Bot-Utils so that handlers are threaded
Tiny fix in INIReader
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using BlubbFish.Utils.IoT.Bots.Events;
|
||||
|
||||
namespace BlubbFish.Utils.IoT.Bots.Moduls {
|
||||
@@ -49,6 +50,14 @@ namespace BlubbFish.Utils.IoT.Bots.Moduls {
|
||||
|
||||
public virtual void SetInterconnection(String param, Action<Object> hook, Object data) { }
|
||||
|
||||
public abstract void EventLibSetter();
|
||||
|
||||
protected abstract void LibUpadteThread(Object state);
|
||||
|
||||
protected void HandleLibUpdate(Object sender, EventArgs e) {
|
||||
ThreadPool.QueueUserWorkItem(this.LibUpadteThread, e);
|
||||
}
|
||||
|
||||
public abstract void Dispose();
|
||||
|
||||
public void SetConfig(Dictionary<String, Dictionary<String, String>> newconf) {
|
||||
|
||||
Reference in New Issue
Block a user