From df24fea9e04b08373e95abf8b1a0327a1ae58782 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Fri, 27 Nov 2020 01:16:14 +0200 Subject: [PATCH] implemented IWakeOnLanService in WakeOnLan.Nikee --- NetworkResurrector.WakeOnLan.Nikeee/Class1.cs | 8 -------- .../DependencyInjectionExtensions.cs | 13 +++++++++++++ .../NetworkResurrector.WakeOnLan.Nikeee.csproj | 10 ++++++++++ .../WakeOnLanService.cs | 14 ++++++++++++++ 4 files changed, 37 insertions(+), 8 deletions(-) delete mode 100644 NetworkResurrector.WakeOnLan.Nikeee/Class1.cs create mode 100644 NetworkResurrector.WakeOnLan.Nikeee/DependencyInjectionExtensions.cs create mode 100644 NetworkResurrector.WakeOnLan.Nikeee/WakeOnLanService.cs diff --git a/NetworkResurrector.WakeOnLan.Nikeee/Class1.cs b/NetworkResurrector.WakeOnLan.Nikeee/Class1.cs deleted file mode 100644 index 50d272a..0000000 --- a/NetworkResurrector.WakeOnLan.Nikeee/Class1.cs +++ /dev/null @@ -1,8 +0,0 @@ -using System; - -namespace NetworkResurrector.WakeOnLan.Nikeee -{ - public class Class1 - { - } -} diff --git a/NetworkResurrector.WakeOnLan.Nikeee/DependencyInjectionExtensions.cs b/NetworkResurrector.WakeOnLan.Nikeee/DependencyInjectionExtensions.cs new file mode 100644 index 0000000..0176920 --- /dev/null +++ b/NetworkResurrector.WakeOnLan.Nikeee/DependencyInjectionExtensions.cs @@ -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(); + } + } +} diff --git a/NetworkResurrector.WakeOnLan.Nikeee/NetworkResurrector.WakeOnLan.Nikeee.csproj b/NetworkResurrector.WakeOnLan.Nikeee/NetworkResurrector.WakeOnLan.Nikeee.csproj index 9f5c4f4..cd8f6b3 100644 --- a/NetworkResurrector.WakeOnLan.Nikeee/NetworkResurrector.WakeOnLan.Nikeee.csproj +++ b/NetworkResurrector.WakeOnLan.Nikeee/NetworkResurrector.WakeOnLan.Nikeee.csproj @@ -4,4 +4,14 @@ netstandard2.0 + + + + + + + + + + diff --git a/NetworkResurrector.WakeOnLan.Nikeee/WakeOnLanService.cs b/NetworkResurrector.WakeOnLan.Nikeee/WakeOnLanService.cs new file mode 100644 index 0000000..55f874c --- /dev/null +++ b/NetworkResurrector.WakeOnLan.Nikeee/WakeOnLanService.cs @@ -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(); + } + } +}