using System.Threading.Tasks;
namespace Abp.Application.Features
{
///
/// Null pattern (default) implementation of .
/// It gets null for all feature values.
/// can be used via property injection of .
///
public class NullFeatureValueStore : IFeatureValueStore
{
///
/// Gets the singleton instance.
///
public static NullFeatureValueStore Instance { get; } = new NullFeatureValueStore();
///
public Task GetValueOrNullAsync(int tenantId, Feature feature)
{
return Task.FromResult((string) null);
}
}
}