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.
25 lines
631 B
25 lines
631 B
using System;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Volo.Abp.BackgroundJobs.DemoApp.RabbitMq;
|
|
|
|
class Program
|
|
{
|
|
async static Task Main(string[] args)
|
|
{
|
|
using (var application = await AbpApplicationFactory.CreateAsync<DemoAppRabbitMqModule>(options =>
|
|
{
|
|
options.UseAutofac();
|
|
}))
|
|
{
|
|
await application.InitializeAsync();
|
|
|
|
Console.WriteLine("Started: " + typeof(Program).Namespace);
|
|
Console.WriteLine("Press ENTER to stop the application..!");
|
|
Console.ReadLine();
|
|
|
|
await application.ShutdownAsync();
|
|
}
|
|
}
|
|
}
|