FarmMapsApiClient/FarmmapsNbs/Program.cs

23 lines
653 B
C#
Raw Permalink Normal View History

2020-04-08 18:23:22 +00:00
using System.Threading.Tasks;
using FarmmapsApi;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
2020-04-08 18:39:38 +00:00
namespace FarmmapsNbs
2020-04-08 18:23:22 +00:00
{
class Program : FarmmapsProgram<NbsApplication>
{
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<NitrogenService>();
}
}
}