mirror of https://github.com/abpframework/abp
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.
24 lines
614 B
24 lines
614 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;
|
|
}
|
|
}
|
|
}
|