WCF 配置App.Config

<system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_IPublicFontForMongodbService" maxBufferPoolSize="2147483647" receiveTimeout="00:10:00" openTimeout="00:10:00" sendTimeout="00:10:00" closeTimeout="00:10:00" maxReceivedMessageSize="2147483647" maxBufferSize="2147483647"/>   
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://localhost:8733/MongodbService.svc"
        binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IPublicFontForMongodbService"
        contract="PublicFontForMongodbService.IPublicFontForMongodbService"
        name="BasicHttpBinding_IPublicFontForMongodbService" />
    </client>
  </system.serviceModel>

 

posted @ 2015-12-23 13:56  逍遥帝君  阅读(745)  评论(0编辑  收藏  举报