Abp模块
abp
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
732 B

using JetBrains.Annotations;
using Microsoft.Extensions.Logging;
using System;
using Volo.Abp;
namespace Sanhe.Abp.ExceptionHandling;
public class ExceptionSendNotifierContext
{
[NotNull]
public Exception Exception { get; }
[NotNull]
public IServiceProvider ServiceProvider { get; }
public LogLevel LogLevel { get; }
internal ExceptionSendNotifierContext(
[NotNull] IServiceProvider serviceProvider,
[NotNull] Exception exception,
LogLevel? logLevel = null)
{
ServiceProvider = Check.NotNull(serviceProvider, nameof(serviceProvider));
Exception = Check.NotNull(exception, nameof(exception));
LogLevel = logLevel ?? exception.GetLogLevel();
}
}