network-resurrector/NetworkResurrector.WakeOnLa.../DependencyInjectionExtensio...

15 lines
432 B
C#
Raw Normal View History

using Microsoft.Extensions.DependencyInjection;
2021-04-06 02:12:58 +03:00
using NetworkResurrector.Server.Abstractions;
namespace NetworkResurrector.WakeOnLan.Inhouse
{
public static class DependencyInjectionExtensions
{
public static void AddWakeOnLanInhouseService(this IServiceCollection services)
{
services.AddScoped<WolClient>();
services.AddScoped<IWakeOnLanService, WolDriver>();
}
}
}