namespace Forwarder.Modules.Ademco;

public static class DependencyInjectionExtensions
{
	public static IHostApplicationBuilder AddAdemcoModule(this IHostApplicationBuilder builder)
	{
		builder.Services
			.Configure<AdemcoOptions>(builder.Configuration)
			.AddScoped<Ademco685MessageParser>()
			.AddScoped<UdpPortListener>()
			.AddHostedService<AdemcoHost>();

		return builder;
	}
}
