mirror of https://github.com/abpframework/abp.git
7 changed files with 81 additions and 10 deletions
@ -1,7 +0,0 @@ |
|||
namespace Volo.Abp.AspNetCore.Components.Web.ExceptionHandling |
|||
{ |
|||
public interface IUserExceptionInformer |
|||
{ |
|||
void Inform(UserExceptionInformerContext context); |
|||
} |
|||
} |
|||
@ -0,0 +1,11 @@ |
|||
using System.Threading.Tasks; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Components.ExceptionHandling |
|||
{ |
|||
public interface IUserExceptionInformer |
|||
{ |
|||
void Inform(UserExceptionInformerContext context); |
|||
|
|||
Task InformAsync(UserExceptionInformerContext context); |
|||
} |
|||
} |
|||
@ -0,0 +1,18 @@ |
|||
using System.Threading.Tasks; |
|||
using Volo.Abp.DependencyInjection; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Components.ExceptionHandling |
|||
{ |
|||
public class NullUserExceptionInformer : IUserExceptionInformer, ISingletonDependency |
|||
{ |
|||
public void Inform(UserExceptionInformerContext context) |
|||
{ |
|||
|
|||
} |
|||
|
|||
public Task InformAsync(UserExceptionInformerContext context) |
|||
{ |
|||
return Task.CompletedTask; |
|||
} |
|||
} |
|||
} |
|||
@ -1,7 +1,7 @@ |
|||
using System; |
|||
using JetBrains.Annotations; |
|||
|
|||
namespace Volo.Abp.AspNetCore.Components.Web.ExceptionHandling |
|||
namespace Volo.Abp.AspNetCore.Components.ExceptionHandling |
|||
{ |
|||
public class UserExceptionInformerContext |
|||
{ |
|||
Loading…
Reference in new issue