rename
parent
828b57f504
commit
04954c5a2b
|
@ -1,7 +1,7 @@
|
||||||
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.Server.Controllers
|
namespace NetworkResurrector.Server.Controllers
|
||||||
|
|
|
@ -9,7 +9,7 @@ using Microsoft.Extensions.Hosting;
|
||||||
using NDB.Extensions.Swagger;
|
using NDB.Extensions.Swagger;
|
||||||
using NDB.Security.Authentication.Identity;
|
using NDB.Security.Authentication.Identity;
|
||||||
using NetworkResurrector.Server.Extensions;
|
using NetworkResurrector.Server.Extensions;
|
||||||
using NetworkResurrector.Application;
|
using NetworkResurrector.Server.Application;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
|
|
||||||
|
|
|
@ -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.Server.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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace NetworkResurrector.Domain.Services
|
namespace NetworkResurrector.Server.Domain.Services
|
||||||
{
|
{
|
||||||
public interface IParamProvider
|
public interface IParamProvider
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue