DeepBlueNice.FunctionTiemOut
1.0.5
dotnet add package DeepBlueNice.FunctionTiemOut --version 1.0.5
NuGet\Install-Package DeepBlueNice.FunctionTiemOut -Version 1.0.5
<PackageReference Include="DeepBlueNice.FunctionTiemOut" Version="1.0.5" />
paket add DeepBlueNice.FunctionTiemOut --version 1.0.5
#r "nuget: DeepBlueNice.FunctionTiemOut, 1.0.5"
// Install DeepBlueNice.FunctionTiemOut as a Cake Addin #addin nuget:?package=DeepBlueNice.FunctionTiemOut&version=1.0.5 // Install DeepBlueNice.FunctionTiemOut as a Cake Tool #tool nuget:?package=DeepBlueNice.FunctionTiemOut&version=1.0.5
使用方法
IUser _user = MyProxyGenerator.CreateProxy<IUser, AccountUser>(); //每个类都生成代理对象
Dictionary<string, MethodOperationInfo> dic = MethodOperationInfo.Print();//收集所有方法的调用参数及返回值
MethodOperationInfo.ShowAsync(dic,"控制器", "方法", SqlType.Text, "连接字符串"); //纯文本保存
MethodOperationInfo.ShowAsync(dic,"控制器", "方法", SqlType.Mssql, "连接字符串");//msSQL数据库
MethodOperationInfo.ShowAsync(dic,"控制器", "方法", SqlType.Mysql, "连接字符串");//MySQL数据库
MethodOperationInfo.Show(dic,"控制器", "方法", SqlType.Redis, "连接字符串");//Redis数据库
MethodOperationInfo.Show(dic,"控制器","方法", SqlType.Mongdb, "连接字符串", "FunctionTiemOut", $"Fun_{DateTime.Now.Year}_{DateTime.Now.Month}"); //Mongdb数据库型
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Abet.ServiceStack.Redis (>= 1.0.4)
- Castle.Core (>= 4.4.0)
- MongoDB.Driver (>= 2.14.1)
- MySql.Data (>= 8.0.28)
- Newtonsoft.Json (>= 13.0.1)
- System.Management (>= 8.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1.0.5变更内容
1.增加System.Management引用,增加GetSystemInfo.cs类用于收集服务器硬件信息.
2.实体对象增长MachineCode字段,主要记录该服务器的IP信息用于分析问题
3.实体对像DeepBlueNice.Domain.api_functiontiemout_entity变更,增加机器码字段(这个是用EF生成的数据库表,所以没有SQL脚本)
4.实体对象MethodOperationInfo增加一个platform平台标识
5.已测试mysql与mongodb会把平台标识与机器码写入(注:mysql数据库名"Db_Ying_Test",表名:"api_functiontiemout")
6.在DbHelp.cs类里面补充一个MYSQL的数据库脚本。(注:后面可以快速建库时可以使用)