FarmMapsApiClient_WURtest/FarmMapsBlight/Program.cs

23 lines
664 B
C#
Raw Permalink Normal View History

2020-09-10 20:38:31 +00:00
using FarmmapsApi;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System.Threading.Tasks;
namespace FarmMapsBlight
{
public class Program : FarmmapsProgram<BlightApplication>
{
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<BlightService>();
}
}
}