首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

在IIS中托管WCF net.pipe绑定时控制命名管道的名称

在IIS中托管WCF net.pipe绑定时,可以通过配置文件中的bindingConfiguration属性来控制命名管道的名称。

以下是一个示例配置文件,其中定义了一个名为“netNamedPipeBinding”的绑定,并设置了bindingConfiguration属性为“myPipe”。

代码语言:xml<system.serviceModel>
复制
  <bindings>
    <netNamedPipeBinding>
     <binding name="myPipe" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10" maxReceivedMessageSize="65536">
       <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
       <security mode="Transport">
         <transport protectionLevel="EncryptAndSign" />
        </security>
      </binding>
    </netNamedPipeBinding>
  </bindings>
 <services>
   <service name="MyService">
     <endpoint address="net.pipe://localhost/MyService" binding="netNamedPipeBinding" bindingConfiguration="myPipe" contract="IMyService" />
    </service>
  </services>
</system.serviceModel>

在上面的示例中,命名管道的名称是“net.pipe://localhost/MyService”,可以根据需要进行修改。

推荐的腾讯云相关产品和产品介绍链接地址:

页面内容是否对你有帮助?
有帮助
没帮助

相关·内容

没有搜到相关的沙龙

领券