DeepBlue.FunctionTime NuGet Package

1.CallingLogInterceptor.cs 拦截器
2.MethodOperationInfo.cs 操作日志
3.MyProxyGenerator.cs 代理类

调用方法
ITest t = MyProxyGenerator.CreateProxy<ITest, Test>();

/// <summary>执行后
/// 主要把执行的结果集,输入的参数,该接口访问的耗时.记录到接口日记中.
/// </summary>
/// <param name="context"></param
public override void OnActionExecuted(ActionExecutedContext context)
{
string action = context.ActionDescriptor.RouteValues["action"];//方法
string controller = context.ActionDescriptor.RouteValues["controller"];//控制名
string ReturnText = Newtonsoft.Json.JsonConvert.SerializeObject(errcode);//返回值
Dictionary<string, MethodOperationInfo> dic = MethodOperationInfo.Print(); //获取此次请求完整方法
Task<int> t1 = myLogNetDal.LogNetAdd(dic, controller, action,ReturnText);//异步 计划报表
}.




Got any DeepBlue.FunctionTime Question?





Info

Version: 1.0.0.5
Author(s): 深蓝
Last Update: Tuesday, December 24, 2019
.NET Fiddle: Create the first Fiddle
NuGet Url: https://www.nuget.org/packages/DeepBlue.FunctionTime


Install
Install-Package DeepBlue.FunctionTime
dotnet add package DeepBlue.FunctionTime
paket add DeepBlue.FunctionTime
DeepBlue.FunctionTime Download (Unzip the "nupkg" after downloading)





STATS

must-have-score

avg-downloads-per-day

0

days-since-last-release

2011