15 lines
418 B
C#
15 lines
418 B
C#
|
using Microsoft.Extensions.DependencyInjection;
|
|||
|
using NetworkResurrector.Abstractions;
|
|||
|
|
|||
|
namespace NetworkResurrector.WakeOnLan.Inhouse
|
|||
|
{
|
|||
|
public static class DependencyInjectionExtensions
|
|||
|
{
|
|||
|
public static void AddWakeOnLanService(this IServiceCollection services)
|
|||
|
{
|
|||
|
services.AddScoped<WolClient>();
|
|||
|
services.AddScoped<IWakeOnLanService, WolDriver>();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|