NetworkResurrector.Server.Wrapper 1.2.0

NetworkResurrector.Server.Wrapper

NetworkResurrector.Server is a .NET service designed to perform network-related actions such as WakeOnLAN, Ping, and Shutdown for machines within the same network or in networks where it has access.

NetworkResurrector.Server.Wrapper is a NuGet package that simplifies the integration of the server within a .NET environment. It registers a service, IResurrectorService, in the application's service collection, providing methods for each supported action. The package communicates with the server's API, offering a convenient interface for developers to manage the machines in the network through the server.

Once installed, the only additional step is to call the UseResurrectorServices method during application startup. After this, IResurrectorService can be injected into any class within the application.

Features

  • Simple integration with NetworkResurrector.Server.
  • Provides easy-to-use methods for the machines in the network (WakeOnLAN, Ping, Shutdown).
  • Registers IResurrectorService for dependency injection in the application.
  • Facilitates communication with the server's API controller.

Package Repository

You can install NetworkResurrector.Server.Wrapper from my self-hosted NuGet feed: https://lab.code-rove.com/public-nuget-server/

Installation

Visual Studio

NuGet.config File

Add the following to your NuGet.config file:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <clear />
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
    <add key="lab.nuget" value="https://lab.code-rove.com/public-nuget-server/v3/index.json" />
  </packageSources>
</configuration>

Place this file in your Visual Studio solution directory or configure the new NuGet feed in the NuGet Package Manager. After this, you can install NetworkResurrector.Server.Wrapper using the NuGet Package Manager.

CLI

To install via the .NET CLI, run the following command in your project directory:

dotnet add package NetworkResurrector.Server.Wrapper --source https://lab.code-rove.com/public-nuget-server/v3/index.json

Usage

Once installed, call the UseResurrectorServices method in your application startup code to register the service:

public void ConfigureServices(IServiceCollection services)
{
    services.UseResurrectorServices();
}

After this, the IResurrectorService will be available for injection into any class:

public class MyService
{
    private readonly IResurrectorService _resurrectorService;

    public MyService(IResurrectorService resurrectorService)
    {
        _resurrectorService = resurrectorService;
    }

    public void WakeMachine()
    {
        _resurrectorService.WakeMachine();
    }
}

No packages depend on NetworkResurrector.Server.Wrapper.

1.2.0 release [2025-03-29 02:30] ◾ Added support for .NET 8.0 ◾ Added release notes, icon and readme files

1.1.1 release [2023-03-25 02:58] ◾ Server version query update

1.1.0 release [2023-01-15 2:15] ◾ Code refactoring ◾ .NET6 upgrade

1.0.0 release [2022-01-13 10:39] ◾ Initial release of NetworkResurrector.Server.Wrapper

Version Downloads Last updated
1.2.0 7 03/29/2025
1.1.1 53 03/25/2023
1.1.0 34 02/25/2023