예제 #1
0
        public static void Test()
        {
            var context = new ServiceContext("MainService", "Description", "http://www.localhost.com", "svc");

            context.AddMethod(new ServiceMethod
            {
                Name        = "Method1",
                Description = "Description"
            });

            var svc = context.CreateWcfService("http://www.localhost.com", new Uri("http://localhost:8001"));

            svc.Start();
        }