次の方法で共有


<net.tcp>

複数のプロセスが同じ 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 です。

子要素

要素 説明

<allowAccounts>

WCF をホストするプロセスのユーザー アカウントを指定する securityIdentifier 属性が含まれており、共有サービスへの接続アクセス権が付与される構成要素のコレクションです。

親要素

要素 説明

<system.serviceModel.activation>

リスナ プロセス SMSvcHost.exe の設定が含まれています。

解説

ポート共有の詳細については、「Net.TCP Port Sharing」を参照してください。ポート共有サービスを構成する方法については、「Configuring the Net.TCP Port Sharing Service」を参照してください。

関連項目

リファレンス

NetTcpSection

その他の技術情報

Net.TCP Port Sharing
Configuring the Net.TCP Port Sharing Service