master
Tudor Stanciu 2021-04-06 02:17:11 +03:00
parent 828b57f504
commit 04954c5a2b
27 changed files with 44 additions and 44 deletions

View File

@ -1,7 +1,7 @@
using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using NetworkResurrector.Application.Commands;
using NetworkResurrector.Server.Application.Commands;
using System.Threading.Tasks;
namespace NetworkResurrector.Server.Controllers

View File

@ -9,7 +9,7 @@ using Microsoft.Extensions.Hosting;
using NDB.Extensions.Swagger;
using NDB.Security.Authentication.Identity;
using NetworkResurrector.Server.Extensions;
using NetworkResurrector.Application;
using NetworkResurrector.Server.Application;
using Newtonsoft.Json;
using System.Reflection;

View File

@ -1,13 +1,13 @@
using MediatR;
using Microsoft.Extensions.Logging;
using NetworkResurrector.Application.Commands;
using NetworkResurrector.Application.Events;
using NetworkResurrector.Application.Services;
using NetworkResurrector.Server.Application.Commands;
using NetworkResurrector.Server.Application.Events;
using NetworkResurrector.Server.Application.Services;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace NetworkResurrector.Application.CommandHandlers
namespace NetworkResurrector.Server.Application.CommandHandlers
{
public class PingMachineHandler : IRequestHandler<PingMachine, MachinePinged>
{

View File

@ -1,13 +1,13 @@
using MediatR;
using Microsoft.Extensions.Logging;
using NetworkResurrector.Application.Commands;
using NetworkResurrector.Application.Events;
using NetworkResurrector.Application.Services;
using NetworkResurrector.Server.Application.Commands;
using NetworkResurrector.Server.Application.Events;
using NetworkResurrector.Server.Application.Services;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace NetworkResurrector.Application.CommandHandlers
namespace NetworkResurrector.Server.Application.CommandHandlers
{
public class ShutdownMachineHandler : IRequestHandler<ShutdownMachine, MachineShutdown>
{

View File

@ -1,13 +1,13 @@
using MediatR;
using Microsoft.Extensions.Logging;
using NetworkResurrector.Server.Abstractions;
using NetworkResurrector.Application.Commands;
using NetworkResurrector.Application.Events;
using NetworkResurrector.Server.Application.Commands;
using NetworkResurrector.Server.Application.Events;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace NetworkResurrector.Application.CommandHandlers
namespace NetworkResurrector.Server.Application.CommandHandlers
{
public class WakeMachineHandler : IRequestHandler<WakeMachine, MachineWaked>
{

View File

@ -1,8 +1,8 @@
using NDB.Application.DataContracts;
using NetworkResurrector.Application.Events;
using NetworkResurrector.Server.Application.Events;
using System;
namespace NetworkResurrector.Application.Commands
namespace NetworkResurrector.Server.Application.Commands
{
public class PingMachine : Command<MachinePinged>
{

View File

@ -1,8 +1,8 @@
using NDB.Application.DataContracts;
using NetworkResurrector.Application.Events;
using NetworkResurrector.Server.Application.Events;
using System;
namespace NetworkResurrector.Application.Commands
namespace NetworkResurrector.Server.Application.Commands
{
public class ShutdownMachine : Command<MachineShutdown>
{

View File

@ -1,8 +1,8 @@
using NDB.Application.DataContracts;
using NetworkResurrector.Application.Events;
using NetworkResurrector.Server.Application.Events;
using System;
namespace NetworkResurrector.Application.Commands
namespace NetworkResurrector.Server.Application.Commands
{
public class WakeMachine : Command<MachineWaked>
{

View File

@ -1,9 +1,9 @@
using Microsoft.Extensions.DependencyInjection;
using NetworkResurrector.Application.Services;
using NetworkResurrector.Application.Stores;
using NetworkResurrector.Domain.Services;
using NetworkResurrector.Server.Application.Services;
using NetworkResurrector.Server.Application.Stores;
using NetworkResurrector.Server.Domain.Services;
namespace NetworkResurrector.Application
namespace NetworkResurrector.Server.Application
{
public static class DependencyInjectionExtensions
{

View File

@ -1,4 +1,4 @@
namespace NetworkResurrector.Application.Events
namespace NetworkResurrector.Server.Application.Events
{
public class MachinePinged
{

View File

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;
namespace NetworkResurrector.Application.Events
namespace NetworkResurrector.Server.Application.Events
{
public class MachineShutdown
{

View File

@ -1,4 +1,4 @@
namespace NetworkResurrector.Application.Events
namespace NetworkResurrector.Server.Application.Events
{
public class MachineWaked
{

View File

@ -1,6 +1,6 @@
using AutoMapper;
namespace NetworkResurrector.Application.Mappings
namespace NetworkResurrector.Server.Application.Mappings
{
public class MappingProfile : Profile
{

View File

@ -1,4 +1,4 @@
namespace NetworkResurrector.Application.Queries
namespace NetworkResurrector.Server.Application.Queries
{
class GetServiceVersion
{

View File

@ -1,6 +1,6 @@
using System.Threading.Tasks;
namespace NetworkResurrector.Application.Services
namespace NetworkResurrector.Server.Application.Services
{
public interface IPingService
{

View File

@ -1,4 +1,4 @@
namespace NetworkResurrector.Application.Services
namespace NetworkResurrector.Server.Application.Services
{
public interface IShutdownService
{

View File

@ -1,4 +1,4 @@
namespace NetworkResurrector.Application.Services
namespace NetworkResurrector.Server.Application.Services
{
public interface IValidationService
{

View File

@ -1,7 +1,7 @@
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
{

View File

@ -2,7 +2,7 @@
using System.Text;
using System.Threading.Tasks;
namespace NetworkResurrector.Application.Services
namespace NetworkResurrector.Server.Application.Services
{
public class PingService : IPingService
{

View File

@ -3,7 +3,7 @@ using System.Diagnostics;
using System.Linq;
using System.Management;
namespace NetworkResurrector.Application.Services
namespace NetworkResurrector.Server.Application.Services
{
public class ShutdownService : IShutdownService
{

View File

@ -2,7 +2,7 @@
using System;
using System.Net;
namespace NetworkResurrector.Application.Services
namespace NetworkResurrector.Server.Application.Services
{
public class ValidationService : IValidationService
{

View File

@ -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
{

View File

@ -1,8 +1,8 @@
using NetworkResurrector.Domain.Models;
using NetworkResurrector.Server.Domain.Models;
using System.Collections.Generic;
using System.Linq;
namespace NetworkResurrector.Application.Stores
namespace NetworkResurrector.Server.Application.Stores
{
public class SecurityStore : ISecurityStore
{

View File

@ -1,6 +1,6 @@
using System;
namespace NetworkResurrector.Domain.Models
namespace NetworkResurrector.Server.Domain.Models
{
public class SecurityToken
{

View File

@ -1,4 +1,4 @@
namespace NetworkResurrector.Domain.Models.Settings
namespace NetworkResurrector.Server.Domain.Models.Settings
{
public class Credentials
{

View File

@ -1,4 +1,4 @@
namespace NetworkResurrector.Domain.Models
namespace NetworkResurrector.Server.Domain.Models
{
public class TokenValidation
{

View File

@ -1,4 +1,4 @@
namespace NetworkResurrector.Domain.Services
namespace NetworkResurrector.Server.Domain.Services
{
public interface IParamProvider
{