Add authorization for MQTTnet.Server

This commit is contained in:
Christian Kratky
2019-06-09 00:10:26 +02:00
parent 1c004ead6d
commit ffc1d950da
27 changed files with 480 additions and 113 deletions
@@ -8,14 +8,17 @@ namespace MQTTnet.Server.Scripting
{
private readonly ScriptScope _scriptScope;
public PythonScriptInstance(string name, ScriptScope scriptScope)
public PythonScriptInstance(string uid, string path, ScriptScope scriptScope)
{
_scriptScope = scriptScope;
Uid = uid;
Path = path;
Name = name;
_scriptScope = scriptScope;
}
public string Name { get; }
public string Uid { get; }
public string Path { get; }
public bool InvokeOptionalFunction(string name, params object[] parameters)
{