摘要:
本文讲述了如何Hosting the service。
。。。。。。。。。
Type type = typeof(Hello);
using (ServiceHost host = new ServiceHost(type))
{
host.Open();
Console.WriteLine("The service is available. Press any key to continue...");
Console.ReadKey();
host.Close();
}
阅读全文