25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 
 
 
 

256 satır
13 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <configuration>
  3. <configSections>
  4. <section name="redisconfig" type="Learun.Cache.Redis.RedisConfigInfo,Learun.Cache.Redis" />
  5. <section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection,Microsoft.Practices.Unity.Configuration" />
  6. <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
  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. <section name="oracle.manageddataaccess.client" type="OracleInternal.Common.ODPMSectionHandler, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  10. </configSections>
  11. <!--redis-->
  12. <redisconfig WriteServerList="127.0.0.1:6379" ReadServerList="127.0.0.1:6379" MaxWritePoolSize="60" MaxReadPoolSize="60" AutoStart="true" LocalCacheTime="180" RecordeLog="false"></redisconfig>
  13. <!--<redisconfig WriteServerList="192.168.0.12:6379" ReadServerList="192.168.0.12:6379" MaxWritePoolSize="60" MaxReadPoolSize="60" AutoStart="true" LocalCacheTime="180" RecordeLog="false"></redisconfig>-->
  14. <!--IOC-->
  15. <unity>
  16. <typeAliases>
  17. <typeAlias alias="IDatabase" type="Learun.DataBase.IDatabase,Learun.DataBase" />
  18. <typeAlias alias="SqlServer" type="Learun.DataBase.SqlServer.Database,Learun.DataBase.SqlServer" />
  19. <typeAlias alias="MySql" type="Learun.DataBase.MySqlEx.Database,Learun.DataBase.MySqlEx" />
  20. <typeAlias alias="Oracle" type="Learun.DataBase.Oracle.Database,Learun.DataBase.Oracle" />
  21. <!--工作流接口-->
  22. <typeAlias alias="INodeMethod" type=" Learun.Application.WorkFlow.INodeMethod, Learun.Application.WorkFlow" />
  23. <typeAlias alias="NodeMethod" type=" Learun.Application.WorkFlow.NodeMethod, Learun.Application.WorkFlow" />
  24. </typeAliases>
  25. <containers>
  26. <container name="IOCcontainer">
  27. <type type="IDatabase" mapTo="SqlServer" name="SqlServer"></type>
  28. <type type="IDatabase" mapTo="MySql" name="MySql"></type>
  29. <type type="IDatabase" mapTo="Oracle" name="Oracle"></type>
  30. </container>
  31. <container name="WfIOCcontainer">
  32. <type type="INodeMethod" mapTo="NodeMethod"></type>
  33. </container>
  34. </containers>
  35. </unity>
  36. <!--数据库-->
  37. <connectionStrings>
  38. <add name="BaseDb" connectionString="Server=192.168.2.126;Initial Catalog=adms7ultimate2;User ID=sa;Password=bjqj@2015!" providerName="System.Data.SqlClient" />
  39. <!--<add name="BaseDb" connectionString="Server=192.168.0.12;Initial Catalog=LearunFramework_Base_2017;User ID=sa;Password=SQLserver2Learun.com" providerName="System.Data.SqlClient" />-->
  40. </connectionStrings>
  41. <!--系统设置-->
  42. <appSettings>
  43. <!-- ================== 1:开发系统相关配置 ================== -->
  44. <!-- 启用系统日志-->
  45. <add key="IsLog" value="true" />
  46. <!-- ================== 2:这里主要是微信配置项内容部分 ================== -->
  47. <!--企业号CorpId -->
  48. <add key="CorpId" value="wxa2c39f6194f4" />
  49. <!--企业号凭证密钥 -->
  50. <add key="CorpSecret" value="eDo9pEOXWqSgWtQ-_1NF_NTmGDTlZ3UFFdF3To-" />
  51. <!-- ================== 4:系统软件参数配置 ================== -->
  52. <!-- 联系我们 -->
  53. <add key="Contact" value="www.Learun.cn" />
  54. <!-- 公司名称 -->
  55. <add key="CustomerCompanyName" value="" />
  56. <!-- 系统名称 -->
  57. <add key="SystemName" value="数字化智慧校园" />
  58. <!-- 软件名称 -->
  59. <add key="SoftName" value="数字化智慧校园" />
  60. <!-- 软件版本 -->
  61. <add key="Version" value="6.1.6.0" />
  62. <!-- 软件注册码,备用 -->
  63. <add key="RegisterKey" value="NO:2013101712345678" />
  64. <!-- ================== 5:外部邮件参数 ================== -->
  65. <!-- 系统错误自动发送邮件 -->
  66. <add key="ErrorToMail" value="false" />
  67. <!-- 接收错误信息的邮箱 -->
  68. <add key="RereceiveErrorMail" value="" />
  69. <!-- 发出邮箱的名称 -->
  70. <add key="MailName" value="" />
  71. <!-- 发出邮箱的地址 -->
  72. <add key="MailUserName" value="" />
  73. <!-- 发出邮箱的密码 -->
  74. <add key="MailPassword" value="" />
  75. <!-- 发出邮箱设置邮箱主机 -->
  76. <add key="MailHost" value="" />
  77. <!-- ================== 6:即时通信参数 ================== -->
  78. <add key="IMUrl" value="http://:8012" />
  79. <!-- ================== 7:工作流引擎地址 ================== -->
  80. <add key="workflowService" value="http://localhost:8013" />
  81. </appSettings>
  82. <!--日志-->
  83. <log4net>
  84. <!--根配置-->
  85. <root>
  86. <!--日志级别:可选值: ERROR > WARN > INFO > DEBUG -->
  87. <level value="ERROR" />
  88. <level value="WARN" />
  89. <level value="INFO" />
  90. <level value="DEBUG" />
  91. <appender-ref ref="ErrorLog" />
  92. <appender-ref ref="WarnLog" />
  93. <appender-ref ref="InfoLog" />
  94. <appender-ref ref="DebugLog" />
  95. </root>
  96. <!-- 错误 Error.log-->
  97. <appender name="ErrorLog" type="log4net.Appender.RollingFileAppender">
  98. <!--目录路径,可以是相对路径或绝对路径-->
  99. <param name="File" value="C:\learun_log" />
  100. <!--文件名,按日期生成文件夹-->
  101. <param name="DatePattern" value="/yyyy-MM-dd/&quot;Error.log&quot;" />
  102. <!--追加到文件-->
  103. <appendToFile value="true" />
  104. <!--创建日志文件的方式,可选值:Date[日期],文件大小[Size],混合[Composite]-->
  105. <rollingStyle value="Composite" />
  106. <!--写到一个文件-->
  107. <staticLogFileName value="false" />
  108. <!--单个文件大小。单位:KB|MB|GB-->
  109. <maximumFileSize value="200MB" />
  110. <!--最多保留的文件数,设为"-1"则不限-->
  111. <maxSizeRollBackups value="-1" />
  112. <!--日志格式-->
  113. <layout type="log4net.Layout.PatternLayout">
  114. <conversionPattern value="%message" />
  115. </layout>
  116. <filter type="log4net.Filter.LevelRangeFilter">
  117. <param name="LevelMin" value="ERROR" />
  118. <param name="LevelMax" value="ERROR" />
  119. </filter>
  120. </appender>
  121. <!-- 警告 Warn.log-->
  122. <appender name="WarnLog" type="log4net.Appender.RollingFileAppender">
  123. <!--目录路径,可以是相对路径或绝对路径-->
  124. <param name="File" value="C:\learun_log" />
  125. <!--文件名,按日期生成文件夹-->
  126. <param name="DatePattern" value="/yyyy-MM-dd/&quot;Warn.log&quot;" />
  127. <!--追加到文件-->
  128. <appendToFile value="true" />
  129. <!--创建日志文件的方式,可选值:Date[日期],文件大小[Size],混合[Composite]-->
  130. <rollingStyle value="Composite" />
  131. <!--写到一个文件-->
  132. <staticLogFileName value="false" />
  133. <!--单个文件大小。单位:KB|MB|GB-->
  134. <maximumFileSize value="200MB" />
  135. <!--最多保留的文件数,设为"-1"则不限-->
  136. <maxSizeRollBackups value="-1" />
  137. <!--日志格式-->
  138. <layout type="log4net.Layout.PatternLayout">
  139. <conversionPattern value="%message" />
  140. </layout>
  141. <filter type="log4net.Filter.LevelRangeFilter">
  142. <param name="LevelMin" value="WARN" />
  143. <param name="LevelMax" value="WARN" />
  144. </filter>
  145. </appender>
  146. <!-- 信息 Info.log-->
  147. <appender name="InfoLog" type="log4net.Appender.RollingFileAppender">
  148. <!--目录路径,可以是相对路径或绝对路径-->
  149. <param name="File" value="C:\learun_log" />
  150. <!--文件名,按日期生成文件夹-->
  151. <param name="DatePattern" value="/yyyy-MM-dd/&quot;Info.log&quot;" />
  152. <!--追加到文件-->
  153. <appendToFile value="true" />
  154. <!--创建日志文件的方式,可选值:Date[日期],文件大小[Size],混合[Composite]-->
  155. <rollingStyle value="Composite" />
  156. <!--写到一个文件-->
  157. <staticLogFileName value="false" />
  158. <!--单个文件大小。单位:KB|MB|GB-->
  159. <maximumFileSize value="200MB" />
  160. <!--最多保留的文件数,设为"-1"则不限-->
  161. <maxSizeRollBackups value="-1" />
  162. <!--日志格式-->
  163. <layout type="log4net.Layout.PatternLayout">
  164. <conversionPattern value="%message" />
  165. </layout>
  166. <filter type="log4net.Filter.LevelRangeFilter">
  167. <param name="LevelMin" value="INFO" />
  168. <param name="LevelMax" value="INFO" />
  169. </filter>
  170. </appender>
  171. <!-- 调试 Debug.log-->
  172. <appender name="DebugLog" type="log4net.Appender.RollingFileAppender">
  173. <!--目录路径,可以是相对路径或绝对路径-->
  174. <param name="File" value="C:\learun_log" />
  175. <!--文件名,按日期生成文件夹-->
  176. <param name="DatePattern" value="/yyyy-MM-dd/&quot;Debug.log&quot;" />
  177. <!--追加到文件-->
  178. <appendToFile value="true" />
  179. <!--创建日志文件的方式,可选值:Date[日期],文件大小[Size],混合[Composite]-->
  180. <rollingStyle value="Composite" />
  181. <!--写到一个文件-->
  182. <staticLogFileName value="false" />
  183. <!--单个文件大小。单位:KB|MB|GB-->
  184. <maximumFileSize value="200MB" />
  185. <!--最多保留的文件数,设为"-1"则不限-->
  186. <maxSizeRollBackups value="-1" />
  187. <!--日志格式-->
  188. <layout type="log4net.Layout.PatternLayout">
  189. <conversionPattern value="%message" />
  190. </layout>
  191. <filter type="log4net.Filter.LevelRangeFilter">
  192. <param name="LevelMin" value="DEBUG" />
  193. <param name="LevelMax" value="DEBUG" />
  194. </filter>
  195. </appender>
  196. </log4net>
  197. <startup>
  198. <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" />
  199. </startup>
  200. <runtime>
  201. <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
  202. <dependentAssembly>
  203. <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
  204. <bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
  205. </dependentAssembly>
  206. <dependentAssembly>
  207. <assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
  208. <bindingRedirect oldVersion="0.0.0.0-3.1.0.0" newVersion="3.1.0.0" />
  209. </dependentAssembly>
  210. <dependentAssembly>
  211. <publisherPolicy apply="no" />
  212. <assemblyIdentity name="Oracle.ManagedDataAccess" publicKeyToken="89b483f429c47342" culture="neutral" />
  213. <bindingRedirect oldVersion="4.121.0.0 - 4.65535.65535.65535" newVersion="4.121.2.0" />
  214. </dependentAssembly>
  215. <dependentAssembly>
  216. <assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  217. <bindingRedirect oldVersion="0.0.0.0-4.2.0.1" newVersion="4.2.0.1" />
  218. </dependentAssembly>
  219. <dependentAssembly>
  220. <assemblyIdentity name="System.Buffers" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
  221. <bindingRedirect oldVersion="0.0.0.0-4.0.3.0" newVersion="4.0.3.0" />
  222. </dependentAssembly>
  223. <dependentAssembly>
  224. <assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
  225. <bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
  226. </dependentAssembly>
  227. </assemblyBinding>
  228. </runtime>
  229. <entityFramework>
  230. <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
  231. <parameters>
  232. <parameter value="mssqllocaldb" />
  233. </parameters>
  234. </defaultConnectionFactory>
  235. <providers>
  236. <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
  237. <provider invariantName="Oracle.ManagedDataAccess.Client" type="Oracle.ManagedDataAccess.EntityFramework.EFOracleProviderServices, Oracle.ManagedDataAccess.EntityFramework, Version=6.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  238. <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d"></provider></providers>
  239. </entityFramework>
  240. <system.data>
  241. <DbProviderFactories>
  242. <remove invariant="Oracle.ManagedDataAccess.Client" />
  243. <add name="ODP.NET, Managed Driver" invariant="Oracle.ManagedDataAccess.Client" description="Oracle Data Provider for .NET, Managed Driver" type="Oracle.ManagedDataAccess.Client.OracleClientFactory, Oracle.ManagedDataAccess, Version=4.121.2.0, Culture=neutral, PublicKeyToken=89b483f429c47342" />
  244. <remove invariant="MySql.Data.MySqlClient" /><add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" /></DbProviderFactories>
  245. </system.data>
  246. <oracle.manageddataaccess.client>
  247. <version number="*">
  248. <dataSources>
  249. <dataSource alias="SampleDataSource" descriptor="(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=ORCL))) " />
  250. </dataSources>
  251. </version>
  252. </oracle.manageddataaccess.client>
  253. </configuration>