2021-02-16 09:46:50 +01:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using FarmmapsApi;
|
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
|
2021-04-12 14:22:24 +02:00
|
|
|
|
namespace FarmmapsNbs
|
2021-02-16 09:46:50 +01:00
|
|
|
|
{
|
2021-04-12 14:22:24 +02:00
|
|
|
|
class Program : FarmmapsProgram<NbsApplication>
|
2021-02-16 09:46:50 +01:00
|
|
|
|
{
|
|
|
|
|
private static async Task Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
await new Program().Start(args);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Configure(IServiceCollection serviceCollection)
|
|
|
|
|
{
|
2021-05-12 08:06:30 +02:00
|
|
|
|
serviceCollection.AddLogging()
|
2021-04-12 14:22:24 +02:00
|
|
|
|
.AddTransient<NitrogenService>();
|
2021-02-16 09:46:50 +01:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|