<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    <section name="ExchangeDiagnosticsSection" type="Microsoft.Exchange.Data.ApplicationLogic.ExchangeDiagnosticsSection, Microsoft.Exchange.Data.ApplicationLogic, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
  </configSections>
  <ExchangeDiagnosticsSection>
    <DiagnosticsComponents>
    </DiagnosticsComponents>
  </ExchangeDiagnosticsSection>
  <runtime>
    <generatePublisherEvidence enabled="false"/>
  </runtime>
  <system.net>
    <connectionManagement>
      <add address="*" maxconnection="160"/>
    </connectionManagement>
    <defaultProxy>
      <proxy usesystemdefault="true" bypassonlocal="true" />
      <bypasslist>
        <add address=".*" />
      </bypasslist>
    </defaultProxy>
  </system.net>
  <system.serviceModel>
    <bindings>
      <netTcpBinding>
        <binding name="SecureBinding" maxConnections="100000">
          <security mode="Transport">
            <transport protectionLevel="EncryptAndSign" />
          </security>
        </binding>
      </netTcpBinding>
      <netNamedPipeBinding>
        <binding name="MserveCacheServiceBinding"
                 closeTimeout="00:01:00"
                 openTimeout="00:01:00"
                 receiveTimeout="00:10:00"
                 sendTimeout="00:02:00"
                 transactionFlow="false"
                 transferMode="Buffered"
                 transactionProtocol="OleTransactions"
                 hostNameComparisonMode="StrongWildcard"
                 maxBufferPoolSize="524288"
                 maxBufferSize="65536"
                 maxConnections="100000"
                 maxReceivedMessageSize="65536">
          <readerQuotas maxStringContentLength="10485760" />
          <security mode="None"/>
        </binding>
        <binding name="GlsCacheServiceBinding"
                 closeTimeout="00:01:00"
                 openTimeout="00:01:00"
                 receiveTimeout="00:10:00"
                 sendTimeout="00:02:00"
                 transactionFlow="false"
                 transferMode="Buffered"
                 transactionProtocol="OleTransactions"
                 hostNameComparisonMode="StrongWildcard"
                 maxBufferPoolSize="524288"
                 maxBufferSize="65536"
                 maxConnections="100000"
                 maxReceivedMessageSize="65536">
          <readerQuotas maxStringContentLength="10485760" />
          <security mode="None"/>
        </binding>
      </netNamedPipeBinding>      
    </bindings>
    <services>
      <service name="Microsoft.Exchange.Security.Authentication.FederatedAuthService.AuthService" behaviorConfiguration="AuthServiceBehavior">
        <endpoint address="net.tcp://localhost:1009/Microsoft.Exchange.Security.Authentication.FederatedAuthService" binding="netTcpBinding" bindingConfiguration="SecureBinding" contract="Microsoft.Exchange.Security.Authentication.FederatedAuthService.IAuthService" />
      </service>
      <service 
        name="Microsoft.Exchange.Servicelets.GlobalLocatorCache.MserveCacheService" 
        behaviorConfiguration="MserveCacheServiceBehavior">
        <endpoint name = "MserveCacheNamedPipeEndPoint"
            address = "net.pipe://localhost/MserveCacheService/service.svc"
            binding = "netNamedPipeBinding"
            contract = "Microsoft.Exchange.Net.Mserve.IMserveCacheService"
            bindingConfiguration ="MserveCacheServiceBinding" />
      </service>
      <service
        name="Microsoft.Exchange.Servicelets.GlobalLocatorCache.GlsCacheService"
        behaviorConfiguration="GlsCacheServiceBehavior">
        <endpoint name = "GlsCacheNamedPipeEndPoint"
            address = "net.pipe://localhost/GlsCacheService/service.svc"
            binding = "netNamedPipeBinding"
            contract = "Microsoft.Exchange.Servicelets.GlobalLocatorCache.IGlsCacheService"
            bindingConfiguration ="GlsCacheServiceBinding" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="AuthServiceBehavior">
          <serviceThrottling maxConcurrentCalls="1000" maxConcurrentSessions="500" />
        </behavior>
        <behavior name="MserveCacheServiceBehavior">
          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
          <serviceDebug includeExceptionDetailInFaults="true"/>
          <dataContractSerializer maxItemsInObjectGraph="262144"/>
          <serviceThrottling
              maxConcurrentCalls="10000"
              maxConcurrentInstances="10000"
              maxConcurrentSessions="1000" />
        </behavior>
        <behavior name="GlsCacheServiceBehavior">
          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
          <serviceDebug includeExceptionDetailInFaults="true"/>
          <dataContractSerializer maxItemsInObjectGraph="262144"/>
          <serviceThrottling
              maxConcurrentCalls="10000"
              maxConcurrentInstances="10000"
              maxConcurrentSessions="1000" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <diagnostics performanceCounters="All" />
  </system.serviceModel>
  <appSettings>
    <add key="MinimumIOPortThreads" value="40" />
    <add key="HrdCacheBucketSize" value="5000" />
    <add key="HrdCacheBuckets" value="16" />
    <add key="HrdCacheLifetimeMinutes" value="240" />
    <add key="LogonCacheSize" value="100000" />
    <add key="LogonCacheLifetimeMinutes" value="1440" />
    <add key="AuthenticationTimeoutSeconds" value="45" />
    <add key="MaxShibbolethResponseSize" value="131072" />
    <add key="MaxAdfsResponseSize" value="131072" />
    <add key="DefaultInstance" value="Consumer" />
    <add key="TrustedNamespaces" value="microsoft.com" />
    <add key="PercentileCountersUpdateIntervalInSeconds" value="15" />
    <add key="PercentileCountersLastMinutes" value="5" />
    <add key="PercentileCountersUnitOfExpiryInSeconds" value="15" />
    <add key="NumberOfTotalRequestsToIgnoreInPercentileCounter" value="5" />
    <add key="ADUserCacheBucketSize" value="2500" />
    <add key="ADUserCacheBuckets" value="5" />
    <add key="ADUserEntryExpireTimeInMinutes" value="30"/>
    <add key="EnablePasswordInvalidationForFederatedUser" value="false" />
    <add key="EnablePasswordInvalidationForManagedUser" value="false" />
  </appSettings>
</configuration>
