已删除4个文件
已重命名22个文件
已复制3个文件
已修改12个文件
已添加28个文件
ÎļþÃû´Ó Yw.Application.Run.Core/01-configure/2-std/RunAnalyConfigure_StdController.cs ÐÞ¸Ä |
| | |
| | | Service.RunAnalyConfigure.PublishCache(cacheKey); |
| | | var vmList = allList?.Select(x => new RunAnalyConfigureStdDto(x)).ToList(); |
| | | return vmList; |
| | | }, CacheHelper.CacheLevel5); |
| | | }, Yw.Service.ConfigHelper.CacheLevel5); |
| | | return vm_list; |
| | | } |
| | | |
| | |
| | | global using Yw.Untity; |
| | | global using Yw.Application.Run; |
| | | global using Yw.JWT; |
| | | global using Yw.Dto; |
| | | |
| | |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <History>True|2024-02-01T07:13:33.2518157Z;True|2024-01-27T11:05:20.5193198+08:00;True|2024-01-21T14:54:51.3939785+08:00;True|2024-01-08T17:00:51.0941947+08:00;True|2023-12-16T15:43:21.8065953+08:00;True|2023-12-11T11:56:46.3121435+08:00;True|2023-12-11T11:27:23.3317604+08:00;True|2023-12-11T11:27:14.6709240+08:00;True|2023-07-13T12:10:11.2591498+08:00;True|2023-05-25T18:02:16.3580168+08:00;True|2023-05-25T15:44:32.4909866+08:00;</History> |
| | | <History>True|2024-03-26T01:54:08.7672773Z;True|2024-02-01T15:13:33.2518157+08:00;True|2024-01-27T11:05:20.5193198+08:00;True|2024-01-21T14:54:51.3939785+08:00;True|2024-01-08T17:00:51.0941947+08:00;True|2023-12-16T15:43:21.8065953+08:00;True|2023-12-11T11:56:46.3121435+08:00;True|2023-12-11T11:27:23.3317604+08:00;True|2023-12-11T11:27:14.6709240+08:00;True|2023-07-13T12:10:11.2591498+08:00;True|2023-05-25T18:02:16.3580168+08:00;True|2023-05-25T15:44:32.4909866+08:00;</History> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | <RootNamespace>Yw.Application</RootNamespace> |
| | | <GenerateDocumentationFile>True</GenerateDocumentationFile> |
| | | <GeneratePackageOnBuild>True</GeneratePackageOnBuild> |
| | | <Version>1.0.6</Version> |
| | | <Version>3.0.0</Version> |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="Yw.Application.Core" Version="1.4.1" /> |
| | | <PackageReference Include="Yw.Service.Run.Core" Version="1.0.4" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <Folder Include="00-core\3-dto\" /> |
| | | <PackageReference Include="Yw.Application.Core" Version="3.0.1" /> |
| | | <PackageReference Include="Yw.Dto.Run.Core" Version="3.0.0" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
ÎļþÃû´Ó Yw.Application.Run.Core/01-configure/1-mgr/dto/AddRunAnalyConfigureInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Run.Core/01-configure/1-mgr/dto/RunAnalyConfigureDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Run.Core/01-configure/2-std/dto/RunAnalyConfigureStdDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Run.Core/01-configure/1-mgr/dto/SetRunAnalyConfigureInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Run.Core/01-configure/1-mgr/dto/UpdateRunAnalyConfigureInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Run.Core/02-record/1-mgr/dto/AddRunRealLastRecordInput.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
ÎļþÃû´Ó Yw.Application.Run.Core/02-record/2-std/dto/RunRealRecordStdDto.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.Application |
| | | namespace Yw.Dto |
| | | { |
| | | /// <summary> |
| | | /// |
¶Ô±ÈÐÂÎļþ |
| | |
| | | global using System.ComponentModel.DataAnnotations; |
| | | global using System.Text; |
| | | global using Yw.Untity; |
| | | global using Yw.Run; |
| | | global using Yw.Service.Run; |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <!-- |
| | | https://go.microsoft.com/fwlink/?LinkID=208121. |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <Configuration>Release</Configuration> |
| | | <Platform>Any CPU</Platform> |
| | | <PublishDir>bin\Release\net6.0\publish\</PublishDir> |
| | | <PublishProtocol>FileSystem</PublishProtocol> |
| | | </PropertyGroup> |
| | | </Project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <!-- |
| | | https://go.microsoft.com/fwlink/?LinkID=208121. |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <History>True|2024-03-26T01:51:34.4055575Z;</History> |
| | | </PropertyGroup> |
| | | </Project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <Project Sdk="Microsoft.NET.Sdk"> |
| | | |
| | | <PropertyGroup> |
| | | <TargetFramework>net6.0</TargetFramework> |
| | | <ImplicitUsings>enable</ImplicitUsings> |
| | | <Nullable>disable</Nullable> |
| | | <Version>3.0.0</Version> |
| | | </PropertyGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="Yw.Dto.Core" Version="3.0.1" /> |
| | | <PackageReference Include="Yw.Service.Run.Core" Version="3.0.0" /> |
| | | </ItemGroup> |
| | | |
| | | </Project> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <?xml version="1.0" encoding="utf-8"?> |
| | | <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| | | <PropertyGroup> |
| | | <_LastSelectedProfileId>D:\WorkData\模å\Code\Run\Yw.Dto.Run.Core\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | EndProject |
| | | Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Yw.Entry.Run.Core", "Yw.Entry.Run.Core\Yw.Entry.Run.Core.csproj", "{B5BCA833-E9A4-46B8-B7CF-40D1EF66B989}" |
| | | EndProject |
| | | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yw.Dto.Run.Core", "Yw.Dto.Run.Core\Yw.Dto.Run.Core.csproj", "{E953B3D9-5F8A-4119-B519-B9A87EAA55A9}" |
| | | EndProject |
| | | Global |
| | | GlobalSection(SolutionConfigurationPlatforms) = preSolution |
| | | Debug|Any CPU = Debug|Any CPU |
| | |
| | | {B5BCA833-E9A4-46B8-B7CF-40D1EF66B989}.Debug|Any CPU.Build.0 = Debug|Any CPU |
| | | {B5BCA833-E9A4-46B8-B7CF-40D1EF66B989}.Release|Any CPU.ActiveCfg = Release|Any CPU |
| | | {B5BCA833-E9A4-46B8-B7CF-40D1EF66B989}.Release|Any CPU.Build.0 = Release|Any CPU |
| | | {E953B3D9-5F8A-4119-B519-B9A87EAA55A9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
| | | {E953B3D9-5F8A-4119-B519-B9A87EAA55A9}.Debug|Any CPU.Build.0 = Debug|Any CPU |
| | | {E953B3D9-5F8A-4119-B519-B9A87EAA55A9}.Release|Any CPU.ActiveCfg = Release|Any CPU |
| | | {E953B3D9-5F8A-4119-B519-B9A87EAA55A9}.Release|Any CPU.Build.0 = Release|Any CPU |
| | | EndGlobalSection |
| | | GlobalSection(SolutionProperties) = preSolution |
| | | HideSolutionNode = FALSE |
| | |
| | | internal class ConfigHelper |
| | | { |
| | | |
| | | |
| | | /// <summary> |
| | | /// é»è®¤è¿æ¥é
ç½® |
| | | /// </summary> |
| | |
| | | return new ConnectionConfig() |
| | | { |
| | | DbType = SqlSugar.DbType.PostgreSQL,//æ°æ®åºç±»å |
| | | ConnectionString = RunParasHelper.Run.DataBase.ConnectString, |
| | | ConnectionString = RunParasHelper.Run.DataBase.PostgreSql.ConnectString, |
| | | IsAutoCloseConnection = true,//æ¯å¦èªå¨å
³é |
| | | MoreSettings = new ConnMoreSettings() |
| | | { |
| | |
| | | { |
| | | OnLogExecuting = (sql, p) => |
| | | { |
| | | LogHelper.Debug(sql); |
| | | // var sqlString = UtilMethods.GetNativeSql(sql, p); |
| | | //LogHelper.Debug(sqlString); |
| | | // Console.WriteLine(sql); |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è®°å½è¿æ¥é
ç½® |
| | | /// PostgreSqlè¿æ¥é
ç½® |
| | | /// </summary> |
| | | internal static ConnectionConfig RecordConnectionConfig |
| | | internal static ConnectionConfig PostgreSqlConnectionConfig |
| | | { |
| | | get |
| | | { |
| | |
| | | return new ConnectionConfig() |
| | | { |
| | | DbType = SqlSugar.DbType.PostgreSQL,//æ°æ®åºç±»å |
| | | ConnectionString = RunParasHelper.Run.DataBase.RecordConnectString, |
| | | ConnectionString = RunParasHelper.Run.DataBase.PostgreSql.ConnectString, |
| | | IsAutoCloseConnection = true,//æ¯å¦èªå¨å
³é |
| | | MoreSettings = new ConnMoreSettings() |
| | | { |
| | |
| | | { |
| | | OnLogExecuting = (sql, p) => |
| | | { |
| | | LogHelper.Debug(sql); |
| | | // var sqlString = UtilMethods.GetNativeSql(sql, p); |
| | | //LogHelper.Debug(sqlString); |
| | | // Console.WriteLine(sql); |
| | | } |
| | | } |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// ç¼åä¿ææ¶é´ ï¼åéï¼ |
| | | /// SQLiteè¿æ¥é
ç½® |
| | | /// </summary> |
| | | public static int CacheKeepTime |
| | | internal static ConnectionConfig SQLiteConnectionConfig |
| | | { |
| | | get |
| | | { |
| | | return MemoryCacheParasHelper.MemoryCache.KeepTime; |
| | | //SnowFlakeSingle.WorkId = Settings.SqlSugar.SnowFlakeWorkId; ä¸åæºå¨é
ç½®çå¯ä¸æ°å; // åæå¡å¨ä¸éè¦æå® |
| | | return new ConnectionConfig() |
| | | { |
| | | DbType = SqlSugar.DbType.Sqlite,//æ°æ®åºç±»å |
| | | ConnectionString = RunParasHelper.Run.DataBase.SQLite.ConnectString, |
| | | IsAutoCloseConnection = true,//æ¯å¦èªå¨å
³é |
| | | MoreSettings = new ConnMoreSettings() |
| | | { |
| | | //PgSqlIsAutoToLower = false //æ°æ®åºåå¨å¤§ååæ®µç ï¼éè¦æè¿ä¸ªè®¾ä¸ºfalse ï¼å¹¶ä¸å®ä½ååæ®µåç§°è¦ä¸æ · |
| | | }, |
| | | AopEvents = new AopEvents |
| | | { |
| | | OnLogExecuting = (sql, p) => |
| | | { |
| | | // var sqlString = UtilMethods.GetNativeSql(sql, p); |
| | | //LogHelper.Debug(sqlString); |
| | | // Console.WriteLine(sql); |
| | | } |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// ç¼åéæºæ¶é´ ï¼ç§ï¼ |
| | | /// é»è®¤è®°å½è¿æ¥é
ç½® |
| | | /// </summary> |
| | | public static int CacheRandomTime |
| | | internal static ConnectionConfig DefaultRecordConnectionConfig |
| | | { |
| | | get |
| | | { |
| | | return RandomHelper.Random(0, MemoryCacheParasHelper.MemoryCache.RandomTime); |
| | | //SnowFlakeSingle.WorkId = Settings.SqlSugar.SnowFlakeWorkId; ä¸åæºå¨é
ç½®çå¯ä¸æ°å; // åæå¡å¨ä¸éè¦æå® |
| | | return new ConnectionConfig() |
| | | { |
| | | DbType = SqlSugar.DbType.PostgreSQL,//æ°æ®åºç±»å |
| | | ConnectionString = RunParasHelper.Run.DataBase.PostgreSql.RecordConnectString, |
| | | IsAutoCloseConnection = true,//æ¯å¦èªå¨å
³é |
| | | MoreSettings = new ConnMoreSettings() |
| | | { |
| | | //PgSqlIsAutoToLower = false //æ°æ®åºåå¨å¤§ååæ®µç ï¼éè¦æè¿ä¸ªè®¾ä¸ºfalse ï¼å¹¶ä¸å®ä½ååæ®µåç§°è¦ä¸æ · |
| | | }, |
| | | AopEvents = new AopEvents |
| | | { |
| | | OnLogExecuting = (sql, p) => |
| | | { |
| | | //var sqlString = UtilMethods.GetNativeSql(sql, p); |
| | | // LogHelper.Debug(sqlString); |
| | | // Console.WriteLine(sql); |
| | | } |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// PostgreSqlè®°å½è¿æ¥é
ç½® |
| | | /// </summary> |
| | | internal static ConnectionConfig PostgreSqlRecordConnectionConfig |
| | | { |
| | | get |
| | | { |
| | | //SnowFlakeSingle.WorkId = Settings.SqlSugar.SnowFlakeWorkId; ä¸åæºå¨é
ç½®çå¯ä¸æ°å; // åæå¡å¨ä¸éè¦æå® |
| | | return new ConnectionConfig() |
| | | { |
| | | DbType = SqlSugar.DbType.PostgreSQL,//æ°æ®åºç±»å |
| | | ConnectionString = RunParasHelper.Run.DataBase.PostgreSql.RecordConnectString, |
| | | IsAutoCloseConnection = true,//æ¯å¦èªå¨å
³é |
| | | MoreSettings = new ConnMoreSettings() |
| | | { |
| | | //PgSqlIsAutoToLower = false //æ°æ®åºåå¨å¤§ååæ®µç ï¼éè¦æè¿ä¸ªè®¾ä¸ºfalse ï¼å¹¶ä¸å®ä½ååæ®µåç§°è¦ä¸æ · |
| | | }, |
| | | AopEvents = new AopEvents |
| | | { |
| | | OnLogExecuting = (sql, p) => |
| | | { |
| | | //var sqlString = UtilMethods.GetNativeSql(sql, p); |
| | | // LogHelper.Debug(sqlString); |
| | | // Console.WriteLine(sql); |
| | | } |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// SQLiteè®°å½è¿æ¥é
ç½® |
| | | /// </summary> |
| | | internal static ConnectionConfig SQLiteRecordConnectionConfig |
| | | { |
| | | get |
| | | { |
| | | //SnowFlakeSingle.WorkId = Settings.SqlSugar.SnowFlakeWorkId; ä¸åæºå¨é
ç½®çå¯ä¸æ°å; // åæå¡å¨ä¸éè¦æå® |
| | | return new ConnectionConfig() |
| | | { |
| | | DbType = SqlSugar.DbType.Sqlite,//æ°æ®åºç±»å |
| | | ConnectionString = RunParasHelper.Run.DataBase.SQLite.RecordConnectString, |
| | | IsAutoCloseConnection = true,//æ¯å¦èªå¨å
³é |
| | | MoreSettings = new ConnMoreSettings() |
| | | { |
| | | //PgSqlIsAutoToLower = false //æ°æ®åºåå¨å¤§ååæ®µç ï¼éè¦æè¿ä¸ªè®¾ä¸ºfalse ï¼å¹¶ä¸å®ä½ååæ®µåç§°è¦ä¸æ · |
| | | }, |
| | | AopEvents = new AopEvents |
| | | { |
| | | OnLogExecuting = (sql, p) => |
| | | { |
| | | //var sqlString = UtilMethods.GetNativeSql(sql, p); |
| | | // LogHelper.Debug(sqlString); |
| | | // Console.WriteLine(sql); |
| | | } |
| | | } |
| | | }; |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | |
| | | public Paras_Run_DataBase DataBase { get; set; } |
| | | |
| | | /// <summary> |
| | | /// Redis ç¼å |
| | | /// æè¿ç¼å |
| | | /// </summary> |
| | | public Paras_Run_RedisCache RedisCache { get; set; } |
| | | public Paras_Run_LCache LCache { get; set; } |
| | | |
| | | /// <summary> |
| | | /// éé |
| | | /// </summary> |
| | | public Paras_Run_Queue Queue { get; set; } |
| | | |
| | | /// <summary> |
| | | /// äº¤æ¢æº |
| | | /// </summary> |
| | | public Paras_Run_Exchange Exchange { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è¿è¡ |
| | |
| | | public class Paras_Run_DataBase |
| | | { |
| | | /// <summary> |
| | | /// è¿æ¥å符串 |
| | | /// æ°æ®åºç±»å |
| | | /// </summary> |
| | | public string ConnectString { get; set; } |
| | | public string DbType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è®°å½è¿æ¥å符串 |
| | | /// å·¥å |
| | | /// </summary> |
| | | public string RecordConnectString { get; set; } |
| | | public Paras_Run_DataBase_Factory Factory { get; set; } |
| | | |
| | | /// <summary> |
| | | /// PostgreSql |
| | | /// </summary> |
| | | public Paras_Run_DataBase_PostgreSql PostgreSql { get; set; } |
| | | |
| | | /// <summary> |
| | | /// SQLite |
| | | /// </summary> |
| | | public Paras_Run_DataBase_SQLite SQLite { get; set; } |
| | | |
| | | |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Settings |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Run_DataBase_Factory |
| | | { |
| | | /// <summary> |
| | | /// æ¯å¦å¼å¯ç¼å |
| | | /// </summary> |
| | | public bool EnableCache { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¼åæ¶é´ï¼ç§ï¼ |
| | | /// </summary> |
| | | public int CacheTime { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Settings |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Run_DataBase_PostgreSql |
| | | { |
| | | /// <summary> |
| | | /// è¿æ¥å符串 |
| | | /// </summary> |
| | | public string ConnectString { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è®°å½è¿æ¥å符串 |
| | | /// </summary> |
| | | public string RecordConnectString { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Settings |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Run_DataBase_SQLite |
| | | { |
| | | /// <summary> |
| | | /// è¿æ¥å符串 |
| | | /// </summary> |
| | | public string ConnectString { get; set; } |
| | | |
| | | /// <summary> |
| | | /// è®°å½è¿æ¥å符串 |
| | | /// </summary> |
| | | public string RecordConnectString { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Settings |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Run_Exchange |
| | | { |
| | | /// <summary> |
| | | /// ééç±»å RabbitMq Memory |
| | | /// </summary> |
| | | public string ExchangeType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¥å |
| | | /// </summary> |
| | | public Paras_Run_Exchange_Factory Factory { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Settings |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Run_Exchange_Factory |
| | | { |
| | | /// <summary> |
| | | /// æ¯å¦å¼å¯ç¼å |
| | | /// </summary> |
| | | public bool EnableCache { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¼åæ¶é´ï¼ç§ï¼ |
| | | /// </summary> |
| | | public int CacheTime { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Settings |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Run_LCache |
| | | { |
| | | /// <summary> |
| | | /// åç¼ |
| | | /// </summary> |
| | | public string Prefix { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¼åç±»å Redis Medis(å
å) |
| | | /// </summary> |
| | | public string LCacheType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¥å |
| | | /// </summary> |
| | | public Paras_Run_LCache_Factory Factory { get; set; } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Settings |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Run_LCache_Factory |
| | | { |
| | | /// <summary> |
| | | /// æ¯å¦å¼å¯ç¼å |
| | | /// </summary> |
| | | public bool EnableCache { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¼åæ¶é´ï¼ç§ï¼ |
| | | /// </summary> |
| | | public int CacheTime { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Settings |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Run_Queue |
| | | { |
| | | /// <summary> |
| | | /// ééç±»å RabbitMq Memory |
| | | /// </summary> |
| | | public string QueueType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// å·¥å |
| | | /// </summary> |
| | | public Paras_Run_Queue_Factory Factory { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Settings |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class Paras_Run_Queue_Factory |
| | | { |
| | | /// <summary> |
| | | /// æ¯å¦å¼å¯ç¼å |
| | | /// </summary> |
| | | public bool EnableCache { get; set; } |
| | | |
| | | /// <summary> |
| | | /// ç¼åæ¶é´ï¼ç§ï¼ |
| | | /// </summary> |
| | | public int CacheTime { get; set; } |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.DAL |
| | | { |
| | | /// <summary> |
| | | /// è¿è¡åæé
ç½® |
| | | /// </summary> |
| | | public interface IRunAnalyConfigure : IBaseDAL<Entity.RunAnalyConfigure> |
| | | { |
| | | |
| | | |
| | | /// <summary> |
| | | /// 设置 |
| | | /// </summary> |
| | | bool Set(List<Entity.RunAnalyConfigure> entityList); |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.DAL |
| | | { |
| | | /// <summary> |
| | | /// è¿è¡å®æ¶è®°å½ |
| | | /// </summary> |
| | | public interface IRunRealRecord |
| | | { |
| | | |
| | | #region 常è§è·å |
| | | |
| | | /// <summary> |
| | | /// è·åæè¿å æ¡å表 |
| | | /// </summary> |
| | | List<Entity.RunRealRecord> GetLastList(DateTime? StartTime, DateTime? EndTime, int Number = 1, bool? Run = null); |
| | | |
| | | /// <summary> |
| | | /// è·åææ¥çæè¿å æ¡æ°æ® |
| | | /// </summary> |
| | | List<Entity.RunRealRecord> GetLastListByDay(DateTime Day, int Number = 1, bool? Run = null); |
| | | |
| | | /// <summary> |
| | | /// è·åæ¥æåºé´çæè¿å æ¡æ°æ® |
| | | /// </summary> |
| | | List<Entity.RunRealRecord> GetLastListByDayRange(DateTime StartDay, DateTime EndDay, int Number = 1, bool? Run = null); |
| | | |
| | | /// <summary> |
| | | /// è·åæ¶é´åºé´çæè¿å æ¡æ°æ® |
| | | /// </summary> |
| | | List<Entity.RunRealRecord> GetLastListByTimeRange(DateTime StartTime, DateTime EndTime, int Number = 1, bool? Run = null); |
| | | |
| | | /// <summary> |
| | | /// è·å |
| | | /// </summary> |
| | | List<Entity.RunRealRecord> Get(DateTime? StartTime, DateTime? EndTime, bool? Run = null); |
| | | |
| | | /// <summary> |
| | | /// è·åææ¥çæ°æ® |
| | | /// </summary> |
| | | List<Entity.RunRealRecord> GetByDay(DateTime Day, bool? Run = null); |
| | | |
| | | /// <summary> |
| | | /// è·åæ¥æåºé´å
çæ°æ® |
| | | /// </summary> |
| | | List<Entity.RunRealRecord> GetByDayRange(DateTime StartDay, DateTime EndDay, bool? Run = null); |
| | | |
| | | /// <summary> |
| | | /// è·åæ¶é´åºé´çæ°æ® |
| | | /// </summary> |
| | | List<Entity.RunRealRecord> GetByTimeRange(DateTime StartTime, DateTime EndTime, bool? Run = null); |
| | | |
| | | /// <summary> |
| | | /// è·åå页å表 |
| | | /// </summary> |
| | | List<Entity.RunRealRecord> GetPageList(DateTime? StartTime, DateTime? EndTime, bool? Run, int PageIndex, int PageSize, ref int Total); |
| | | |
| | | #endregion |
| | | |
| | | #region éè¿ ObjectType å ObjectID è·å |
| | | |
| | | /// <summary> |
| | | /// éè¿ ObjectType å ObjectID è·åæè¿å æ¡è®°å½ |
| | | /// </summary> |
| | | List<Entity.RunRealRecord> GetLastListByObjectTypeAndObjectID(string ObjectType, long ObjectID, int Number = 1, bool? Run = null); |
| | | |
| | | /// <summary> |
| | | /// éè¿ ObjectType å ObjectID è·å |
| | | /// </summary> |
| | | List<Entity.RunRealRecord> GetByObjectTypeAndObjectID(string ObjectType, long ObjectID, DateTime? StartTime, DateTime? EndTime, bool? Run = null); |
| | | |
| | | /// <summary> |
| | | /// éè¿ ObjectType å ObjectID è·åææ¥çæ°æ® |
| | | /// </summary> |
| | | List<Entity.RunRealRecord> GetByObjectTypeAndObjectIDOfDay(string ObjectType, long ObjectID, DateTime Day, bool? Run = null); |
| | | |
| | | /// <summary> |
| | | /// éè¿ ObjectType å ObjectID è·åæ¥æåºé´å
çæ°æ® |
| | | /// </summary> |
| | | List<Entity.RunRealRecord> GetByObjectTypeAndObjectIDOfDayRange(string ObjectType, long ObjectID, DateTime StartDay, DateTime EndDay, bool? Run = null); |
| | | |
| | | /// <summary> |
| | | /// éè¿ ObjectType å ObjectID è·åæ¶é´åºé´å
çæ°æ® |
| | | /// </summary> |
| | | List<Entity.RunRealRecord> GetByObjectTypeAndObjectIDOfTimeRange(string ObjectType, long ObjectID, DateTime StartTime, DateTime EndTime, bool? Run = null); |
| | | |
| | | /// <summary> |
| | | /// éè¿ ObjectType å ObjectID è·åå页å表 |
| | | /// </summary> |
| | | List<Entity.RunRealRecord> GetPageListByObjectTypeAndObjectID(string ObjectType, long ObjectID, DateTime? StartTime, DateTime? EndTime, bool? Run, int PageIndex, int PageSize, ref int Total); |
| | | |
| | | |
| | | #endregion |
| | | |
| | | #region InsertOrUpdate |
| | | |
| | | /// <summary> |
| | | /// æå
¥ |
| | | /// </summary> |
| | | bool InsertOrUpdate(Entity.RunRealRecord entity); |
| | | |
| | | /// <summary> |
| | | /// æ¹éæå
¥ |
| | | /// </summary> |
| | | bool InsertOrUpdate(List<Entity.RunRealRecord> list); |
| | | |
| | | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
copy from Yw.Service.Run.Core/04-dal/RunAnalyConfigure.cs
copy to Yw.Service.Run.Core/04-dal/02-postgresql/RunAnalyConfigure.cs
Îļþ´Ó Yw.Service.Run.Core/04-dal/RunAnalyConfigure.cs ¸´ÖÆ |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.PostgreSql |
| | | { |
| | | /// <summary> |
| | | /// è¿è¡åæé
ç½® |
| | | /// </summary> |
| | | public partial class RunAnalyConfigure : BaseDAL<Entity.RunAnalyConfigure> |
| | | public partial class RunAnalyConfigure : BaseDAL<Entity.RunAnalyConfigure>, IRunAnalyConfigure |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public override ConnectionConfig ConnectionConfig |
| | | { |
| | | get { return ConfigHelper.DefaultConnectionConfig; } |
| | | get { return ConfigHelper.PostgreSqlConnectionConfig; } |
| | | } |
| | | |
| | | /// <summary> |
copy from Yw.Service.Run.Core/04-dal/RunRealRecord.cs
copy to Yw.Service.Run.Core/04-dal/02-postgresql/RunRealRecord.cs
Îļþ´Ó Yw.Service.Run.Core/04-dal/RunRealRecord.cs ¸´ÖÆ |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.PostgreSql |
| | | { |
| | | /// <summary> |
| | | /// è¿è¡å®æ¶è®°å½ |
| | | /// </summary> |
| | | public class RunRealRecord |
| | | public class RunRealRecord : IRunRealRecord |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public ConnectionConfig ConnectionConfig |
| | | { |
| | | get { return ConfigHelper.RecordConnectionConfig; } |
| | | get { return ConfigHelper.PostgreSqlRecordConnectionConfig; } |
| | | } |
| | | |
| | | #region 常è§è·å |
ÎļþÃû´Ó Yw.Service.Run.Core/04-dal/RunAnalyConfigure.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.SQLite |
| | | { |
| | | /// <summary> |
| | | /// è¿è¡åæé
ç½® |
| | | /// </summary> |
| | | public partial class RunAnalyConfigure : BaseDAL<Entity.RunAnalyConfigure> |
| | | public partial class RunAnalyConfigure : BaseDAL<Entity.RunAnalyConfigure>, IRunAnalyConfigure |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public override ConnectionConfig ConnectionConfig |
| | | { |
| | | get { return ConfigHelper.DefaultConnectionConfig; } |
| | | get { return ConfigHelper.SQLiteConnectionConfig; } |
| | | } |
| | | |
| | | /// <summary> |
ÎļþÃû´Ó Yw.Service.Run.Core/04-dal/RunRealRecord.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.DAL |
| | | namespace Yw.DAL.SQLite |
| | | { |
| | | /// <summary> |
| | | /// è¿è¡å®æ¶è®°å½ |
| | | /// </summary> |
| | | public class RunRealRecord |
| | | public class RunRealRecord : IRunRealRecord |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public ConnectionConfig ConnectionConfig |
| | | { |
| | | get { return ConfigHelper.RecordConnectionConfig; } |
| | | get { return ConfigHelper.SQLiteRecordConnectionConfig; } |
| | | } |
| | | |
| | | #region 常è§è·å |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.LCache |
| | | { |
| | | internal class CacheKeyHelper |
| | | { |
| | | /// <summary> |
| | | /// çæ Key |
| | | /// </summary> |
| | | public static string CreateKey(string flag) |
| | | { |
| | | return $"{RunParasHelper.Run.LCache.Prefix}:{flag}"; |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.LCache |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public interface IRunRealLastRecordCacheHelper |
| | | { |
| | | |
| | | /// <summary> |
| | | /// 设置æå䏿¡è®°å½ |
| | | /// </summary> |
| | | bool SetLastRecord(Model.RunRealRecord record); |
| | | |
| | | /// <summary> |
| | | /// 设置æå䏿¡è®°å½ |
| | | /// </summary> |
| | | bool SetLastRecord(List<Model.RunRealRecord> list); |
| | | |
| | | /// <summary> |
| | | /// è·åæå䏿¡è®°å½ |
| | | /// </summary> |
| | | List<Model.RunRealRecord> GetLastRecord(); |
| | | |
| | | /// <summary> |
| | | /// è·åæå䏿¡è®°å½ |
| | | /// </summary> |
| | | List<Model.RunRealRecord> GetLastRecord(string ObjectType); |
| | | |
| | | /// <summary> |
| | | /// è·åæå䏿¡è®°å½ |
| | | /// </summary> |
| | | List<Model.RunRealRecord> GetLastRecord(long ObjectID); |
| | | |
| | | /// <summary> |
| | | /// è·åæå䏿¡è®°å½ |
| | | /// </summary> |
| | | Model.RunRealRecord GetLastRecord(string ObjectType, long ObjectID); |
| | | |
| | | /// <summary> |
| | | /// è·åæå䏿¡è®°å½ |
| | | /// </summary> |
| | | List<Model.RunRealRecord> GetLastRecord(string ObjectType, IEnumerable<long> ObjectIds); |
| | | |
| | | /// <summary> |
| | | /// è·åæå䏿¡è®°å½ |
| | | /// </summary> |
| | | List<Model.RunRealRecord> GetLastRecord(List<(string, long)> list); |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | } |
ÎļþÃû´Ó Yw.Service.Run.Core/05-cache/1-run-real-last-record/RunRealLastRecordCacheHelper.cs ÐÞ¸Ä |
| | |
| | | namespace Yw.RedisCache |
| | | namespace Yw.LCache.Redis |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class RunRealLastRecordCacheHelper |
| | | public class RunRealLastRecordCacheHelper : IRunRealLastRecordCacheHelper |
| | | { |
| | | |
| | | //Redis客æ·ç«¯è¾
å©ç±»å¯¹è±¡ |
| | |
| | | //çæ HashKey |
| | | private static string CreateHashKey() |
| | | { |
| | | return RedisKeyHelper.CreateKey(_flag); |
| | | return CacheKeyHelper.CreateKey(_flag); |
| | | } |
| | | private const string _flag = "run-real-last-record"; |
| | | |
| | |
| | | { |
| | | var hashKey = CreateHashKey(); |
| | | var hashField = CreateHashField(ObjectType); |
| | | return _redisClient.HashGetJsonStartWith<Model.RunRealRecord>(hashKey, hashField); |
| | | return _redisClient.HashGetJsonStartsWith<Model.RunRealRecord>(hashKey, hashField); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | var hashKey = CreateHashKey(); |
| | | var hashField = CreateHashField(ObjectID); |
| | | return _redisClient.HashGetJsonEndWith<Model.RunRealRecord>(hashKey, hashField); |
| | | return _redisClient.HashGetJsonEndsWith<Model.RunRealRecord>(hashKey, hashField); |
| | | } |
| | | |
| | | /// <summary> |
copy from Yw.Service.Run.Core/05-cache/1-run-real-last-record/RunRealLastRecordCacheHelper.cs
copy to Yw.Service.Run.Core/05-lcache/03-medis/RunRealLastRecordCacheHelper.cs
Îļþ´Ó Yw.Service.Run.Core/05-cache/1-run-real-last-record/RunRealLastRecordCacheHelper.cs ¸´ÖÆ |
| | |
| | | namespace Yw.RedisCache |
| | | namespace Yw.LCache.Medis |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class RunRealLastRecordCacheHelper |
| | | public class RunRealLastRecordCacheHelper : IRunRealLastRecordCacheHelper |
| | | { |
| | | |
| | | //Redis客æ·ç«¯è¾
å©ç±»å¯¹è±¡ |
| | | private readonly RedisClientHelper _redisClient = new(); |
| | | private readonly MedisCacheHelper _medisHelper = new(); |
| | | |
| | | //çæ HashKey |
| | | private static string CreateHashKey() |
| | | { |
| | | return RedisKeyHelper.CreateKey(_flag); |
| | | return CacheKeyHelper.CreateKey(_flag); |
| | | } |
| | | private const string _flag = "run-real-last-record"; |
| | | |
| | |
| | | } |
| | | var hashKey = CreateHashKey(); |
| | | var hashField = CreateHashField(record.ObjectType, record.ObjectID); |
| | | _redisClient.HashSetJosn(hashKey, hashField, record); |
| | | _medisHelper.HashSet(hashKey, hashField, record); |
| | | return true; |
| | | } |
| | | |
| | |
| | | public List<Model.RunRealRecord> GetLastRecord() |
| | | { |
| | | var hashKey = CreateHashKey(); |
| | | return _redisClient.HashGetJsonAll<Model.RunRealRecord>(hashKey); |
| | | return _medisHelper.HashValues<Model.RunRealRecord>(hashKey); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | var hashKey = CreateHashKey(); |
| | | var hashField = CreateHashField(ObjectType); |
| | | return _redisClient.HashGetJsonStartWith<Model.RunRealRecord>(hashKey, hashField); |
| | | return _medisHelper.HashGetStartsWith<Model.RunRealRecord>(hashKey, hashField); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | var hashKey = CreateHashKey(); |
| | | var hashField = CreateHashField(ObjectID); |
| | | return _redisClient.HashGetJsonEndWith<Model.RunRealRecord>(hashKey, hashField); |
| | | return _medisHelper.HashGetEndsWith<Model.RunRealRecord>(hashKey, hashField); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | var hashKey = CreateHashKey(); |
| | | var hashField = CreateHashField(ObjectType, ObjectID); |
| | | return _redisClient.HashGetJson<Model.RunRealRecord>(hashKey, hashField); |
| | | return _medisHelper.HashGet<Model.RunRealRecord>(hashKey, hashField); |
| | | } |
| | | |
| | | /// <summary> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Exchange |
| | | { |
| | | /// <summary> |
| | | /// è¿è¡äº¤æ¢æºè¾
å©ç±» |
| | | /// </summary> |
| | | internal class RunExchangeNameHelper |
| | | { |
| | | /// <summary> |
| | | /// è·åäº¤æ¢æºåç§° |
| | | /// </summary> |
| | | public static string GetExchangeName() |
| | | { |
| | | return Settings.RunParasHelper.Run.Run.ExchangeName; |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Exchange |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public interface IRunRealRecordExchangeHelper |
| | | { |
| | | /// <summary> |
| | | /// æ¨é |
| | | /// </summary> |
| | | bool Push(List<Yw.Model.RunRealRecord> list); |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¶ |
| | | /// </summary> |
| | | bool Receive(Func<List<Yw.Model.RunRealRecord>, bool> func); |
| | | |
| | | /// <summary> |
| | | /// å
³é |
| | | /// </summary> |
| | | void Close(); |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Exchange.RabbitMq |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class RunRealRecordExchangeHelper : IRunRealRecordExchangeHelper |
| | | { |
| | | private readonly Yw.RabbitMqExChangeHelper _helper = new(); |
| | | |
| | | /// <summary> |
| | | /// æ¨é |
| | | /// </summary> |
| | | public bool Push(List<Yw.Model.RunRealRecord> list) |
| | | { |
| | | if (list == null || !list.Any()) |
| | | { |
| | | return false; |
| | | } |
| | | var exchangeName = RunExchangeNameHelper.GetExchangeName(); |
| | | return _helper.Push(exchangeName, list); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¶ |
| | | /// </summary> |
| | | public bool Receive(Func<List<Yw.Model.RunRealRecord>, bool> func) |
| | | { |
| | | if (func == null) |
| | | { |
| | | return false; |
| | | } |
| | | var exchangeName = RunExchangeNameHelper.GetExchangeName(); |
| | | return _helper.Receive(exchangeName, func); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å
³é |
| | | /// </summary> |
| | | public void Close() |
| | | { |
| | | _helper.Close(); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Exchange.Memory |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class RunRealRecordExchangeHelper : IRunRealRecordExchangeHelper |
| | | { |
| | | private readonly Yw.MemoryExChangeHelper _helper = new(); |
| | | |
| | | /// <summary> |
| | | /// æ¨é |
| | | /// </summary> |
| | | public bool Push(List<Yw.Model.RunRealRecord> list) |
| | | { |
| | | if (list == null || !list.Any()) |
| | | { |
| | | return false; |
| | | } |
| | | var exchangeName = RunExchangeNameHelper.GetExchangeName(); |
| | | return _helper.Push(exchangeName, list); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¶ |
| | | /// </summary> |
| | | public bool Receive(Func<List<Yw.Model.RunRealRecord>, bool> func) |
| | | { |
| | | if (func == null) |
| | | { |
| | | return false; |
| | | } |
| | | var exchangeName = RunExchangeNameHelper.GetExchangeName(); |
| | | return _helper.Receive(exchangeName, func); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å
³é |
| | | /// </summary> |
| | | public void Close() |
| | | { |
| | | _helper.Close(); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Service.Run |
| | | { |
| | | /// <summary> |
| | | /// DALè¾
å©ç±» |
| | | /// </summary> |
| | | internal class DALCreateHelper |
| | | { |
| | | /// <summary> |
| | | /// å建DAL |
| | | /// </summary> |
| | | /// <typeparam name="T"></typeparam> |
| | | /// <returns></returns> |
| | | public static T CreateDAL<T>() |
| | | { |
| | | var dbType = Settings.RunParasHelper.Run.DataBase.DbType; |
| | | var enableCache = Settings.RunParasHelper.Run.DataBase.Factory.EnableCache; |
| | | var cacheTime = Settings.RunParasHelper.Run.DataBase.Factory.CacheTime; |
| | | return Yw.DALFactory.CreateDAL<T>(dbType, enableCache, cacheTime); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Service.Run |
| | | { |
| | | /// <summary> |
| | | /// Exchangeè¾
å©ç±» |
| | | /// </summary> |
| | | internal class ExchangeCreateHelper |
| | | { |
| | | /// <summary> |
| | | /// å建Exchange |
| | | /// </summary> |
| | | public static T CreateExchange<T>() |
| | | { |
| | | var exchangeType = Settings.RunParasHelper.Run.Exchange.ExchangeType; |
| | | var enableCache = Settings.RunParasHelper.Run.Exchange.Factory.EnableCache; |
| | | var cacheTime = Settings.RunParasHelper.Run.Exchange.Factory.CacheTime; |
| | | return Yw.ExchangeFactory.CreateExchange<T>(exchangeType, enableCache, cacheTime); |
| | | } |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Service.Run |
| | | { |
| | | /// <summary> |
| | | /// LCacheè¾
å©ç±» |
| | | /// </summary> |
| | | internal class LCacheCreateHelper |
| | | { |
| | | /// <summary> |
| | | /// å建LCache |
| | | /// </summary> |
| | | public static T CreateLCache<T>() |
| | | { |
| | | var cacheType = Settings.RunParasHelper.Run.LCache.LCacheType; |
| | | var enableCache = Settings.RunParasHelper.Run.LCache.Factory.EnableCache; |
| | | var cacheTime = Settings.RunParasHelper.Run.LCache.Factory.CacheTime; |
| | | return Yw.LCacheFactory.CreateLCache<T>(cacheType, enableCache, cacheTime); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Service.Run |
| | | { |
| | | /// <summary> |
| | | /// Queueè¾
å©ç±» |
| | | /// </summary> |
| | | internal class QueueCreateHelper |
| | | { |
| | | /// <summary> |
| | | /// å建Queue |
| | | /// </summary> |
| | | public static T CreateQueue<T>() |
| | | { |
| | | var queueType = Settings.RunParasHelper.Run.Queue.QueueType; |
| | | var enableCache = Settings.RunParasHelper.Run.Queue.Factory.EnableCache; |
| | | var cacheTime = Settings.RunParasHelper.Run.Queue.Factory.CacheTime; |
| | | return Yw.QueueFactory.CreateQueue<T>(queueType, enableCache, cacheTime); |
| | | } |
| | | |
| | | } |
| | | } |
ÎļþÃû´Ó Yw.Service.Run.Core/06-service/1-configure/RunAnalyConfigure.cs ÐÞ¸Ä |
| | |
| | | { |
| | | var all = RunAnalyConfigureCacheHelper.GetSet(() => |
| | | { |
| | | var dal = new DAL.RunAnalyConfigure(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunAnalyConfigure>(); |
| | | var entity_list = dal.GetAll(); |
| | | var model_list = Entity2Models(entity_list); |
| | | if (model_list == null) |
| | |
| | | //éè¿ ID æ´æ°ç¼å |
| | | private static void UpdateCache(long ID) |
| | | { |
| | | var dal = new DAL.RunAnalyConfigure(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunAnalyConfigure>(); |
| | | var entity_ds = dal.GetByID(ID); |
| | | var model_ds = Entity2Model(entity_ds); |
| | | var all = GetCache(); |
| | |
| | | { |
| | | if (Ids == null || Ids.Count < 1) |
| | | return; |
| | | var dal = new DAL.RunAnalyConfigure(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunAnalyConfigure>(); |
| | | var entity_list = dal.GetByIds(Ids); |
| | | var model_list = Entity2Models(entity_list); |
| | | var all = GetCache(); |
| | |
| | | { |
| | | return default; |
| | | } |
| | | var dal = new DAL.RunAnalyConfigure(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunAnalyConfigure>(); |
| | | var entity = Model2Entity(model); |
| | | var id = dal.Insert(entity); |
| | | if (id > 0) |
| | |
| | | { |
| | | return default; |
| | | } |
| | | var dal = new DAL.RunAnalyConfigure(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunAnalyConfigure>(); |
| | | var entity_list = Model2Entities(list); |
| | | var ids = dal.InsertsR(entity_list); |
| | | if (ids != null && ids.Count > 0) |
| | |
| | | { |
| | | return default; |
| | | } |
| | | var dal = new DAL.RunAnalyConfigure(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunAnalyConfigure>(); |
| | | var entity = Model2Entity(model); |
| | | var bol = dal.Update(entity); |
| | | if (bol) |
| | |
| | | { |
| | | return default; |
| | | } |
| | | var dal = new DAL.RunAnalyConfigure(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunAnalyConfigure>(); |
| | | var entity_list = Model2Entities(list.ToList()); |
| | | var bol = dal.Updates(entity_list); |
| | | if (bol) |
| | |
| | | public bool DeleteByID(long ID, out string Msg) |
| | | { |
| | | Msg = string.Empty; |
| | | var dal = new DAL.RunAnalyConfigure(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunAnalyConfigure>(); |
| | | var bol = dal.DeleteByID(ID); |
| | | if (bol) |
| | | { |
| | |
| | | public bool Set(List<Model.RunAnalyConfigure> list) |
| | | { |
| | | var entityList = Model2Entities(list); |
| | | var dal = new DAL.RunAnalyConfigure(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunAnalyConfigure>(); |
| | | var bol = dal.Set(entityList); |
| | | if (bol) |
| | | { |
ÎļþÃû´Ó Yw.Service.Run.Core/06-service/2-record/RunRealRecord.cs ÐÞ¸Ä |
| | |
| | | /// </summary> |
| | | public Model.RunRealRecord GetLastRecord(string ObjectType, long ObjectID) |
| | | { |
| | | var redisCache = new RedisCache.RunRealLastRecordCacheHelper(); |
| | | return redisCache.GetLastRecord(ObjectType, ObjectID); |
| | | var lcacheHelper = LCacheCreateHelper.CreateLCache<Yw.LCache.IRunRealLastRecordCacheHelper>(); |
| | | return lcacheHelper.GetLastRecord(ObjectType, ObjectID); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | return default; |
| | | } |
| | | var redisCache = new RedisCache.RunRealLastRecordCacheHelper(); |
| | | return redisCache.GetLastRecord(ObjectType, ObjectIds); |
| | | var lcacheHelper = LCacheCreateHelper.CreateLCache<Yw.LCache.IRunRealLastRecordCacheHelper>(); |
| | | return lcacheHelper.GetLastRecord(ObjectType, ObjectIds); |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | return default; |
| | | } |
| | | var redisCache = new RedisCache.RunRealLastRecordCacheHelper(); |
| | | return redisCache.GetLastRecord(list); |
| | | var lcacheHelper = LCacheCreateHelper.CreateLCache<Yw.LCache.IRunRealLastRecordCacheHelper>(); |
| | | return lcacheHelper.GetLastRecord(list); |
| | | } |
| | | |
| | | #endregion |
| | |
| | | { |
| | | Number = 1; |
| | | } |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entityList = dal.GetLastList(StartTime, EndTime, Number, Run); |
| | | return Entity2Models(entityList); |
| | | } |
| | |
| | | { |
| | | Number = 1; |
| | | } |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entityList = dal.GetLastListByDay(Day, Number, Run); |
| | | return Entity2Models(entityList); |
| | | } |
| | |
| | | { |
| | | Number = 1; |
| | | } |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entityList = dal.GetLastListByDayRange(StartDay, EndDay, Number, Run); |
| | | return Entity2Models(entityList); |
| | | } |
| | |
| | | { |
| | | Number = 1; |
| | | } |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entityList = dal.GetLastListByTimeRange(StartTime, EndTime, Number, Run); |
| | | return Entity2Models(entityList); |
| | | } |
| | |
| | | return default; |
| | | } |
| | | } |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entityList = dal.Get(StartTime, EndTime, Run); |
| | | return Entity2Models(entityList); |
| | | } |
| | |
| | | /// </summary> |
| | | public List<Model.RunRealRecord> GetByDay(DateTime Day, bool? Run = null) |
| | | { |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entityList = dal.GetByDay(Day, Run); |
| | | return Entity2Models(entityList); |
| | | } |
| | |
| | | return default; |
| | | } |
| | | |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entityList = dal.GetByDayRange(StartDay, EndDay, Run); |
| | | return Entity2Models(entityList); |
| | | } |
| | |
| | | { |
| | | return default; |
| | | } |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entityList = dal.GetByTimeRange(StartTime, EndTime, Run); |
| | | return Entity2Models(entityList); |
| | | } |
| | |
| | | return default; |
| | | } |
| | | } |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entityList = dal.GetPageList(StartTime, EndTime, Run, PageIndex, PageSize, ref Total); |
| | | return Entity2Models(entityList); |
| | | } |
| | |
| | | { |
| | | Number = 1; |
| | | } |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entityList = dal.GetLastListByObjectTypeAndObjectID(ObjectType, ObjectID, Number, Run); |
| | | return Entity2Models(entityList); |
| | | } |
| | |
| | | return default; |
| | | } |
| | | } |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entityList = dal.GetByObjectTypeAndObjectID(ObjectType, ObjectID, StartTime, EndTime, Run); |
| | | return Entity2Models(entityList); |
| | | } |
| | |
| | | /// </summary> |
| | | public List<Model.RunRealRecord> GetByObjectTypeAndObjectIDOfDay(string ObjectType, long ObjectID, DateTime Day, bool? Run = null) |
| | | { |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entityList = dal.GetByObjectTypeAndObjectIDOfDay(ObjectType, ObjectID, Day, Run); |
| | | return Entity2Models(entityList); |
| | | } |
| | |
| | | { |
| | | return default; |
| | | } |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entityList = dal.GetByObjectTypeAndObjectIDOfDayRange(ObjectType, ObjectID, StartDay, EndDay, Run); |
| | | return Entity2Models(entityList); |
| | | } |
| | |
| | | { |
| | | return default; |
| | | } |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entityList = dal.GetByObjectTypeAndObjectIDOfTimeRange(ObjectType, ObjectID, StartTime, EndTime, Run); |
| | | return Entity2Models(entityList); |
| | | } |
| | |
| | | return default; |
| | | } |
| | | } |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entityList = dal.GetPageListByObjectTypeAndObjectID(ObjectType, ObjectID, StartTime, EndTime, Run, PageIndex, PageSize, ref Total); |
| | | return Entity2Models(entityList); |
| | | } |
| | |
| | | { |
| | | return default; |
| | | } |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entity = Model2Entity(model); |
| | | return dal.InsertOrUpdate(entity); |
| | | } |
| | |
| | | { |
| | | return default; |
| | | } |
| | | var dal = new DAL.RunRealRecord(); |
| | | var dal = DALCreateHelper.CreateDAL<Yw.DAL.IRunRealRecord>(); |
| | | var entity_list = Model2Entities(list); |
| | | return dal.InsertOrUpdate(entity_list); |
| | | } |
| | |
| | | var bol = Insert(record); |
| | | if (bol) |
| | | { |
| | | var redisCache = new RedisCache.RunRealLastRecordCacheHelper(); |
| | | bol = redisCache.SetLastRecord(record); |
| | | var lcacheHelper = LCacheCreateHelper.CreateLCache<Yw.LCache.IRunRealLastRecordCacheHelper>(); |
| | | bol = lcacheHelper.SetLastRecord(record); |
| | | if (bol) |
| | | { |
| | | var runQueueHelper = new RabbitMqExChangeHelper(); |
| | | bol = runQueueHelper.Push(RunParasHelper.Run.Run.ExchangeName, new List<Model.RunRealRecord>() { record }); |
| | | var exchangeHelper = ExchangeCreateHelper.CreateExchange<Yw.Exchange.IRunRealRecordExchangeHelper>(); |
| | | bol = exchangeHelper.Push(new List<Model.RunRealRecord>() { record }); |
| | | } |
| | | return bol; |
| | | } |
| | |
| | | var bol = Inserts(list); |
| | | if (bol) |
| | | { |
| | | var redisCache = new RedisCache.RunRealLastRecordCacheHelper(); |
| | | bol = redisCache.SetLastRecord(list); |
| | | var lcacheHelper = LCacheCreateHelper.CreateLCache<Yw.LCache.IRunRealLastRecordCacheHelper>(); |
| | | bol = lcacheHelper.SetLastRecord(list); |
| | | if (bol) |
| | | { |
| | | var runQueueHelper = new RabbitMqExChangeHelper(); |
| | | bol = runQueueHelper.Push(RunParasHelper.Run.Run.ExchangeName, list); |
| | | var exchangeHelper = ExchangeCreateHelper.CreateExchange<Yw.Exchange.IRunRealRecordExchangeHelper>(); |
| | | bol = exchangeHelper.Push(list); |
| | | } |
| | | return bol; |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Service |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class RunRealLastRecordCacheHelper : Yw.LCache.IRunRealLastRecordCacheHelper |
| | | { |
| | | private readonly Yw.LCache.IRunRealLastRecordCacheHelper _helper = |
| | | LCacheCreateHelper.CreateLCache<Yw.LCache.IRunRealLastRecordCacheHelper>(); |
| | | |
| | | |
| | | /// <summary> |
| | | /// 设置æå䏿¡è®°å½ |
| | | /// </summary> |
| | | public bool SetLastRecord(Model.RunRealRecord record) |
| | | { |
| | | return _helper.SetLastRecord(record); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 设置æå䏿¡è®°å½ |
| | | /// </summary> |
| | | public bool SetLastRecord(List<Model.RunRealRecord> list) |
| | | { |
| | | return _helper.SetLastRecord(list); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åæå䏿¡è®°å½ |
| | | /// </summary> |
| | | public List<Model.RunRealRecord> GetLastRecord() |
| | | { |
| | | return _helper.GetLastRecord(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åæå䏿¡è®°å½ |
| | | /// </summary> |
| | | public List<Model.RunRealRecord> GetLastRecord(string ObjectType) |
| | | { |
| | | return _helper.GetLastRecord(ObjectType); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åæå䏿¡è®°å½ |
| | | /// </summary> |
| | | public List<Model.RunRealRecord> GetLastRecord(long ObjectID) |
| | | { |
| | | return _helper.GetLastRecord(ObjectID); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åæå䏿¡è®°å½ |
| | | /// </summary> |
| | | public Model.RunRealRecord GetLastRecord(string ObjectType, long ObjectID) |
| | | { |
| | | return _helper.GetLastRecord(ObjectType, ObjectID); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åæå䏿¡è®°å½ |
| | | /// </summary> |
| | | public List<Model.RunRealRecord> GetLastRecord(string ObjectType, IEnumerable<long> ObjectIds) |
| | | { |
| | | return _helper.GetLastRecord(ObjectType, ObjectIds); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// è·åæå䏿¡è®°å½ |
| | | /// </summary> |
| | | public List<Model.RunRealRecord> GetLastRecord(List<(string, long)> list) |
| | | { |
| | | return _helper.GetLastRecord(list); |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | namespace Yw.Service |
| | | { |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | public class RunRealRecordExchangeHelper : Yw.Exchange.IRunRealRecordExchangeHelper |
| | | { |
| | | private readonly Yw.Exchange.IRunRealRecordExchangeHelper _helper = |
| | | ExchangeCreateHelper.CreateExchange<Yw.Exchange.IRunRealRecordExchangeHelper>(); |
| | | |
| | | /// <summary> |
| | | /// æ¨é |
| | | /// </summary> |
| | | public bool Push(List<Yw.Model.RunRealRecord> list) |
| | | { |
| | | return _helper.Push(list); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥æ¶ |
| | | /// </summary> |
| | | public bool Receive(Func<List<Yw.Model.RunRealRecord>, bool> func) |
| | | { |
| | | return _helper.Receive(func); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// å
³é |
| | | /// </summary> |
| | | public void Close() |
| | | { |
| | | _helper.Close(); |
| | | } |
| | | } |
| | | } |
| | |
| | | global using System.Collections; |
| | | global using SqlSugar; |
| | | global using AutoMapper; |
| | | global using Yw.Newtonsoft; |
| | | global using Yw.Run; |
| | | global using Yw.Settings; |
| | | global using Yw.Untity; |
| | | global using Yw.Service.Run; |
| | | global using Yw.RedisCache.Run; |
| | | global using Yw.Service.Run; |
| | |
| | | --> |
| | | <Project> |
| | | <PropertyGroup> |
| | | <History>True|2024-01-21T06:51:15.9123805Z;True|2024-01-08T16:59:10.2219250+08:00;True|2023-12-16T15:42:50.6196932+08:00;True|2023-12-11T11:51:25.0044564+08:00;True|2023-12-11T11:25:16.9392998+08:00;True|2023-07-13T11:54:33.7989040+08:00;True|2023-07-13T11:54:23.3967174+08:00;True|2023-07-06T09:49:52.7407983+08:00;True|2023-05-25T15:37:23.5406830+08:00;False|2023-05-25T15:36:09.3589239+08:00;</History> |
| | | <History>True|2024-03-26T01:45:14.8395625Z;True|2024-01-21T14:51:15.9123805+08:00;True|2024-01-08T16:59:10.2219250+08:00;True|2023-12-16T15:42:50.6196932+08:00;True|2023-12-11T11:51:25.0044564+08:00;True|2023-12-11T11:25:16.9392998+08:00;True|2023-07-13T11:54:33.7989040+08:00;True|2023-07-13T11:54:23.3967174+08:00;True|2023-07-06T09:49:52.7407983+08:00;True|2023-05-25T15:37:23.5406830+08:00;False|2023-05-25T15:36:09.3589239+08:00;</History> |
| | | </PropertyGroup> |
| | | </Project> |
| | |
| | | <RootNamespace>Yw</RootNamespace> |
| | | <GenerateDocumentationFile>True</GenerateDocumentationFile> |
| | | <GeneratePackageOnBuild>True</GeneratePackageOnBuild> |
| | | <Version>1.0.4</Version> |
| | | <Version>3.0.0</Version> |
| | | <Description>å¼ç¨å级</Description> |
| | | </PropertyGroup> |
| | | |
| | |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="Yw.RabbitMq.Core" Version="1.0.0" /> |
| | | <PackageReference Include="Yw.Redis.Core" Version="1.0.2" /> |
| | | <PackageReference Include="Yw.Service.Core" Version="1.1.6" /> |
| | | <PackageReference Include="Yw.DAL.PostgreSql.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.DAL.SQLite.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.DALFactory.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.ExchangeFactory.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.IDAL.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.LCacheFactory.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.Medis.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.MemoryQueue.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.QueueFactory.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.RabbitMq.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.Redis.Core" Version="3.0.0" /> |
| | | <PackageReference Include="Yw.Service.Core" Version="3.0.0" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | |
| | | |
| | | "Run": { |
| | | "DataBase": { |
| | | "ConnectString": "PORT=5432;DATABASE=yw_run;HOST=localhost;PASSWORD=123456;USER ID=postgres;", |
| | | "RecordConnectString": "PORT=5432;DATABASE=yw_run_record;HOST=localhost;PASSWORD=123456;USER ID=postgres;" |
| | | "DbType": "PostgreSql", //PostgreSqlãSQLite |
| | | "Factory": { |
| | | "EnableCache": true, |
| | | "CacheTime": 10 |
| | | }, |
| | | "PostgreSql": { |
| | | "ConnectString": "PORT=5432;DATABASE=yw_run;HOST=localhost;PASSWORD=123456;USER ID=postgres;", |
| | | "RecordConnectString": "PORT=5432;DATABASE=yw_run_record;HOST=localhost;PASSWORD=123456;USER ID=postgres;" |
| | | }, |
| | | "SQLite": { |
| | | "ConnectString": "Data Source=yw_run.db;", |
| | | "RecordConnectString": "Data Source=yw_run_record.db;" |
| | | } |
| | | }, |
| | | "RedisCache": { |
| | | "Prefix": "yw" |
| | | "LCache": { |
| | | "Prefix": "yw", |
| | | "LCacheType": "Redis", //RedisãMedis |
| | | "Factory": { |
| | | "EnableCache": true, |
| | | "CacheTime": 10 |
| | | } |
| | | }, |
| | | "Queue": { |
| | | "QueueType": "RabbitMq", //RabbitMqãMemory |
| | | "Factory": { |
| | | "EnableCache": true, |
| | | "CacheTime": 10 |
| | | } |
| | | }, |
| | | "Exchange": { |
| | | "ExchangeType": "RabbitMq", //RabbitMqãMemory |
| | | "Factory": { |
| | | "EnableCache": true, |
| | | "CacheTime": 10 |
| | | } |
| | | }, |
| | | "Run": { |
| | | "ExchangeName": "yw-run-real-record-run-exchange" |
| | |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |
| | | <PackageReference Include="Yw.Knife4jUI.Core" Version="1.0.0" /> |
| | | <PackageReference Include="Yw.Knife4jUI.Core" Version="3.0.0" /> |
| | | </ItemGroup> |
| | | |
| | | <ItemGroup> |