implemented IWakeOnLanService in WakeOnLan.Nikee

master
Tudor Stanciu 2020-11-27 01:16:14 +02:00
parent ad1c979b17
commit df24fea9e0
4 changed files with 37 additions and 8 deletions

View File

@ -1,8 +0,0 @@
using System;
namespace NetworkResurrector.WakeOnLan.Nikeee
{
public class Class1
{
}
}

View File

@ -0,0 +1,13 @@
using Microsoft.Extensions.DependencyInjection;
using NetworkResurrector.Abstractions;
namespace NetworkResurrector.WakeOnLan.Nikeee
{
public static class DependencyInjectionExtensions
{
public static void AddWakeOnLanService(this IServiceCollection services)
{
services.AddScoped<IWakeOnLanService, WakeOnLanService>();
}
}
}

View File

@ -4,4 +4,14 @@
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="WakeOnLAN" Version="2.0.2" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="$(MicrosoftExtensionsPackageVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="$(MicrosoftExtensionsPackageVersion)" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\NetworkResurrector.Abstractions\NetworkResurrector.Abstractions.csproj" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,14 @@
using NetworkResurrector.Abstractions;
using System;
using System.Threading.Tasks;
namespace NetworkResurrector.WakeOnLan.Nikeee
{
public class WakeOnLanService : IWakeOnLanService
{
public Task<(bool success, string message)> Wake(string macAddress)
{
throw new NotImplementedException();
}
}
}