FarmMapsApiClient/FarmmapsZonering/Program.cs

24 lines
696 B
C#
Raw Permalink Normal View History

using System.Threading.Tasks;
using FarmmapsApi;
using FarmmapsZonering.Services;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace FarmmapsZonering
{
class Program : FarmmapsProgram<ZoneringApplication>
{
private static async Task Main(string[] args)
{
await new Program().Start(args);
}
protected override void Configure(IServiceCollection serviceCollection)
{
serviceCollection.AddLogging(opts => opts
.AddConsole()
.AddFilter("System.Net.Http", LogLevel.Warning))
.AddTransient<ZoneringService>();
}
}
}