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.
abp/samples/RabbitMqEventBus/App1/Program.cs

28 lines
657 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 messagingService = application
.ServiceProvider
.GetRequiredService<App1MessagingService>();
messagingService.Run();
application.Shutdown();
}
}
}
}