Open Source Web Application Framework for ASP.NET Core
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.
 
 
 
 
 
 

29 lines
772 B

using System;
using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp;
namespace DistDemoApp
{
class Program
{
static async Task Main(string[] args)
{
using (var application = AbpApplicationFactory.Create<DistDemoAppModule>(opts =>
{
opts.UseAutofac();
}))
{
application.Initialize();
var demoService = application.ServiceProvider.GetRequiredService<DemoService>();
await demoService.CreateTodoItemAsync();
//Console.WriteLine("Press ENTER to exit");
//Console.ReadLine();
application.Shutdown();
}
}
}
}