2020-11-27 01:04:55 +02:00
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
using NetworkResurrector.Abstractions;
|
|
|
|
|
|
|
|
|
|
namespace NetworkResurrector.WakeOnLan.Inhouse
|
|
|
|
|
{
|
|
|
|
|
public static class DependencyInjectionExtensions
|
|
|
|
|
{
|
2020-11-27 01:35:31 +02:00
|
|
|
|
public static void AddWakeOnLanInhouseService(this IServiceCollection services)
|
2020-11-27 01:04:55 +02:00
|
|
|
|
{
|
|
|
|
|
services.AddScoped<WolClient>();
|
|
|
|
|
services.AddScoped<IWakeOnLanService, WolDriver>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|