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

15 lines
425 B
C#
Raw Normal View History

using Microsoft.Extensions.DependencyInjection;
using NetworkResurrector.Abstractions;
namespace NetworkResurrector.WakeOnLan.Inhouse
{
public static class DependencyInjectionExtensions
{
public static void AddWakeOnLanInhouseService(this IServiceCollection services)
{
services.AddScoped<WolClient>();
services.AddScoped<IWakeOnLanService, WolDriver>();
}
}
}