Пример #1
0
        static void Main(string[] args)
        {
            string baseAddress = Startup.Start();

            Console.WriteLine("Listening at {0}", baseAddress);
            Console.WriteLine("Return to close");
            Console.ReadLine();
            Startup.Shutdown();
        }
Пример #2
0
        protected override void OnStart(string[] args)
        {
            string baseAddress = Startup.Start();

            WriteEventLog(EventLogEntryType.Information, "Listening at {0}", baseAddress);
        }