NucuCar/NucuCar.BME680Sensor/Program.cs

17 lines
503 B
C#
Raw Normal View History

2019-11-09 13:34:49 +00:00
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace NucuCar.BME680Sensor
{
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
2019-11-09 13:39:15 +00:00
2019-11-09 13:34:49 +00:00
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureServices((hostContext, services) => { services.AddHostedService<Worker>(); });
}
}