zoukankan      html  css  js  c++  java
  • 监听端口

       public static GISWCFClient GetGISWCFClient()
            {
                EndpointAddress endpointAddress = new EndpointAddress("net.tcp://localhost:4505/GISWCF/CY.EMP.EMPWebBLL.PMC.GIS.GISWCF");
                TcpTransportBindingElement bindingElement = new TcpTransportBindingElement();
                bindingElement.MaxReceivedMessageSize = 2147483647;
                bindingElement.MaxBufferSize = 2147483647;
                //bindingElement.MaxBufferPoolSize = 2147483647;
                CustomBinding customBinding = new CustomBinding(bindingElement);
                customBinding.SendTimeout = new TimeSpan(0, 60, 0);
                customBinding.ReceiveTimeout = new TimeSpan(0, 60, 0);
                customBinding.CloseTimeout = new TimeSpan(0, 60, 0);
                GISWCFClient client = new GISWCFClient(customBinding, endpointAddress);
                return client;
            }

    此处一定要用:

    拷贝的net.tcp://localhost:4505/GISWCF/CY.EMP.EMPWebBLL.PMC.GIS.GISWCF

  • 相关阅读:
    PAT 甲级 1132 Cut Integer (20 分)
    AcWing 7.混合背包问题
    AcWing 9. 分组背包问题
    AcWing 5. 多重背包问题 II
    AcWing 3. 完全背包问题
    AcWing 4. 多重背包问题
    AcWing 2. 01背包问题
    AcWing 875. 快速幂
    AcWing 874. 筛法求欧拉函数
    AcWing 873. 欧拉函数
  • 原文地址:https://www.cnblogs.com/hl3292/p/2099470.html
Copyright © 2011-2022 走看看