Ejemplo n.º 1
0
		public static void Main(string[] arg)
		{
			var host = new ServiceHost(11885);
			host.Container.RegisterService(new MyRemoteService(), false);
			Console.WriteLine("Registed service");
			host.Open();
			Console.ReadLine();
			Console.WriteLine("Closing");
			host.Close();
		}
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
			ServiceHost host = new ServiceHost(11885);
			host.Container.RegisterService(new ServiceCache(), false);
			Console.WriteLine("Register....");
			host.Open();
			Console.WriteLine("Open");
        	Console.ReadKey();
			Console.WriteLine("close");
			host.Close();
        }