You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is similar to the FeatureInterceptor, but for global features.
We have GlobalFeatureActionFilter and GlobalFeaturePageFilter, but they can work only for aspnet core controllers. They are not working for blazor server, for example. Becuase blazor server doesn't pass through these filters, but directly injects and consumes the application services.
We can create a IGlobalFeatureCheckingEnabled interface to not intercept every class, but only intercept classes implement this interface. Check IValidationEnabled and ValidationInterceptorRegistrar for a similar example. ApplicationService base class can implement this IGlobalFeatureCheckingEnabled, so only app services are intercepted. Other classes should implement IGlobalFeatureCheckingEnabled directly.
You can also use AbpCrossCuttingConcerns.IsApplied logic to not double check the features.
The text was updated successfully, but these errors were encountered:
It is similar to the
FeatureInterceptor
, but for global features.We have
GlobalFeatureActionFilter
andGlobalFeaturePageFilter
, but they can work only for aspnet core controllers. They are not working for blazor server, for example. Becuase blazor server doesn't pass through these filters, but directly injects and consumes the application services.We can create a
IGlobalFeatureCheckingEnabled
interface to not intercept every class, but only intercept classes implement this interface. CheckIValidationEnabled
andValidationInterceptorRegistrar
for a similar example.ApplicationService
base class can implement thisIGlobalFeatureCheckingEnabled
, so only app services are intercepted. Other classes should implementIGlobalFeatureCheckingEnabled
directly.You can also use
AbpCrossCuttingConcerns.IsApplied
logic to not double check the features.The text was updated successfully, but these errors were encountered: