Open Source Web Application Framework for ASP.NET Core
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.
 
 
 
 
 
 

22 lines
552 B

using System.Threading.Tasks;
using Volo.Abp.DependencyInjection;
namespace Volo.Abp.Features;
public class MethodFeatureTestService : ITransientDependency, IMethodFeatureTestService
{
/* Since this class is used over an interface (IMethodFeatureTestService),
* no need to virtual keywords, dynamic proxy can work.
*/
[RequiresFeature("BooleanTestFeature1")]
public Task<int> Feature1Async()
{
return Task.FromResult(42);
}
public Task NonFeatureAsync()
{
return Task.CompletedTask;
}
}