App.config 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="superSocket" type="SuperSocket.SocketEngine.Configuration.SocketServiceConfig, SuperSocket.SocketEngine" />
  5. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  6. <!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 -->
  7. <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  8. </configSections>
  9. <connectionStrings>
  10. <add name="ConnectionLogDBContext" connectionString="data source=172.1.0.142\SQLEXPRESS;initial catalog=OCPP_ConnectionLogDBContext;persist security info=True;user id=sa;password=Ph0930118811;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
  11. <add name="MainDBContext" connectionString="data source=172.1.0.142\SQLEXPRESS;initial catalog=OCPP_MainDBContext;;persist security info=True;user id=sa;password=Ph0930118811;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
  12. <add name="MeterValueDBContext" connectionString="data source=172.1.0.142\SQLEXPRESS;initial catalog=OCPP_MeterValueDBContext;;persist security info=True;user id=sa;password=Ph0930118811;MultipleActiveResultSets=True;App=EntityFramework" providerName="System.Data.SqlClient" />
  13. </connectionStrings>
  14. <appSettings>
  15. <add key="ServerIP" value=""/>
  16. <add key="WSPort" value="2017"/>
  17. <add key="WSSPort" value="2013"/>
  18. </appSettings>
  19. <startup>
  20. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1" />
  21. </startup>
  22. <superSocket>
  23. <servers>
  24. <server name="SuperWebSocket" serverTypeName="SuperWebSocket">
  25. <certificate filePath="localhost.pfx" password="supersocket" storeName="My" thumbprint="‎f42585bceed2cb049ef4a3c6d0ad572a6699f6f3" storeLocation="LocalMachine" clientCertificateRequired="false" keyStorageFlags="Exportable"></certificate>
  26. <!--<certificate filePath="phihongtest-net.pfx" password="y42j/4cj84" storeName="My" thumbprint="‎b4be1b6f0f4a4904f48d85c04f5c2b0005c64d76" storeLocation="LocalMachine" clientCertificateRequired="false" keyStorageFlags="Exportable"></certificate>-->
  27. <listeners></listeners>
  28. </server>
  29. </servers>
  30. <serverTypes>
  31. <add name="SuperWebSocket" type="SuperWebSocket.WebSocketServer, SuperWebSocket" />
  32. </serverTypes>
  33. </superSocket>
  34. <runtime>
  35. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  36. <dependentAssembly>
  37. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  38. <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
  39. </dependentAssembly>
  40. </assemblyBinding>
  41. </runtime>
  42. <entityFramework>
  43. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  44. <parameters>
  45. <parameter value="mssqllocaldb" />
  46. </parameters>
  47. </defaultConnectionFactory>
  48. <providers>
  49. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  50. </providers>
  51. </entityFramework>
  52. </configuration>