15 lines
410 B
C#
15 lines
410 B
C#
|
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>();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|