FarmMapsApiClient_WURtest/FarmmapsHaulmkilling/Program.cs

24 lines
676 B
C#
Raw Permalink Normal View History

2020-04-22 10:51:53 +00:00
using System.Threading.Tasks;
using FarmmapsApi;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
namespace FarmmapsHaulmkilling
{
class Program : FarmmapsProgram<HaulmkillingApplication>
{
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<HaulmkillingService>();
}
}
}