1 Star 1 Fork 1

zfy/FastGithub

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
ServiceCollectionExtensions.cs 576 Bytes
一键复制 编辑 原始数据 按行查看 历史
jiulang 提交于 2021-10-28 17:43 +08:00 . 流量监控
using FastGithub.FlowAnalyze;
using Microsoft.Extensions.DependencyInjection;
namespace FastGithub
{
/// <summary>
/// ServiceCollection扩展
/// </summary>
public static class ServiceCollectionExtensions
{
/// <summary>
/// 添加流量分析
/// </summary>
/// <param name="services"></param>
/// <returns></returns>
public static IServiceCollection AddFlowAnalyze(this IServiceCollection services)
{
return services.AddSingleton<IFlowAnalyzer, FlowAnalyzer>();
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/einstein666/FastGithub.git
git@gitee.com:einstein666/FastGithub.git
einstein666
FastGithub
FastGithub
master

搜索帮助