mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 16:13:26 +08:00
【升级】升级Asp.Net 6.0.11 到 Asp.Net 7.0.0
【升级】升级所有组建包,移除一些不用或者版本弃用的组建。 【优化】优化升级npoi最新版后,出现导出数据兼容性的问题。 【优化】使用新的【NLog.Database】nlog数据库链接组件,解决nlog升级到5.x以后版本记录到数据库日志失败的问题。
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -51,18 +51,6 @@ namespace CoreCms.Net.Middlewares
|
||||
return app.UseMiddleware<ExceptionHandlerMiddlewareForClent>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// SignalR中间件
|
||||
/// </summary>
|
||||
/// <param name="app"></param>
|
||||
/// <returns></returns>
|
||||
public static IApplicationBuilder UseSignalRSendMildd(this IApplicationBuilder app)
|
||||
{
|
||||
return app.UseMiddleware<SignalRSendMildd>();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// IP请求中间件
|
||||
/// </summary>
|
||||
@@ -73,7 +61,6 @@ namespace CoreCms.Net.Middlewares
|
||||
return app.UseMiddleware<IPLogMildd>();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 用户访问接口日志中间件
|
||||
/// </summary>
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
/***********************************************************************
|
||||
* Project: CoreCms.Net *
|
||||
* Web: https://CoreCms.Net *
|
||||
* ProjectName: 核心内容管理系统 *
|
||||
* Author: 大灰灰 *
|
||||
* Email: JianWeie@163.com *
|
||||
* CreateTime: 2020-09-06 23:37:04
|
||||
* Description: 暂无
|
||||
***********************************************************************/
|
||||
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using CoreCms.Net.Utility.Hub;
|
||||
using Microsoft.AspNetCore.Http;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace CoreCms.Net.Middlewares
|
||||
{
|
||||
/// <summary>
|
||||
/// 中间件
|
||||
/// SignalR发送数据
|
||||
/// </summary>
|
||||
public class SignalRSendMildd
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
private readonly RequestDelegate _next;
|
||||
private readonly IHubContext<ChatHub> _hubContext;
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="next"></param>
|
||||
/// <param name="hubContext"></param>
|
||||
public SignalRSendMildd(RequestDelegate next, IHubContext<ChatHub> hubContext)
|
||||
{
|
||||
_next = next;
|
||||
_hubContext = hubContext;
|
||||
}
|
||||
|
||||
|
||||
|
||||
public async Task InvokeAsync(HttpContext context)
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
await _next(context);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user