You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
abp/framework/test/Volo.Abp.Features.Tests/Volo/Abp/Features/ClassFeatureTestService.cs

24 lines
580 B

using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
namespace Volo.Abp.Features;
[RequiresFeature("BooleanTestFeature1")]
public class ClassFeatureTestService : ITransientDependency
{
/* Since this class is used with the class reference,
* need to virtual keywords, otherwise dynamic proxy can not work.
*/
[RequiresFeature("BooleanTestFeature2")]
public virtual Task<int> Feature2Async()
{
return Task.FromResult(42);
}
public virtual Task NoAdditionalFeatureAsync()
{
return Task.CompletedTask;
}
}