Program.cs 706 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Net;
  3. using System.Net.ApiService;
  4. using System.Fire.Ini;
  5. using Intensi.Intents;
  6. namespace Intensi {
  7. class Program {
  8. // Intent Handler
  9. // Behandelt die Intents und ruft Speech, Sozi und weitere Services auf
  10. public static iniHandle config;
  11. static void Main(string[] args) {
  12. config = new iniHandle("config/services.conf");
  13. ushort port = config["Intensi"]["Port"].UInt16;
  14. if (port == 0)
  15. port = 8001;
  16. ApiServer api = new ApiServer("./www",port);
  17. api.RegisterClass(typeof(Jokes));
  18. System.ConsoleApp.ConsoleAdvanced.Run("Intensi");
  19. }
  20. }
  21. }