<?xml version="1.0"?>
<configuration>
  <system.serviceModel>

    <services>
      <service behaviorConfiguration="PushServiceBehavior" name="WindowsPhone.Recipes.Push.Server.Services.PushService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration=""
          contract="WindowsPhone.Recipes.Push.Server.Services.IPushService">
          <identity>
            <dns value="localhost" />
          </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:8000/PushService/" />
          </baseAddresses>
        </host>
      </service>
      <service behaviorConfiguration="ImageServiceBehavior" name="WindowsPhone.Recipes.Push.Server.Services.ImageService">
        <endpoint address="" behaviorConfiguration="EndpointImageServiceBehavior"
          binding="webHttpBinding" contract="WindowsPhone.Recipes.Push.Server.Services.IImageService" />
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:8000/ImageService/" />
          </baseAddresses>
        </host>
      </service>
    </services>

    <behaviors>
      <endpointBehaviors>
        <behavior name="EndpointImageServiceBehavior">
          <webHttp />
        </behavior>
      </endpointBehaviors>
      
      <serviceBehaviors>
        <behavior name="ImageServiceBehavior">
          <serviceDebug includeExceptionDetailInFaults="false" />
          <serviceMetadata httpGetEnabled="true" />
        </behavior>
        
        <behavior name="PushServiceBehavior">
          <serviceMetadata/>
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>        
      </serviceBehaviors>
      
    </behaviors>

  </system.serviceModel>

  <startup>
    <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/>
  </startup>

</configuration>
