27 lines
653 B
C#
27 lines
653 B
C#
using Furion.DependencyInjection;
|
|
using Furion.FriendlyException;
|
|
using Microsoft.AspNetCore.Mvc.Filters;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Waste.Application
|
|
{
|
|
public class LogExceptionHandler : IGlobalExceptionHandler, ISingleton
|
|
{
|
|
/// <summary>
|
|
/// 全局异常处理提供器
|
|
/// </summary>
|
|
/// <param name="context"></param>
|
|
/// <returns></returns>
|
|
public Task OnExceptionAsync(ExceptionContext context)
|
|
{
|
|
// 写日志
|
|
|
|
return Task.CompletedTask;
|
|
}
|
|
}
|
|
}
|