指定允许多个进程共享同一 TCP 端口的 NET.TCP 端口共享服务的配置设置。
<system.serviceModel.activation>
<net.tcp>
<configuration>
<system.serviceModel.activation>
<net.tcp listenBacklog="Integer"
maxPendingAccepts="Integer"
maxPendingConnections="Integer"
receiveTimeout="TimeSpan"
teredoEnabled="Boolean">
<allowAccounts>
// LocalSystem account
<add securityIdentifier="S-1-5-18"/>
// LocalService account
<add securityIdentifier="S-1-5-19"/>
// Administrators account
<add securityIdentifier="S-1-5-20"/>
// Network Service account
<add securityIdentifier="S-1-5-32-544" />
// IIS_IUSRS account (Vista only)
<add securityIdentifier="S-1-5-32-568"/>
</allowAccounts>
</net.tcp>
</configuration>
Type
属性和元素
属性
属性 | 说明 |
---|---|
listenBacklog |
一个整数,指定从共享连接接受但仍未调度给 Windows Communication Foundation (WCF) 服务的最大未完成连接数。默认值为 10。 |
maxPendingAccepts |
一个整数,指定共享服务侦听终结点上的最大未完成并发接受线程数。默认值为 2。 |
MaxPendingConnections |
一个整数,指定从共享连接接受但仍未调度给 WCF 服务的最大未完成连接数。默认值为 10。 |
receiveTimeout |
Timespan,它将为读取组帧数据并执行来自基础连接的连接调度指定超时值。默认值为“00:00:10”。 |
teredoEnabled |
一个布尔值,指示端口共享服务是否使用 Microsoft Teredo 服务代表 WCF 服务侦听 TCP 端口。默认值为 false。 |
子元素
元素 | 说明 |
---|---|
一个配置元素集合,这些元素所包含的 securityIdentifier 属性用于指定进程的用户帐户,这些进程承载 WCF 服务并被授予了对该共享服务的连接访问权限。 |
父元素
元素 | 说明 |
---|---|
包含侦听器进程 SMSvcHost.exe 的配置设置。 |
备注
有关端口共享的更多信息,请参见 Net.TCP Port Sharing。若要了解如何配置端口共享服务,请参见Configuring the Net.TCP Port Sharing Service。
另请参见
参考
其他资源
Net.TCP Port Sharing
Configuring the Net.TCP Port Sharing Service