| 123456789101112131415161718192021222324252627282930 |
- using System;
- using System.Net;
- using System.Net.ApiService;
- using System.Fire.Ini;
- using Intensi.Intents;
- namespace Intensi {
- class Program {
- // Intent Handler
- // Behandelt die Intents und ruft Speech, Sozi und weitere Services auf
- public static iniHandle config;
- static void Main(string[] args) {
- config = new iniHandle("config/services.conf");
- ushort port = config["Intensi"]["Port"].UInt16;
- if (port == 0)
- port = 8001;
- ApiServer api = new ApiServer("./www",port);
- api.RegisterClass(typeof(Jokes));
- System.ConsoleApp.ConsoleAdvanced.Run("Intensi");
- }
- }
- }
|