App.config 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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="Server=tcp:zerova-evbackend.database.windows.net,1433;initial catalog=StandardOCPP_ConnectionLog;persist security info=True;user id=ev_user;password=Thw2DEa2hZPdg;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=500" providerName="System.Data.SqlClient" />
  11. <add name="MainDBContext" connectionString="Server=tcp:zerova-ev-dev.database.windows.net,1433;initial catalog=StandardOCPP_Main;;persist security info=True;user id=ev_user;password=azdevsoftware#az;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=1000" providerName="System.Data.SqlClient" />
  12. <add name="MeterValueDBContext" connectionString="Server=tcp:zerova-evbackend.database.windows.net,1433;initial catalog=StandardOCPP_MeterValue;;persist security info=True;user id=ev_user;password=Thw2DEa2hZPdg;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=500" providerName="System.Data.SqlClient" />
  13. <add name="WebDBContext" connectionString="Server=tcp:zerova-evbackend.database.windows.net,1433;initial catalog=StandardOCPP_Web;;persist security info=True;user id=ev_user;password=Thw2DEa2hZPdg;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=500" providerName="System.Data.SqlClient" />
  14. </connectionStrings>
  15. <appSettings>
  16. <add key="LocalAuthAPI" value="" />
  17. <!--若不想開放WSPort,請留空-->
  18. <add key="WSPort" value="2012" />
  19. <add key="WSSPort" value="2013,2014" />
  20. <add key="OCPP20_WSUrl" value="ws://ocpp.phihong.com.tw:5004" />
  21. <add key="OCPP20_WSSUrl" value="ws://ocpp.phihong.com.tw:5004" />
  22. <add key="MaintainMode" value="0" />
  23. </appSettings>
  24. <startup>
  25. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.1" />
  26. </startup>
  27. <superSocket>
  28. <servers>
  29. <server name="SuperWebSocket" serverTypeName="SuperWebSocket">
  30. <certificate filePath="localhost.pfx" password="supersocket" storeName="My" thumbprint="‎3f07fb28c158843209db8f51bfe748dbe9f52399" storeLocation="LocalMachine" clientCertificateRequired="false" keyStorageFlags="Exportable"></certificate>
  31. <!--<certificate filePath="phihongtest-net.pfx" password="y42j/4cj84" storeName="My" thumbprint="‎b4be1b6f0f4a4904f48d85c04f5c2b0005c64d76" storeLocation="LocalMachine" clientCertificateRequired="false" keyStorageFlags="Exportable"></certificate>-->
  32. <listeners></listeners>
  33. </server>
  34. </servers>
  35. <serverTypes>
  36. <add name="SuperWebSocket" type="SuperWebSocket.WebSocketServer, SuperWebSocket" />
  37. </serverTypes>
  38. </superSocket>
  39. <runtime>
  40. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  41. <dependentAssembly>
  42. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  43. <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
  44. </dependentAssembly>
  45. <dependentAssembly>
  46. <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  47. <bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
  48. </dependentAssembly>
  49. <dependentAssembly>
  50. <assemblyIdentity name="Microsoft.Extensions.Primitives" publicKeyToken="adb9793829ddae60" culture="neutral" />
  51. <bindingRedirect oldVersion="0.0.0.0-3.1.3.0" newVersion="3.1.3.0" />
  52. </dependentAssembly>
  53. <dependentAssembly>
  54. <assemblyIdentity name="Microsoft.Extensions.Configuration.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
  55. <bindingRedirect oldVersion="0.0.0.0-3.1.3.0" newVersion="3.1.3.0" />
  56. </dependentAssembly>
  57. <dependentAssembly>
  58. <assemblyIdentity name="Microsoft.Extensions.DependencyInjection.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
  59. <bindingRedirect oldVersion="0.0.0.0-3.1.3.0" newVersion="3.1.3.0" />
  60. </dependentAssembly>
  61. <dependentAssembly>
  62. <assemblyIdentity name="Microsoft.Extensions.Options" publicKeyToken="adb9793829ddae60" culture="neutral" />
  63. <bindingRedirect oldVersion="0.0.0.0-3.1.3.0" newVersion="3.1.3.0" />
  64. </dependentAssembly>
  65. <dependentAssembly>
  66. <assemblyIdentity name="Microsoft.Extensions.Logging.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
  67. <bindingRedirect oldVersion="0.0.0.0-3.1.3.0" newVersion="3.1.3.0" />
  68. </dependentAssembly>
  69. <dependentAssembly>
  70. <assemblyIdentity name="Microsoft.Extensions.DependencyInjection" publicKeyToken="adb9793829ddae60" culture="neutral" />
  71. <bindingRedirect oldVersion="0.0.0.0-3.1.3.0" newVersion="3.1.3.0" />
  72. </dependentAssembly>
  73. <dependentAssembly>
  74. <assemblyIdentity name="Microsoft.Extensions.Logging" publicKeyToken="adb9793829ddae60" culture="neutral" />
  75. <bindingRedirect oldVersion="0.0.0.0-3.1.3.0" newVersion="3.1.3.0" />
  76. </dependentAssembly>
  77. <dependentAssembly>
  78. <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  79. <bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
  80. </dependentAssembly>
  81. </assemblyBinding>
  82. </runtime>
  83. <entityFramework>
  84. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  85. <parameters>
  86. <parameter value="mssqllocaldb" />
  87. </parameters>
  88. </defaultConnectionFactory>
  89. <providers>
  90. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  91. </providers>
  92. </entityFramework>
  93. </configuration>