| 12345678910111213141516171819202122232425262728293031323334353637 |
- #region File Description
- //-----------------------------------------------------------------------------
- // Program.cs
- //
- // Microsoft XNA Community Game Platform
- // Copyright (C) Microsoft Corporation. All rights reserved.
- //-----------------------------------------------------------------------------
- #endregion
- #region Using Statements
- using System;
- using System.ServiceModel;
- using TicTacToeServices;
- #endregion
- namespace Server
- {
- class Program
- {
- static void Main(string[] args)
- {
- using (ServiceHost host = new ServiceHost(typeof(TicTacToeService)))
- {
- host.Open();
- Console.WriteLine("TicTacToe server is up...");
- Console.WriteLine("Press 'Enter' key to exit");
- Console.ReadLine();
- }
- Console.WriteLine("Exiting....");
- }
- }
- }
|