using System; using Microsoft.Extensions.DependencyInjection; using Volo.Abp; using Volo.Abp.Threading; namespace Acme.BookStore.HttpApi.Client.ConsoleTestApp { class Program { static void Main(string[] args) { using (var application = AbpApplicationFactory.Create()) { application.Initialize(); var demo = application.ServiceProvider.GetRequiredService(); AsyncHelper.RunSync(() => demo.RunAsync()); Console.WriteLine("Press ENTER to stop application..."); Console.ReadLine(); } } } }