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/App2/Program.cs

29 lines
704 B

using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp;
namespace App2
{
internal class Program
{
private static async Task Main(string[] args)
{
using (var application = AbpApplicationFactory.Create<App2Module>(options =>
{
options.UseAutofac();
}))
{
application.Initialize();
var messagingService = application
.ServiceProvider
.GetRequiredService<App2MessagingService>();
await messagingService.RunAsync();
application.Shutdown();
}
}
}
}