Start() public method

public Start ( ) : void
return void
Ejemplo 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();

        }
Ejemplo 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 OnStart(string[] args)
    {
      quoteServer = new QuoteServer(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, QUOTESFILE), 5678);
      quoteServer.Start();

    }
Ejemplo n.º 5
0
 protected override void OnStart(string[] args)
 {
     quoteServer = new QuoteServer(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "quotes.txt"), 5678);
     quoteServer.Start();
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Set things in motion so your service can do its work.
 /// </summary>
 protected override void OnStart(string[] args)
 {
     quoteServer = new QuoteServer(@"C:\ProCSharp\WinServices\quotes.txt", 5678);
     quoteServer.Start();
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Set things in motion so your service can do its work.
 /// </summary>
 protected override void OnStart(string[] args)
 {
     quoteServer = new QuoteServer(@"C:\ProCSharp\WinServices\quotes.txt", 5678);
     quoteServer.Start();
 }