<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <appSettings>
    <add key="WriteStackTraceOnResponse" value="true" />
  </appSettings>
  <system.serviceModel>
    <services>
      <service name="Microsoft.Exchange.PushNotifications.Server.Services.PushNotificationOnPremService" behaviorConfiguration="serviceBehavior">
        <host>
          <baseAddresses>
            <add baseAddress="net.pipe://localhost" />
          </baseAddresses>
        </host>
        <endpoint name="PushNotifications"
            address=""
            binding="netNamedPipeBinding"
            bindingConfiguration="ServiceBinding"
            contract="Microsoft.Exchange.PushNotifications.IPublisherServiceContract" />
      </service>
    </services>
    <bindings>
      <netNamedPipeBinding>
        <binding name="ServiceBinding"
            maxBufferSize="3276800"
            maxReceivedMessageSize="3276800">
        </binding>
      </netNamedPipeBinding>
    </bindings>
    <behaviors>
      <serviceBehaviors>
        <behavior name="serviceBehavior">
          <serviceDebug includeExceptionDetailInFaults="false" />
          <serviceAuthorization principalPermissionMode="Custom" >
            <authorizationPolicies>
              <add policyType="Microsoft.Exchange.PushNotifications.Server.Wcf.PushNotificationAuthorizationPolicy, Microsoft.Exchange.PushNotifications.Server, Version=15.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
            </authorizationPolicies>
          </serviceAuthorization>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" minFreeMemoryPercentageToActivateService="0" />
  </system.serviceModel>
  <system.webServer>
    <handlers>
      <add verb="GET" path="mowapendingget.ashx" type="Microsoft.Exchange.PushNotifications.Server.PendingGet.MowaPendingGetRequestHandler, Microsoft.Exchange.PushNotifications.Server" name="MowaPendingGetRequestHandler" preCondition="managedHandler" />
    </handlers>
  </system.webServer>
  <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
    <linkedConfiguration href="file://%ExchangeInstallDir%ClientAccess\SharedWebConfig.config"/>
  </assemblyBinding>
</configuration>
