Merged PR 22: projects rename
- begin - rename - rename - server subfolder - rename - api subfolder - Dockerfile fixmaster
commit
d314680c9f
|
@ -1,34 +0,0 @@
|
||||||
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base
|
|
||||||
WORKDIR /app
|
|
||||||
EXPOSE 80
|
|
||||||
|
|
||||||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
|
|
||||||
WORKDIR /src
|
|
||||||
COPY dependencies.props .
|
|
||||||
COPY Directory.Build.props .
|
|
||||||
COPY NuGet.config .
|
|
||||||
COPY ["NetworkResurrector.Agent/NetworkResurrector.Agent.csproj", "NetworkResurrector.Agent/"]
|
|
||||||
COPY ["NetworkResurrector.Agent.Application/NetworkResurrector.Agent.Application.csproj", "NetworkResurrector.Agent.Application/"]
|
|
||||||
COPY ["NetworkResurrector.Agent.Domain/NetworkResurrector.Agent.Domain.csproj", "NetworkResurrector.Agent.Domain/"]
|
|
||||||
COPY ["NetworkResurrector.Agent.Domain.Data/NetworkResurrector.Agent.Domain.Data.csproj", "NetworkResurrector.Agent.Domain.Data/"]
|
|
||||||
RUN dotnet restore "NetworkResurrector.Agent/NetworkResurrector.Agent.csproj"
|
|
||||||
COPY . .
|
|
||||||
WORKDIR "/src/NetworkResurrector.Agent"
|
|
||||||
RUN dotnet build "NetworkResurrector.Agent.csproj" -c Release -o /app/build
|
|
||||||
|
|
||||||
FROM build AS publish
|
|
||||||
RUN dotnet publish "NetworkResurrector.Agent.csproj" -c Release -o /app/publish
|
|
||||||
|
|
||||||
FROM base AS final
|
|
||||||
WORKDIR /app
|
|
||||||
COPY --from=publish /app/publish .
|
|
||||||
|
|
||||||
ENV urls="http://*:80"
|
|
||||||
ENV ConnectionStrings__DatabaseConnection="***REMOVED***"
|
|
||||||
|
|
||||||
#Workaround to lower the TLS level in container for old sql server version
|
|
||||||
RUN sed -i 's/TLSv1.2/TLSv1.0/g' /etc/ssl/openssl.cnf
|
|
||||||
|
|
||||||
ENTRYPOINT ["dotnet", "NetworkResurrector.Agent.dll", "--console"]
|
|
|
@ -1,6 +0,0 @@
|
||||||
namespace NetworkResurrector.Domain.Services
|
|
||||||
{
|
|
||||||
public interface IParamProvider
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 16
|
# Visual Studio Version 16
|
||||||
VisualStudioVersion = 16.0.30002.166
|
VisualStudioVersion = 16.0.30002.166
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Api", "NetworkResurrector.Api\NetworkResurrector.Api.csproj", "{F6600491-5D79-4548-8745-59D9D337D3DB}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Server", "src\server\NetworkResurrector.Server\NetworkResurrector.Server.csproj", "{F6600491-5D79-4548-8745-59D9D337D3DB}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FDDE879C-E0A3-4BF1-945F-7FEA324C8EBA}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FDDE879C-E0A3-4BF1-945F-7FEA324C8EBA}"
|
||||||
ProjectSection(SolutionItems) = preProject
|
ProjectSection(SolutionItems) = preProject
|
||||||
|
@ -17,29 +17,29 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
||||||
ReleaseNotes.xml = ReleaseNotes.xml
|
ReleaseNotes.xml = ReleaseNotes.xml
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Application", "NetworkResurrector.Application\NetworkResurrector.Application.csproj", "{15D65D65-CC96-45DE-8590-AF9132889D98}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Server.Application", "src\server\NetworkResurrector.Server.Application\NetworkResurrector.Server.Application.csproj", "{15D65D65-CC96-45DE-8590-AF9132889D98}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Domain", "NetworkResurrector.Domain\NetworkResurrector.Domain.csproj", "{EC78E88E-22DC-4FFD-881E-DEECF0D2494E}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Server.Domain", "src\server\NetworkResurrector.Server.Domain\NetworkResurrector.Server.Domain.csproj", "{EC78E88E-22DC-4FFD-881E-DEECF0D2494E}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Abstractions", "NetworkResurrector.Abstractions\NetworkResurrector.Abstractions.csproj", "{B7408385-ED73-4ED3-9654-9AFF8CDFDA8D}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Server.Abstractions", "src\server\NetworkResurrector.Server.Abstractions\NetworkResurrector.Server.Abstractions.csproj", "{B7408385-ED73-4ED3-9654-9AFF8CDFDA8D}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.WakeOnLan.Nikeee", "NetworkResurrector.WakeOnLan.Nikeee\NetworkResurrector.WakeOnLan.Nikeee.csproj", "{59049C2B-CEFB-456D-B3D5-D2CF5325AEEB}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.WakeOnLan.Nikeee", "src\server\NetworkResurrector.WakeOnLan.Nikeee\NetworkResurrector.WakeOnLan.Nikeee.csproj", "{59049C2B-CEFB-456D-B3D5-D2CF5325AEEB}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.WakeOnLan.Inhouse", "NetworkResurrector.WakeOnLan.Inhouse\NetworkResurrector.WakeOnLan.Inhouse.csproj", "{8A593A37-7ECA-4EDD-A0A7-86CA88ECC1BD}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.WakeOnLan.Inhouse", "src\server\NetworkResurrector.WakeOnLan.Inhouse\NetworkResurrector.WakeOnLan.Inhouse.csproj", "{8A593A37-7ECA-4EDD-A0A7-86CA88ECC1BD}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{B0C5F0C1-0BF8-4651-AAFC-BE01F516D7B8}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{B0C5F0C1-0BF8-4651-AAFC-BE01F516D7B8}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "api", "api", "{6889D39C-D8DA-4B99-AFC1-F0B6355E73C0}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "server", "server", "{6889D39C-D8DA-4B99-AFC1-F0B6355E73C0}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "agent", "agent", "{43C78941-52E6-4AB8-9170-CC7C006E4784}"
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "api", "api", "{43C78941-52E6-4AB8-9170-CC7C006E4784}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Agent", "NetworkResurrector.Agent\NetworkResurrector.Agent.csproj", "{E10CEE53-8167-446F-BFF3-B80725BB6C90}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Api", "src\api\NetworkResurrector.Api\NetworkResurrector.Api.csproj", "{E10CEE53-8167-446F-BFF3-B80725BB6C90}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Agent.Application", "NetworkResurrector.Agent.Application\NetworkResurrector.Agent.Application.csproj", "{EE31B126-12EC-46B3-8FB4-AD5BCF14C029}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Api.Application", "src\api\NetworkResurrector.Api.Application\NetworkResurrector.Api.Application.csproj", "{EE31B126-12EC-46B3-8FB4-AD5BCF14C029}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Agent.Domain", "NetworkResurrector.Agent.Domain\NetworkResurrector.Agent.Domain.csproj", "{885D5625-028A-4B35-8C89-7EF718BC6E34}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Api.Domain", "src\api\NetworkResurrector.Api.Domain\NetworkResurrector.Api.Domain.csproj", "{885D5625-028A-4B35-8C89-7EF718BC6E34}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Agent.Domain.Data", "NetworkResurrector.Agent.Domain.Data\NetworkResurrector.Agent.Domain.Data.csproj", "{509767A7-D11C-4143-8D45-01E62DFC2C74}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "NetworkResurrector.Api.Domain.Data", "src\api\NetworkResurrector.Api.Domain.Data\NetworkResurrector.Api.Domain.Data.csproj", "{509767A7-D11C-4143-8D45-01E62DFC2C74}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
|
|
|
@ -3,7 +3,7 @@ Publish:
|
||||||
dotnet publish --configuration Release --runtime win7-x64
|
dotnet publish --configuration Release --runtime win7-x64
|
||||||
|
|
||||||
Create windows service:
|
Create windows service:
|
||||||
sc create NetworkResurrector.Api binPath= "<path_to_the_service_executable>"
|
sc create NetworkResurrector.Server binPath= "<path_to_the_service_executable>"
|
||||||
#######################################################################################################################################################
|
#######################################################################################################################################################
|
||||||
Resources: https://github.com/nikeee/wake-on-lan
|
Resources: https://github.com/nikeee/wake-on-lan
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ Agent:
|
||||||
|
|
||||||
Create image:
|
Create image:
|
||||||
--from solution folder:
|
--from solution folder:
|
||||||
docker image build -t "network-resurrector-agent:1.0.0" -f "NetworkResurrector.Agent/Dockerfile" .
|
docker image build -t "network-resurrector-agent:1.0.0" -f "NetworkResurrector.Api/Dockerfile" .
|
||||||
|
|
||||||
Run image:
|
Run image:
|
||||||
docker run -p 5053:80 -it network-resurrector-agent:1.0.0
|
docker run -p 5053:80 -it network-resurrector-agent:1.0.0
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
namespace NetworkResurrector.Agent.Application
|
namespace NetworkResurrector.Api.Application
|
||||||
{
|
{
|
||||||
public static class DependencyInjectionExtensions
|
public static class DependencyInjectionExtensions
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
using AutoMapper;
|
using AutoMapper;
|
||||||
using NetworkResurrector.Agent.Application.Queries;
|
using NetworkResurrector.Api.Application.Queries;
|
||||||
using NetworkResurrector.Agent.Domain.Entities;
|
using NetworkResurrector.Api.Domain.Entities;
|
||||||
|
|
||||||
namespace NetworkResurrector.Agent.Application.Mappings
|
namespace NetworkResurrector.Api.Application.Mappings
|
||||||
{
|
{
|
||||||
public class MappingProfile : Profile
|
public class MappingProfile : Profile
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
<TargetFramework>netstandard2.0</TargetFramework>
|
||||||
|
@ -14,6 +14,6 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\NetworkResurrector.Agent.Domain\NetworkResurrector.Agent.Domain.csproj" />
|
<ProjectReference Include="..\NetworkResurrector.Api.Domain\NetworkResurrector.Api.Domain.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
|
@ -1,11 +1,11 @@
|
||||||
using AutoMapper;
|
using AutoMapper;
|
||||||
using MediatR;
|
using MediatR;
|
||||||
using NDB.Application.DataContracts;
|
using NDB.Application.DataContracts;
|
||||||
using NetworkResurrector.Agent.Domain.Repositories;
|
using NetworkResurrector.Api.Domain.Repositories;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NetworkResurrector.Agent.Application.Queries
|
namespace NetworkResurrector.Api.Application.Queries
|
||||||
{
|
{
|
||||||
public class GetMachines
|
public class GetMachines
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using NetworkResurrector.Agent.Domain.Data.EntityTypeConfiguration;
|
using NetworkResurrector.Api.Domain.Data.EntityTypeConfiguration;
|
||||||
using NetworkResurrector.Agent.Domain.Entities;
|
using NetworkResurrector.Api.Domain.Entities;
|
||||||
|
|
||||||
namespace NetworkResurrector.Agent.Domain.Data.DbContexts
|
namespace NetworkResurrector.Api.Domain.Data.DbContexts
|
||||||
{
|
{
|
||||||
public class AgentDbContext : DbContext
|
public class AgentDbContext : DbContext
|
||||||
{
|
{
|
|
@ -1,11 +1,11 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using NetworkResurrector.Agent.Domain.Data.DbContexts;
|
using NetworkResurrector.Api.Domain.Data.DbContexts;
|
||||||
using NetworkResurrector.Agent.Domain.Data.Repositories;
|
using NetworkResurrector.Api.Domain.Data.Repositories;
|
||||||
using NetworkResurrector.Agent.Domain.Repositories;
|
using NetworkResurrector.Api.Domain.Repositories;
|
||||||
|
|
||||||
namespace NetworkResurrector.Agent.Domain.Data
|
namespace NetworkResurrector.Api.Domain.Data
|
||||||
{
|
{
|
||||||
public static class DependencyInjectionExtensions
|
public static class DependencyInjectionExtensions
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
using Microsoft.EntityFrameworkCore.Metadata.Builders;
|
||||||
using NetworkResurrector.Agent.Domain.Entities;
|
using NetworkResurrector.Api.Domain.Entities;
|
||||||
|
|
||||||
namespace NetworkResurrector.Agent.Domain.Data.EntityTypeConfiguration
|
namespace NetworkResurrector.Api.Domain.Data.EntityTypeConfiguration
|
||||||
{
|
{
|
||||||
class MachineConfiguration : IEntityTypeConfiguration<Machine>
|
class MachineConfiguration : IEntityTypeConfiguration<Machine>
|
||||||
{
|
{
|
|
@ -9,7 +9,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\NetworkResurrector.Agent.Domain\NetworkResurrector.Agent.Domain.csproj" />
|
<ProjectReference Include="..\NetworkResurrector.Api.Domain\NetworkResurrector.Api.Domain.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
|
@ -1,10 +1,10 @@
|
||||||
using Microsoft.EntityFrameworkCore;
|
using Microsoft.EntityFrameworkCore;
|
||||||
using NetworkResurrector.Agent.Domain.Data.DbContexts;
|
using NetworkResurrector.Api.Domain.Data.DbContexts;
|
||||||
using NetworkResurrector.Agent.Domain.Entities;
|
using NetworkResurrector.Api.Domain.Entities;
|
||||||
using NetworkResurrector.Agent.Domain.Repositories;
|
using NetworkResurrector.Api.Domain.Repositories;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NetworkResurrector.Agent.Domain.Data.Repositories
|
namespace NetworkResurrector.Api.Domain.Data.Repositories
|
||||||
{
|
{
|
||||||
class AgentRepository : IAgentRepository
|
class AgentRepository : IAgentRepository
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NetworkResurrector.Agent.Domain.Entities
|
namespace NetworkResurrector.Api.Domain.Entities
|
||||||
{
|
{
|
||||||
public class Machine
|
public class Machine
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
using NetworkResurrector.Agent.Domain.Entities;
|
using NetworkResurrector.Api.Domain.Entities;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NetworkResurrector.Agent.Domain.Repositories
|
namespace NetworkResurrector.Api.Domain.Repositories
|
||||||
{
|
{
|
||||||
public interface IAgentRepository
|
public interface IAgentRepository
|
||||||
{
|
{
|
|
@ -1,9 +1,9 @@
|
||||||
using MediatR;
|
using MediatR;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using NetworkResurrector.Agent.Application.Queries;
|
using NetworkResurrector.Api.Application.Queries;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NetworkResurrector.Agent.Controllers
|
namespace NetworkResurrector.Api.Controllers
|
||||||
{
|
{
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[Route("resurrector-agent")]
|
[Route("resurrector-agent")]
|
|
@ -0,0 +1,34 @@
|
||||||
|
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base
|
||||||
|
WORKDIR /app
|
||||||
|
EXPOSE 80
|
||||||
|
|
||||||
|
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
|
||||||
|
WORKDIR /src
|
||||||
|
COPY dependencies.props .
|
||||||
|
COPY Directory.Build.props .
|
||||||
|
COPY NuGet.config .
|
||||||
|
COPY ["src/api/NetworkResurrector.Api/NetworkResurrector.Api.csproj", "NetworkResurrector.Api/"]
|
||||||
|
COPY ["src/api/NetworkResurrector.Api.Application/NetworkResurrector.Api.Application.csproj", "NetworkResurrector.Api.Application/"]
|
||||||
|
COPY ["src/api/NetworkResurrector.Api.Domain/NetworkResurrector.Api.Domain.csproj", "NetworkResurrector.Api.Domain/"]
|
||||||
|
COPY ["src/api/NetworkResurrector.Api.Domain.Data/NetworkResurrector.Api.Domain.Data.csproj", "NetworkResurrector.Api.Domain.Data/"]
|
||||||
|
RUN dotnet restore "NetworkResurrector.Api/NetworkResurrector.Api.csproj"
|
||||||
|
COPY . .
|
||||||
|
WORKDIR "/src/NetworkResurrector.Api"
|
||||||
|
RUN dotnet build "NetworkResurrector.Api.csproj" -c Release -o /app/build
|
||||||
|
|
||||||
|
FROM build AS publish
|
||||||
|
RUN dotnet publish "NetworkResurrector.Api.csproj" -c Release -o /app/publish
|
||||||
|
|
||||||
|
FROM base AS final
|
||||||
|
WORKDIR /app
|
||||||
|
COPY --from=publish /app/publish .
|
||||||
|
|
||||||
|
ENV urls="http://*:80"
|
||||||
|
ENV ConnectionStrings__DatabaseConnection="***REMOVED***"
|
||||||
|
|
||||||
|
#Workaround to lower the TLS level in container for old sql server version
|
||||||
|
RUN sed -i 's/TLSv1.2/TLSv1.0/g' /etc/ssl/openssl.cnf
|
||||||
|
|
||||||
|
ENTRYPOINT ["dotnet", "NetworkResurrector.Api.dll", "--console"]
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
|
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -22,9 +23,8 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\NetworkResurrector.Application\NetworkResurrector.Application.csproj" />
|
<ProjectReference Include="..\NetworkResurrector.Api.Application\NetworkResurrector.Api.Application.csproj" />
|
||||||
<ProjectReference Include="..\NetworkResurrector.WakeOnLan.Inhouse\NetworkResurrector.WakeOnLan.Inhouse.csproj" />
|
<ProjectReference Include="..\NetworkResurrector.Api.Domain.Data\NetworkResurrector.Api.Domain.Data.csproj" />
|
||||||
<ProjectReference Include="..\NetworkResurrector.WakeOnLan.Nikeee\NetworkResurrector.WakeOnLan.Nikeee.csproj" />
|
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
|
@ -10,7 +10,7 @@ using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace NetworkResurrector.Agent
|
namespace NetworkResurrector.Api
|
||||||
{
|
{
|
||||||
public class Program
|
public class Program
|
||||||
{
|
{
|
|
@ -8,12 +8,12 @@ using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
using NDB.Extensions.Swagger;
|
using NDB.Extensions.Swagger;
|
||||||
using NDB.Security.Authentication.Identity;
|
using NDB.Security.Authentication.Identity;
|
||||||
using NetworkResurrector.Agent.Application;
|
using NetworkResurrector.Api.Application;
|
||||||
using NetworkResurrector.Agent.Domain.Data;
|
using NetworkResurrector.Api.Domain.Data;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace NetworkResurrector.Agent
|
namespace NetworkResurrector.Api
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NetworkResurrector.Abstractions
|
namespace NetworkResurrector.Server.Abstractions
|
||||||
{
|
{
|
||||||
public interface INotifier
|
public interface INotifier
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NetworkResurrector.Abstractions
|
namespace NetworkResurrector.Server.Abstractions
|
||||||
{
|
{
|
||||||
public interface IWakeOnLanService
|
public interface IWakeOnLanService
|
||||||
{
|
{
|
|
@ -1,13 +1,13 @@
|
||||||
using MediatR;
|
using MediatR;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using NetworkResurrector.Application.Commands;
|
using NetworkResurrector.Server.Application.Commands;
|
||||||
using NetworkResurrector.Application.Events;
|
using NetworkResurrector.Server.Application.Events;
|
||||||
using NetworkResurrector.Application.Services;
|
using NetworkResurrector.Server.Application.Services;
|
||||||
using System;
|
using System;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application.CommandHandlers
|
namespace NetworkResurrector.Server.Application.CommandHandlers
|
||||||
{
|
{
|
||||||
public class PingMachineHandler : IRequestHandler<PingMachine, MachinePinged>
|
public class PingMachineHandler : IRequestHandler<PingMachine, MachinePinged>
|
||||||
{
|
{
|
|
@ -1,13 +1,13 @@
|
||||||
using MediatR;
|
using MediatR;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using NetworkResurrector.Application.Commands;
|
using NetworkResurrector.Server.Application.Commands;
|
||||||
using NetworkResurrector.Application.Events;
|
using NetworkResurrector.Server.Application.Events;
|
||||||
using NetworkResurrector.Application.Services;
|
using NetworkResurrector.Server.Application.Services;
|
||||||
using System;
|
using System;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application.CommandHandlers
|
namespace NetworkResurrector.Server.Application.CommandHandlers
|
||||||
{
|
{
|
||||||
public class ShutdownMachineHandler : IRequestHandler<ShutdownMachine, MachineShutdown>
|
public class ShutdownMachineHandler : IRequestHandler<ShutdownMachine, MachineShutdown>
|
||||||
{
|
{
|
|
@ -1,13 +1,13 @@
|
||||||
using MediatR;
|
using MediatR;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using NetworkResurrector.Abstractions;
|
using NetworkResurrector.Server.Abstractions;
|
||||||
using NetworkResurrector.Application.Commands;
|
using NetworkResurrector.Server.Application.Commands;
|
||||||
using NetworkResurrector.Application.Events;
|
using NetworkResurrector.Server.Application.Events;
|
||||||
using System;
|
using System;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application.CommandHandlers
|
namespace NetworkResurrector.Server.Application.CommandHandlers
|
||||||
{
|
{
|
||||||
public class WakeMachineHandler : IRequestHandler<WakeMachine, MachineWaked>
|
public class WakeMachineHandler : IRequestHandler<WakeMachine, MachineWaked>
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
using NDB.Application.DataContracts;
|
using NDB.Application.DataContracts;
|
||||||
using NetworkResurrector.Application.Events;
|
using NetworkResurrector.Server.Application.Events;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application.Commands
|
namespace NetworkResurrector.Server.Application.Commands
|
||||||
{
|
{
|
||||||
public class PingMachine : Command<MachinePinged>
|
public class PingMachine : Command<MachinePinged>
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
using NDB.Application.DataContracts;
|
using NDB.Application.DataContracts;
|
||||||
using NetworkResurrector.Application.Events;
|
using NetworkResurrector.Server.Application.Events;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application.Commands
|
namespace NetworkResurrector.Server.Application.Commands
|
||||||
{
|
{
|
||||||
public class ShutdownMachine : Command<MachineShutdown>
|
public class ShutdownMachine : Command<MachineShutdown>
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
using NDB.Application.DataContracts;
|
using NDB.Application.DataContracts;
|
||||||
using NetworkResurrector.Application.Events;
|
using NetworkResurrector.Server.Application.Events;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application.Commands
|
namespace NetworkResurrector.Server.Application.Commands
|
||||||
{
|
{
|
||||||
public class WakeMachine : Command<MachineWaked>
|
public class WakeMachine : Command<MachineWaked>
|
||||||
{
|
{
|
|
@ -1,9 +1,9 @@
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using NetworkResurrector.Application.Services;
|
using NetworkResurrector.Server.Application.Services;
|
||||||
using NetworkResurrector.Application.Stores;
|
using NetworkResurrector.Server.Application.Stores;
|
||||||
using NetworkResurrector.Domain.Services;
|
using NetworkResurrector.Server.Domain.Services;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application
|
namespace NetworkResurrector.Server.Application
|
||||||
{
|
{
|
||||||
public static class DependencyInjectionExtensions
|
public static class DependencyInjectionExtensions
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NetworkResurrector.Application.Events
|
namespace NetworkResurrector.Server.Application.Events
|
||||||
{
|
{
|
||||||
public class MachinePinged
|
public class MachinePinged
|
||||||
{
|
{
|
|
@ -2,7 +2,7 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application.Events
|
namespace NetworkResurrector.Server.Application.Events
|
||||||
{
|
{
|
||||||
public class MachineShutdown
|
public class MachineShutdown
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NetworkResurrector.Application.Events
|
namespace NetworkResurrector.Server.Application.Events
|
||||||
{
|
{
|
||||||
public class MachineWaked
|
public class MachineWaked
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using AutoMapper;
|
using AutoMapper;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application.Mappings
|
namespace NetworkResurrector.Server.Application.Mappings
|
||||||
{
|
{
|
||||||
public class MappingProfile : Profile
|
public class MappingProfile : Profile
|
||||||
{
|
{
|
|
@ -16,8 +16,8 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\NetworkResurrector.Abstractions\NetworkResurrector.Abstractions.csproj" />
|
<ProjectReference Include="..\NetworkResurrector.Server.Abstractions\NetworkResurrector.Server.Abstractions.csproj" />
|
||||||
<ProjectReference Include="..\NetworkResurrector.Domain\NetworkResurrector.Domain.csproj" />
|
<ProjectReference Include="..\NetworkResurrector.Server.Domain\NetworkResurrector.Server.Domain.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NetworkResurrector.Application.Queries
|
namespace NetworkResurrector.Server.Application.Queries
|
||||||
{
|
{
|
||||||
class GetServiceVersion
|
class GetServiceVersion
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application.Services
|
namespace NetworkResurrector.Server.Application.Services
|
||||||
{
|
{
|
||||||
public interface IPingService
|
public interface IPingService
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NetworkResurrector.Application.Services
|
namespace NetworkResurrector.Server.Application.Services
|
||||||
{
|
{
|
||||||
public interface IShutdownService
|
public interface IShutdownService
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NetworkResurrector.Application.Services
|
namespace NetworkResurrector.Server.Application.Services
|
||||||
{
|
{
|
||||||
public interface IValidationService
|
public interface IValidationService
|
||||||
{
|
{
|
|
@ -1,7 +1,7 @@
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
using NetworkResurrector.Domain.Services;
|
using NetworkResurrector.Server.Domain.Services;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application.Services
|
namespace NetworkResurrector.Server.Application.Services
|
||||||
{
|
{
|
||||||
public class ParamProvider : IParamProvider
|
public class ParamProvider : IParamProvider
|
||||||
{
|
{
|
|
@ -2,7 +2,7 @@
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application.Services
|
namespace NetworkResurrector.Server.Application.Services
|
||||||
{
|
{
|
||||||
public class PingService : IPingService
|
public class PingService : IPingService
|
||||||
{
|
{
|
|
@ -3,7 +3,7 @@ using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Management;
|
using System.Management;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application.Services
|
namespace NetworkResurrector.Server.Application.Services
|
||||||
{
|
{
|
||||||
public class ShutdownService : IShutdownService
|
public class ShutdownService : IShutdownService
|
||||||
{
|
{
|
|
@ -2,7 +2,7 @@
|
||||||
using System;
|
using System;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application.Services
|
namespace NetworkResurrector.Server.Application.Services
|
||||||
{
|
{
|
||||||
public class ValidationService : IValidationService
|
public class ValidationService : IValidationService
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using NetworkResurrector.Domain.Models;
|
using NetworkResurrector.Server.Domain.Models;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application.Stores
|
namespace NetworkResurrector.Server.Application.Stores
|
||||||
{
|
{
|
||||||
public interface ISecurityStore
|
public interface ISecurityStore
|
||||||
{
|
{
|
|
@ -1,8 +1,8 @@
|
||||||
using NetworkResurrector.Domain.Models;
|
using NetworkResurrector.Server.Domain.Models;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace NetworkResurrector.Application.Stores
|
namespace NetworkResurrector.Server.Application.Stores
|
||||||
{
|
{
|
||||||
public class SecurityStore : ISecurityStore
|
public class SecurityStore : ISecurityStore
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace NetworkResurrector.Domain.Models
|
namespace NetworkResurrector.Server.Domain.Models
|
||||||
{
|
{
|
||||||
public class SecurityToken
|
public class SecurityToken
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NetworkResurrector.Domain.Models.Settings
|
namespace NetworkResurrector.Server.Domain.Models.Settings
|
||||||
{
|
{
|
||||||
public class Credentials
|
public class Credentials
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NetworkResurrector.Domain.Models
|
namespace NetworkResurrector.Server.Domain.Models
|
||||||
{
|
{
|
||||||
public class TokenValidation
|
public class TokenValidation
|
||||||
{
|
{
|
|
@ -0,0 +1,6 @@
|
||||||
|
namespace NetworkResurrector.Server.Domain.Services
|
||||||
|
{
|
||||||
|
public interface IParamProvider
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,10 +1,10 @@
|
||||||
using MediatR;
|
using MediatR;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
using NetworkResurrector.Application.Commands;
|
using NetworkResurrector.Server.Application.Commands;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NetworkResurrector.Api.Controllers
|
namespace NetworkResurrector.Server.Controllers
|
||||||
{
|
{
|
||||||
[Authorize]
|
[Authorize]
|
||||||
[ApiController]
|
[ApiController]
|
|
@ -4,7 +4,7 @@ using NetworkResurrector.WakeOnLan.Inhouse;
|
||||||
using NetworkResurrector.WakeOnLan.Nikeee;
|
using NetworkResurrector.WakeOnLan.Nikeee;
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace NetworkResurrector.Api.Extensions
|
namespace NetworkResurrector.Server.Extensions
|
||||||
{
|
{
|
||||||
public static class WakeOnLanExtensions
|
public static class WakeOnLanExtensions
|
||||||
{
|
{
|
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||||
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
@ -23,8 +22,9 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\NetworkResurrector.Agent.Application\NetworkResurrector.Agent.Application.csproj" />
|
<ProjectReference Include="..\NetworkResurrector.Server.Application\NetworkResurrector.Server.Application.csproj" />
|
||||||
<ProjectReference Include="..\NetworkResurrector.Agent.Domain.Data\NetworkResurrector.Agent.Domain.Data.csproj" />
|
<ProjectReference Include="..\NetworkResurrector.WakeOnLan.Inhouse\NetworkResurrector.WakeOnLan.Inhouse.csproj" />
|
||||||
|
<ProjectReference Include="..\NetworkResurrector.WakeOnLan.Nikeee\NetworkResurrector.WakeOnLan.Nikeee.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
|
@ -10,7 +10,7 @@ using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
|
||||||
namespace NetworkResurrector.Api
|
namespace NetworkResurrector.Server
|
||||||
{
|
{
|
||||||
public class Program
|
public class Program
|
||||||
{
|
{
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"profiles": {
|
"profiles": {
|
||||||
"NetworkResurrector.Agent": {
|
"NetworkResurrector.Server": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"applicationUrl": "http://localhost:5000",
|
"applicationUrl": "http://localhost:5000",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
|
@ -8,12 +8,12 @@ using Microsoft.Extensions.DependencyInjection;
|
||||||
using Microsoft.Extensions.Hosting;
|
using Microsoft.Extensions.Hosting;
|
||||||
using NDB.Extensions.Swagger;
|
using NDB.Extensions.Swagger;
|
||||||
using NDB.Security.Authentication.Identity;
|
using NDB.Security.Authentication.Identity;
|
||||||
using NetworkResurrector.Api.Extensions;
|
using NetworkResurrector.Server.Extensions;
|
||||||
using NetworkResurrector.Application;
|
using NetworkResurrector.Server.Application;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
namespace NetworkResurrector.Api
|
namespace NetworkResurrector.Server
|
||||||
{
|
{
|
||||||
public class Startup
|
public class Startup
|
||||||
{
|
{
|
|
@ -1,5 +1,5 @@
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using NetworkResurrector.Abstractions;
|
using NetworkResurrector.Server.Abstractions;
|
||||||
|
|
||||||
namespace NetworkResurrector.WakeOnLan.Inhouse
|
namespace NetworkResurrector.WakeOnLan.Inhouse
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
<TargetFramework>netstandard2.0</TargetFramework>
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\NetworkResurrector.Abstractions\NetworkResurrector.Abstractions.csproj" />
|
<ProjectReference Include="..\NetworkResurrector.Server.Abstractions\NetworkResurrector.Server.Abstractions.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
|
@ -1,4 +1,4 @@
|
||||||
using NetworkResurrector.Abstractions;
|
using NetworkResurrector.Server.Abstractions;
|
||||||
using System.Globalization;
|
using System.Globalization;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
|
@ -1,5 +1,5 @@
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
using NetworkResurrector.Abstractions;
|
using NetworkResurrector.Server.Abstractions;
|
||||||
|
|
||||||
namespace NetworkResurrector.WakeOnLan.Nikeee
|
namespace NetworkResurrector.WakeOnLan.Nikeee
|
||||||
{
|
{
|
|
@ -1,4 +1,4 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard2.0</TargetFramework>
|
<TargetFramework>netstandard2.0</TargetFramework>
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\NetworkResurrector.Abstractions\NetworkResurrector.Abstractions.csproj" />
|
<ProjectReference Include="..\NetworkResurrector.Server.Abstractions\NetworkResurrector.Server.Abstractions.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
|
@ -1,4 +1,4 @@
|
||||||
using NetworkResurrector.Abstractions;
|
using NetworkResurrector.Server.Abstractions;
|
||||||
using System.Net;
|
using System.Net;
|
||||||
using System.Net.NetworkInformation;
|
using System.Net.NetworkInformation;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
Loading…
Reference in New Issue