예제 #1
0
        public override void Init()
        {
            var serviceInstance = new WcfDebugService(this);
            var host            = new ServiceHost(serviceInstance);
            var binding         = Binder.GetBinding();

            host.AddServiceEndpoint(typeof(IDebuggerService), binding, Binder.GetDebuggerUri(_port));
            _serviceHost = host;
            host.Open();
        }
예제 #2
0
        public override void Init()
        {
            var serviceInstance = new WcfDebugService(this);
            var host            = new ServiceHost(serviceInstance);

            //var binding = (NetTcpBinding)Binder.GetBinding();
            //binding.MaxBufferPoolSize = DebuggerSettings.MAX_BUFFER_SIZE;
            //binding.MaxBufferSize = DebuggerSettings.MAX_BUFFER_SIZE;
            //binding.MaxReceivedMessageSize = DebuggerSettings.MAX_BUFFER_SIZE;
            //host.AddServiceEndpoint(typeof(IDebuggerService), binding, Binder.GetDebuggerUri(_port));
            _serviceHost = host;
            host.Open();
        }