Stop() public method

public Stop ( ) : void
return void
Esempio n. 1
0
 static void Main(string[] args)
 {
     QuoteServer qs = new QuoteServer(@"c:\ProCSharp\WinServices\quotes.txt", 4567);
     qs.Start();
     Console.WriteLine("Hit return to exit");
     Console.ReadLine();
     qs.Stop();
 }
        public static void Main()
        {
            var qs = new QuoteServer("quotes.txt", 4567);
            qs.Start();
            WriteLine("Hit return to exit");
            ReadLine();
            qs.Stop();

        }
Esempio n. 3
0
        static void Main(string[] args)
        {
            QuoteServer qs = new QuoteServer(@"c:\ProCSharp\WinServices\quotes.txt", 4567);

            qs.Start();
            Console.WriteLine("Hit return to exit");
            Console.ReadLine();
            qs.Stop();
        }
 protected override void OnStop()
 {
     quoteServer.Stop();
 }