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
						
					
					
						
							565 B
						
					
					
				
			
		
		
	
	
							24 lines
						
					
					
						
							565 B
						
					
					
				| using System;
 | |
| using System.Threading.Tasks;
 | |
| using Volo.Abp.EventBus.Handlers;
 | |
| 
 | |
| namespace Volo.Abp.EventBus
 | |
| {
 | |
|     public class MySimpleTransientAsyncEventHandler : IAsyncEventHandler<MySimpleEventData>, IDisposable
 | |
|     {
 | |
|         public static int HandleCount { get; set; }
 | |
| 
 | |
|         public static int DisposeCount { get; set; }
 | |
| 
 | |
|         public Task HandleEventAsync(MySimpleEventData eventData)
 | |
|         {
 | |
|             ++HandleCount;
 | |
|             return Task.FromResult(0);
 | |
|         }
 | |
| 
 | |
|         public void Dispose()
 | |
|         {
 | |
|             ++DisposeCount;
 | |
|         }
 | |
|     }
 | |
| } |