23 lines
		
	
	
		
			647 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			647 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.Threading.Tasks;
 | 
						|
using Microsoft.Extensions.DependencyInjection;
 | 
						|
using Microsoft.Extensions.Hosting;
 | 
						|
 | 
						|
namespace KonSoft.Report.HttpApi.Client.ConsoleTestApp;
 | 
						|
 | 
						|
internal class Program
 | 
						|
{
 | 
						|
    private static async Task Main(string[] args)
 | 
						|
    {
 | 
						|
        await CreateHostBuilder(args).RunConsoleAsync();
 | 
						|
    }
 | 
						|
 | 
						|
    public static IHostBuilder CreateHostBuilder(string[] args)
 | 
						|
    {
 | 
						|
        return Host.CreateDefaultBuilder(args)
 | 
						|
            .AddAppSettingsSecretsJson()
 | 
						|
            .ConfigureServices((hostContext, services) =>
 | 
						|
            {
 | 
						|
                services.AddHostedService<ConsoleTestAppHostedService>();
 | 
						|
            });
 | 
						|
    }
 | 
						|
} |