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

  • 相关阅读:
    poj3016
    BZOJ2560 串珠子
    HAOI 2009 逆序对数列
    BJOI2012 最多的方案
    ZJOI2008 生日聚会
    ZJOI2008 骑士
    SCOI2003 严格N元树
    SDOI2010 地精部落
    USACO Section 3.2 Stringsobits
    JLOI2013 卡牌游戏
  • 原文地址:https://www.cnblogs.com/hl3292/p/2099470.html
Copyright © 2011-2022 走看看