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
						
					
					
						
							645 B
						
					
					
				
			
		
		
	
	
							24 lines
						
					
					
						
							645 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;
 | |
|         }
 | |
|     }
 | |
| } |