2020-11-27 01:04:55 +02:00
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
2021-04-06 02:12:58 +03:00
|
|
|
|
using NetworkResurrector.Server.Abstractions;
|
2020-11-27 01:04:55 +02:00
|
|
|
|
|
|
|
|
|
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>();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|