public static void Main()
        {
            var service = new SayHelloService();
            var host = new WebServiceHost(service, BaseAddress);

            host.Description.Behaviors.Add(new ServiceThrottlingBehavior { MaxConcurrentCalls = Int32.MaxValue });

            try
            {
                host.Open();
                Console.WriteLine("Listening...");
                Console.ReadKey(true);
            }
            finally
            {
                host.Close();
            }
        }
Exemple #2
0
        public static void Main()
        {
            var service = new SayHelloService();
            var host    = new WebServiceHost(service, BaseAddress);

            host.Description.Behaviors.Add(new ServiceThrottlingBehavior {
                MaxConcurrentCalls = Int32.MaxValue
            });

            try
            {
                host.Open();
                Console.WriteLine("Listening...");
                Console.ReadKey(true);
            }
            finally
            {
                host.Close();
            }
        }