Example #1
0
        static void Main()
        {
            var quoteServer = new QuoteServer.QuoteServer(QuotesFileName, Port);

            quoteServer.Start();
            Console.WriteLine("Hit return to exit");
            Console.ReadLine();
            quoteServer.Stop();
        }
Example #2
0
 protected override void OnStop() // Останов службы
 {
     _quoteServer.Stop();
 }