App.config 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
  5. <section name="Foghorn.Service.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  6. </sectionGroup>
  7. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  8. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  9. </configSections>
  10. <connectionStrings>
  11. <add name="FoghornEntities" connectionString="metadata=res://*/FoghornModel.csdl|res://*/FoghornModel.ssdl|res://*/FoghornModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=(local);initial catalog=Foghorn;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
  12. </connectionStrings>
  13. <appSettings>
  14. <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true" />
  15. </appSettings>
  16. <system.web>
  17. <compilation debug="true" />
  18. </system.web>
  19. <!-- When deploying the service library project, the content of the config file must be added to the host's
  20. app.config file. System.Configuration does not support config files for libraries. -->
  21. <system.serviceModel>
  22. <services>
  23. <service name="Foghorn.WcfService.FoghornService">
  24. <host>
  25. <baseAddresses>
  26. <add baseAddress="http://localhost:8733/Design_Time_Addresses/Foghorn.WcfService/FoghornService/" />
  27. </baseAddresses>
  28. </host>
  29. <!-- Service Endpoints -->
  30. <!-- Unless fully qualified, address is relative to base address supplied above -->
  31. <endpoint address="" binding="basicHttpBinding" contract="Foghorn.WcfService.IFoghornService">
  32. <!--
  33. Upon deployment, the following identity element should be removed or replaced to reflect the
  34. identity under which the deployed service runs. If removed, WCF will infer an appropriate identity
  35. automatically.
  36. -->
  37. <identity>
  38. <dns value="localhost" />
  39. </identity>
  40. </endpoint>
  41. <!-- Metadata Endpoints -->
  42. <!-- The Metadata Exchange endpoint is used by the service to describe itself to clients. -->
  43. <!-- This endpoint does not use a secure binding and should be secured or removed before deployment -->
  44. <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  45. </service>
  46. </services>
  47. <behaviors>
  48. <serviceBehaviors>
  49. <behavior>
  50. <!-- To avoid disclosing metadata information,
  51. set the values below to false before deployment -->
  52. <serviceMetadata httpGetEnabled="True" httpsGetEnabled="True" />
  53. <!-- To receive exception details in faults for debugging purposes,
  54. set the value below to true. Set to false before deployment
  55. to avoid disclosing exception information -->
  56. <serviceDebug includeExceptionDetailInFaults="False" />
  57. </behavior>
  58. </serviceBehaviors>
  59. </behaviors>
  60. </system.serviceModel>
  61. <applicationSettings>
  62. <Foghorn.Service.Properties.Settings>
  63. <setting name="GrowlDefaultPort" serializeAs="String">
  64. <value>23053</value>
  65. </setting>
  66. </Foghorn.Service.Properties.Settings>
  67. </applicationSettings>
  68. <runtime>
  69. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  70. <dependentAssembly>
  71. <assemblyIdentity name="EntityFramework" publicKeyToken="b77a5c561934e089" culture="neutral" />
  72. <bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
  73. </dependentAssembly>
  74. </assemblyBinding>
  75. </runtime>
  76. <entityFramework>
  77. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  78. <parameters>
  79. <parameter value="mssqllocaldb" />
  80. </parameters>
  81. </defaultConnectionFactory>
  82. <providers>
  83. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  84. </providers>
  85. </entityFramework>
  86. </configuration>