mirror of
https://dev.azure.com/tstanciu94/NetworkResurrector/_git/NetworkResurrector
synced 2025-06-21 19:17:04 +03:00
implemented IWakeOnLanService in WakeOnLan.Nikee
This commit is contained in:
parent
ad1c979b17
commit
df24fea9e0
@ -1,8 +0,0 @@
|
||||
using System;
|
||||
|
||||
namespace NetworkResurrector.WakeOnLan.Nikeee
|
||||
{
|
||||
public class Class1
|
||||
{
|
||||
}
|
||||
}
|
@ -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>();
|
||||
}
|
||||
}
|
||||
}
|
@ -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>
|
||||
|
14
NetworkResurrector.WakeOnLan.Nikeee/WakeOnLanService.cs
Normal file
14
NetworkResurrector.WakeOnLan.Nikeee/WakeOnLanService.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user