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
683 B
25 lines
683 B
using System;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using Volo.Abp;
|
|
using Volo.Abp.Threading;
|
|
|
|
namespace MyCompanyName.MyProjectName
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
using (var application = AbpApplicationFactory.Create<MyProjectNameConsoleApiClientModule>())
|
|
{
|
|
application.Initialize();
|
|
|
|
var demo = application.ServiceProvider.GetRequiredService<ClientDemoService>();
|
|
AsyncHelper.RunSync(() => demo.RunAsync());
|
|
|
|
Console.WriteLine("Press ENTER to stop application...");
|
|
Console.ReadLine();
|
|
}
|
|
}
|
|
}
|
|
}
|