App.config 6.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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-ev-dev.database.windows.net,1433;initial catalog=StandardOCPP_ConnectionLog;persist security info=True;user id=azdevsoftware;password=1h52dev#az;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=azdevsoftware;password=1h52dev#az;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=1000" providerName="System.Data.SqlClient" />
  12. <add name="MeterValueDBContext" connectionString="Server=tcp:zerova-ev-dev.database.windows.net,1433;initial catalog=StandardOCPP_MeterValue;;persist security info=True;user id=azdevsoftware;password=1h52dev#az;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=500" providerName="System.Data.SqlClient" />
  13. <add name="WebDBContext" connectionString="Server=tcp:zerova-ev-dev.database.windows.net,1433;initial catalog=StandardOCPP_Web;;persist security info=True;user id=azdevsoftware;password=1h52dev#az;MultipleActiveResultSets=True;App=EntityFramework; Max Pool Size=500" providerName="System.Data.SqlClient" />
  14. </connectionStrings>
  15. <appSettings>
  16. <add key="LocalAuthAPI" value="https://evcb.zerovatech.com/PortalApi/1" />
  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="certificate.pfx" password="Ph13572468" storeName="My" thumbprint="3D7BA6A3C191C1D907AA4953568BCF5419AE433E" storeLocation="LocalMachine" clientCertificateRequired="false" keyStorageFlags="Exportable"></certificate>
  31. <listeners></listeners>
  32. </server>
  33. </servers>
  34. <serverTypes>
  35. <add name="SuperWebSocket" type="SuperWebSocket.WebSocketServer, SuperWebSocket" />
  36. </serverTypes>
  37. </superSocket>
  38. <runtime>
  39. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  40. <dependentAssembly>
  41. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  42. <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
  43. </dependentAssembly>
  44. <dependentAssembly>
  45. <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  46. <bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
  47. </dependentAssembly>
  48. <dependentAssembly>
  49. <assemblyIdentity name="Microsoft.Extensions.Primitives" publicKeyToken="adb9793829ddae60" culture="neutral" />
  50. <bindingRedirect oldVersion="0.0.0.0-3.1.3.0" newVersion="3.1.3.0" />
  51. </dependentAssembly>
  52. <dependentAssembly>
  53. <assemblyIdentity name="Microsoft.Extensions.Configuration.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
  54. <bindingRedirect oldVersion="0.0.0.0-3.1.3.0" newVersion="3.1.3.0" />
  55. </dependentAssembly>
  56. <dependentAssembly>
  57. <assemblyIdentity name="Microsoft.Extensions.DependencyInjection.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
  58. <bindingRedirect oldVersion="0.0.0.0-3.1.3.0" newVersion="3.1.3.0" />
  59. </dependentAssembly>
  60. <dependentAssembly>
  61. <assemblyIdentity name="Microsoft.Extensions.Options" publicKeyToken="adb9793829ddae60" culture="neutral" />
  62. <bindingRedirect oldVersion="0.0.0.0-3.1.3.0" newVersion="3.1.3.0" />
  63. </dependentAssembly>
  64. <dependentAssembly>
  65. <assemblyIdentity name="Microsoft.Extensions.Logging.Abstractions" publicKeyToken="adb9793829ddae60" culture="neutral" />
  66. <bindingRedirect oldVersion="0.0.0.0-3.1.3.0" newVersion="3.1.3.0" />
  67. </dependentAssembly>
  68. <dependentAssembly>
  69. <assemblyIdentity name="Microsoft.Extensions.DependencyInjection" publicKeyToken="adb9793829ddae60" culture="neutral" />
  70. <bindingRedirect oldVersion="0.0.0.0-3.1.3.0" newVersion="3.1.3.0" />
  71. </dependentAssembly>
  72. <dependentAssembly>
  73. <assemblyIdentity name="Microsoft.Extensions.Logging" publicKeyToken="adb9793829ddae60" culture="neutral" />
  74. <bindingRedirect oldVersion="0.0.0.0-3.1.3.0" newVersion="3.1.3.0" />
  75. </dependentAssembly>
  76. <dependentAssembly>
  77. <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  78. <bindingRedirect oldVersion="0.0.0.0-4.0.2.0" newVersion="4.0.2.0" />
  79. </dependentAssembly>
  80. </assemblyBinding>
  81. </runtime>
  82. <entityFramework>
  83. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  84. <parameters>
  85. <parameter value="mssqllocaldb" />
  86. </parameters>
  87. </defaultConnectionFactory>
  88. <providers>
  89. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  90. </providers>
  91. </entityFramework>
  92. </configuration>