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(); }
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(); }