Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create interceptor for global features #8117

Merged
merged 1 commit into from Mar 18, 2021
Merged

Conversation

maliming
Copy link
Member

@maliming maliming commented Mar 18, 2021

Resolve #8108

@maliming maliming added this to the 4.3-preview milestone Mar 18, 2021
@maliming maliming requested a review from hikalkan March 18, 2021 06:47

namespace Volo.Abp.GlobalFeatures
{
public class AbpGlobalFeatureNotEnableException : AbpException, IHasErrorCode
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public class AbpGlobalFeatureNotEnableException : AbpException, IHasErrorCode
public class AbpGlobalFeatureNotEnabledException : AbpException, IHasErrorCode

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, please make the exception serializable (using constructor like the AbpException class)

{
public static class GlobalFeatureHelper
{
public static bool IsGlobalFeatureEnabled(Type controllerType, out RequiresGlobalFeatureAttribute attribute)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public static bool IsGlobalFeatureEnabled(Type controllerType, out RequiresGlobalFeatureAttribute attribute)
public static bool IsGlobalFeatureEnabled(Type type, out RequiresGlobalFeatureAttribute attribute)

controller is not a good naming in this layer.

@hikalkan hikalkan merged commit f6ab71d into dev Mar 18, 2021
@hikalkan hikalkan deleted the maliming/global-feature branch March 18, 2021 14:15
@hikalkan
Copy link
Member

I've merged this. Please make the improvement suggestions as another PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create interceptor for global features
2 participants