Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
AdminServiceModule.cs
1using System.Threading.Tasks;
4
6{
10 [Singleton]
12 {
13 private AdminService instance;
14
19 {
20 }
21
25 public Task Start()
26 {
27 Gateway.HttpServer.Register(this.instance = new AdminService("/Admin"));
28 return Task.CompletedTask;
29 }
30
34 public Task Stop()
35 {
36 Gateway.HttpServer?.Unregister(this.instance);
37 this.instance = null;
38
39 return Task.CompletedTask;
40 }
41 }
42}
Static class managing the runtime environment of the IoT Gateway.
Definition: Gateway.cs:126
static HttpServer HttpServer
HTTP Server
Definition: Gateway.cs:3299
Web service that can be used to execute script on the server.
Definition: AdminService.cs:14
Pluggable module registering the script service to the web server.
AdminServiceModule()
Pluggable module registering the script service to the web server.
Interface for late-bound modules loaded at runtime.
Definition: IModule.cs:9