mirror of https://github.com/abpframework/abp.git
6 changed files with 43 additions and 41 deletions
@ -1,19 +0,0 @@ |
|||||
using System; |
|
||||
|
|
||||
namespace Volo.Abp.AspNetCore.Filters; |
|
||||
|
|
||||
[AttributeUsage(AttributeTargets.Class)] |
|
||||
public class DisableAbpFilterAttribute : Attribute |
|
||||
{ |
|
||||
public bool SkipInMiddleware { get; set; } |
|
||||
|
|
||||
public DisableAbpFilterAttribute() |
|
||||
{ |
|
||||
SkipInMiddleware = true; |
|
||||
} |
|
||||
|
|
||||
public DisableAbpFilterAttribute(bool skipInMiddleware) |
|
||||
{ |
|
||||
SkipInMiddleware = skipInMiddleware; |
|
||||
} |
|
||||
} |
|
||||
@ -0,0 +1,25 @@ |
|||||
|
using System; |
||||
|
|
||||
|
namespace Volo.Abp; |
||||
|
|
||||
|
[AttributeUsage(AttributeTargets.Class)] |
||||
|
public class DisableAbpFeaturesAttribute : Attribute |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// The framework will not register any interceptors for the class.
|
||||
|
/// This will cause the all features that depend on interceptors to not work.
|
||||
|
/// </summary>
|
||||
|
public bool DisableInterceptors { get; set; } = true; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// The framework middleware will skip the class.
|
||||
|
/// This will cause the all features that depend on middleware to not work.
|
||||
|
/// </summary>
|
||||
|
public bool DisableMiddlewares { get; set; } = true; |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// The framework will not remove all built-in filters for the class.
|
||||
|
/// This will cause the all features that depend on filters to not work.
|
||||
|
/// </summary>
|
||||
|
public bool DisableMvcFilters { get; set; } = true; |
||||
|
} |
||||
@ -1,9 +0,0 @@ |
|||||
using System; |
|
||||
|
|
||||
namespace Volo.Abp.DynamicProxy; |
|
||||
|
|
||||
[AttributeUsage(AttributeTargets.Class)] |
|
||||
public class DisableAbpInterceptorAttribute : Attribute |
|
||||
{ |
|
||||
|
|
||||
} |
|
||||
Loading…
Reference in new issue