예제 #1
0
        public static void Main(string[] args)
        {
            LogManager.LogFactory = new ConsoleLogFactory();

            var appHost = new Monobot.Service();
            appHost.Init();
            appHost.Start("http://*:8080/");

            "\n\nListening on http://*:8080/..".Print();
            "Type Ctrl+C to quit..".Print();
            Thread.Sleep(Timeout.Infinite);
        }
예제 #2
0
        public static void Main(string[] args)
        {
            LogManager.LogFactory = new ConsoleLogFactory();

            var appHost = new Monobot.Service();

            appHost.Init();
            appHost.Start("http://*:8080/");

            "\n\nListening on http://*:8080/..".Print();
            "Type Ctrl+C to quit..".Print();
            Thread.Sleep(Timeout.Infinite);
        }