| 123456789101112131415161718192021222324252627282930 |
- using System;
- using System.Net.ApiService;
- using System.Fire.Ini;
- namespace GregorCalendus {
- class Program {
- public static iniHandle config;
- static void Main(string[] args) {
- config = new iniHandle("config/services.conf");
- ushort port = config["GregorCalendus"]["Port"].UInt16;
- if (port == 0)
- port = 8005;
- ApiServer api = new ApiServer("./www", port);
- api.Request += Api_Request;
- api.Start();
- System.ConsoleApp.ConsoleAdvanced.Run("Gregor");
- }
- private static void Api_Request(object sender, RequestEventArgs e) {
- }
- }
- }
|