24 lines
666 B
C#
24 lines
666 B
C#
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
using PARR.AIHIT.Settings;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace PARR.AIHIT
|
|
{
|
|
public class SyncherInstaller
|
|
{
|
|
public void InstallerServices(IServiceCollection services, IConfiguration configuration)
|
|
{
|
|
var syncherSettings = new SyncherSettings();
|
|
configuration.GetSection(nameof(SyncherSettings)).Bind(syncherSettings);
|
|
services.AddSingleton(syncherSettings);
|
|
|
|
services.AddTransient<Syncher>();
|
|
}
|
|
}
|
|
}
|