using System.Threading.Tasks; using Abp.Runtime.Session; namespace Abp.Application.Features { /// /// This interface should be used to get the value of features /// public interface IFeatureChecker { /// /// Gets the value of a feature by its name. /// This is a shortcut for that uses as tenantId. /// Note: This method should only be used if a TenantId can be obtained from the session. /// /// Unique feature name /// Feature's current value Task GetValueAsync(string name); /// /// Gets the value of a feature for a tenant by the feature's name. /// /// Tenant's Id /// Unique feature name /// Feature's current value Task GetValueAsync(int tenantId, string name); } }