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