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.
		
		
		
		
		
			
		
			
				
					
					
						
							30 lines
						
					
					
						
							754 B
						
					
					
				
			
		
		
	
	
							30 lines
						
					
					
						
							754 B
						
					
					
				| using Microsoft.Extensions.DependencyInjection;
 | |
| using Volo.Abp;
 | |
| 
 | |
| namespace App1
 | |
| {
 | |
|     internal class Program
 | |
|     {
 | |
|         private static void Main(string[] args)
 | |
|         {
 | |
|             using (var application = AbpApplicationFactory.Create<App1Module>(options =>
 | |
|             {
 | |
|                 options.UseAutofac();
 | |
|             }))
 | |
|             {
 | |
|                 application.Initialize();
 | |
| 
 | |
|                 var x = application.ServiceProvider.GetRequiredService<App1TextEventHandler>();
 | |
| 
 | |
|                 var messagingService = application
 | |
|                     .ServiceProvider
 | |
|                     .GetRequiredService<App1MessagingService>();
 | |
| 
 | |
|                 messagingService.Run();
 | |
| 
 | |
|                 application.Shutdown();
 | |
|             }
 | |
|         }
 | |
|     }
 | |
| }
 |