Using the feature system
Most SaaS solutions provide different packages to the customers. Every package has a different set of application features and is subscribed at a different price. ABP provides a feature system used to define such application features, and then disable or enable these features for individual tenants. Let's start by defining a feature.
Defining the features
It is required to define a feature before using it. Create a new class deriving from the FeatureDefinitionProvider
class (typically in the .Application.Contracts
project in the startup solution) and override the Define
method, as shown in the following example:
public class MyAppFeatureDefinitionProvider : FeatureDefinitionProvider { public override void Define( IFeatureDefinitionContext context) { var myGroup = context.AddGroup...