network-resurrector/NetworkResurrector.WakeOnLan/DependencyInjectionExtensio...

15 lines
410 B
C#
Raw Normal View History

2020-11-25 17:01:14 +02:00
using Microsoft.Extensions.DependencyInjection;
using NetworkResurrector.Abstractions;
namespace NetworkResurrector.WakeOnLan
{
public static class DependencyInjectionExtensions
{
public static void AddWakeOnLanService(this IServiceCollection services)
{
services.AddScoped<WolClient>();
services.AddScoped<IWakeOnLanService, WolDriver>();
}
}
}