From a800696cf91d1f2abd6f3c0db1b81701032eead8 Mon Sep 17 00:00:00 2001 From: Jelle Buning Date: Fri, 24 Apr 2026 09:30:13 +0200 Subject: [PATCH 1/3] feat: rebrand Sentinel to Mycelium Rename all project folders, .csproj files, solution file, and update all file contents (namespaces, references, paths) from Sentinel to Mycelium. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/README.md | 38 ++++++++-------- .github/workflows/dotnet_release.yml | 10 ++--- Mycelium.slnx | 18 ++++++++ Sentinel.slnx | 18 -------- .../Commands/Auth/Login/LoginCommand.cs | 4 +- .../Auth/Login/LoginCommandHandler.cs | 6 +-- .../Auth/Login/LoginCommandValidator.cs | 2 +- .../Auth/RefreshToken/RefreshTokenCommand.cs | 4 +- .../RefreshTokenCommandHandler.cs | 6 +-- .../RefreshTokenCommandValidator.cs | 2 +- .../Auth/VerifyTotp/VerifyTotpCommand.cs | 2 +- .../VerifyTotp/VerifyTotpCommandHandler.cs | 8 ++-- .../VerifyTotp/VerifyTotpCommandValidator.cs | 2 +- .../ExecuteSecurityScanCommand.cs | 2 +- .../ExecuteSecurityScanCommandHandler.cs | 4 +- .../Devices/Ping/PingDeviceCommand.cs | 2 +- .../Devices/Ping/PingDeviceCommandHandler.cs | 4 +- .../Ping/PingDeviceCommandValidator.cs | 2 +- .../Devices/Register/RegisterDeviceCommand.cs | 4 +- .../Register/RegisterDeviceCommandHandler.cs | 6 +-- .../RegisterDeviceCommandValidator.cs | 2 +- .../RequestRemoteAccessCommand.cs | 2 +- .../RequestRemoteAccessCommandHandler.cs | 4 +- .../Devices/Restart/RestartDeviceCommand.cs | 2 +- .../Restart/RestartDeviceCommandHandler.cs | 4 +- .../UpdateDeviceInformationCommand.cs | 4 +- .../UpdateDeviceInformationCommandHandler.cs | 4 +- ...UpdateDeviceInformationCommandValidator.cs | 2 +- .../UpdateSecurityInformationCommand.cs | 4 +- ...UpdateSecurityInformationCommandHandler.cs | 4 +- .../UpdateSoftwareInformationCommand.cs | 4 +- ...UpdateSoftwareInformationCommandHandler.cs | 4 +- .../UpdateStorageInformationCommand.cs | 5 +++ .../UpdateStorageInformationCommandHandler.cs | 4 +- .../Users/RegisterUser/RegisterUserCommand.cs | 2 +- .../RegisterUserCommandHandler.cs | 6 +-- .../RegisterUserCommandValidator.cs | 2 +- .../DTO/Device/DeviceTokenResponse.cs | 2 +- .../DTO/Device/GetDevicesResponse.cs | 2 +- .../DTO/Device/RegisterDeviceDto.cs | 2 +- .../DTO/Token/TokenDto.cs | 2 +- .../DTO/User/RegisterUserDto.cs | 2 +- .../DTO/User/SignInUserDto.cs | 2 +- .../DTO/User/SignInUserResponse.cs | 2 +- .../DTO/User/VerifyUserDto.cs | 2 +- .../DependencyInjection.cs | 6 +-- .../Exceptions/BadValidationRequest.cs | 2 +- .../Interfaces/IAuthRepository.cs | 8 ++-- .../Interfaces/IDeviceMessenger.cs | 2 +- .../Interfaces/IDeviceRepository.cs | 8 ++-- .../Interfaces/IOrganisationRepository.cs | 4 +- .../Interfaces/IUserRepository.cs | 8 ++++ .../Mediator/Behaviors/LoggingBehavior.cs | 2 +- .../Behaviors/UnhandledExceptionBehavior.cs | 4 +- .../Mediator/Behaviors/ValidationBehavior.cs | 2 +- .../Exceptions/ValidationException.cs | 2 +- .../Mycelium.Api.Application.csproj} | 6 +-- .../DeviceInformationQuery.cs | 4 +- .../DeviceInformationQueryHandler.cs | 6 +-- .../Queries/Devices/Devices/DevicesQuery.cs | 6 +++ .../Devices/Devices/DevicesQueryHandler.cs | 6 +-- .../SecurityInformationQuery.cs | 4 +- .../SecurityInformationQueryHandler.cs | 6 +-- .../SoftwareInformationQuery.cs | 4 +- .../SoftwareInformationQueryHandler.cs | 6 +-- .../StorageInformationQuery.cs | 4 +- .../StorageInformationQueryHandler.cs | 6 +-- .../Organisations/OrganisationsQuery.cs | 6 +++ .../OrganisationsQueryHandler.cs | 6 +-- .../Services/Interfaces/IJwtTokenGenerator.cs | 2 +- .../Services/TokenGenerator.cs | 4 +- .../Entities/Device.cs | 2 +- .../Entities/DeviceDetails.cs | 2 +- .../Entities/DeviceDisk.cs | 2 +- .../Entities/DeviceSecurity.cs | 2 +- .../Entities/DeviceSoftware.cs | 2 +- .../Entities/Organisation.cs | 2 +- .../Entities/User.cs | 2 +- .../Mycelium.Api.Domain.csproj} | 0 .../DependencyInjection.cs | 16 +++---- .../Exceptions/BadRequestException.cs | 2 +- .../Exceptions/ForbiddenException.cs | 2 +- .../Exceptions/InternalServerException.cs | 2 +- .../Exceptions/NotFoundException.cs | 2 +- .../Exceptions/UnauthorizedException.cs | 2 +- .../Middleware/ExceptionHandlingMiddleware.cs | 8 ++-- .../20241024165627_InitialCommit.Designer.cs | 22 +++++----- .../20241024165627_InitialCommit.cs | 4 +- .../20241219145159_DotNetUpgrade.Designer.cs | 22 +++++----- .../20241219145159_DotNetUpgrade.cs | 4 +- ...20250210145819_DatabaseChanges.Designer.cs | 22 +++++----- .../20250210145819_DatabaseChanges.cs | 4 +- ...21_RemovedDeviceTypeFromDevice.Designer.cs | 22 +++++----- ...50212143021_RemovedDeviceTypeFromDevice.cs | 4 +- ...3150300_AddedBaseDeviceRefresh.Designer.cs | 22 +++++----- .../20250213150300_AddedBaseDeviceRefresh.cs | 4 +- ...217110022_ExtendedDeviceEntity.Designer.cs | 44 +++++++++---------- .../20250217110022_ExtendedDeviceEntity.cs | 4 +- ...20250217111455_RemovedNullable.Designer.cs | 44 +++++++++---------- .../20250217111455_RemovedNullable.cs | 4 +- ...093535_ModifiedDeviceNullables.Designer.cs | 44 +++++++++---------- .../20250224093535_ModifiedDeviceNullables.cs | 4 +- .../Migrations/AppDbContextModelSnapshot.cs | 44 +++++++++---------- .../Mycelium.Api.Infrastructure.csproj} | 6 +-- .../Persistence/AppDbContext.cs | 6 +-- .../Repositories/AuthRepository.cs | 18 ++++---- .../Repositories/DeviceRepository.cs | 18 ++++---- .../Repositories/OrganisationRepository.cs | 10 ++--- .../Repositories/UserRepository.cs | 12 ++--- .../SignalR/DeviceMessageHub.cs | 6 +-- .../SignalR/Interfaces/IDeviceMessageHub.cs | 4 +- .../SignalR/SignalRDeviceMessenger.cs | 8 ++-- .../.config/dotnet-tools.json | 0 .../Controllers/AuthController.cs | 10 ++--- .../Controllers/DeviceAdminController.cs | 20 ++++----- .../Controllers/DeviceController.cs | 22 +++++----- .../Controllers/OrganisationController.cs | 6 +-- .../Controllers/UserController.cs | 6 +-- .../DependencyInjection.cs | 4 +- src/Mycelium.Api/Dockerfile | 26 +++++++++++ .../Extensions/ClaimsPrincipalExtensions.cs | 4 +- .../Extensions/SignalRExtensions.cs | 4 +- .../Mycelium.Api.csproj} | 8 ++-- src/{Sentinel.Api => Mycelium.Api}/Program.cs | 16 +++---- .../appsettings.json | 0 .../docker-compose.yml | 14 +++--- .../Information/GetDeviceInformationDto.cs | 2 +- .../Information/UpdateDeviceInformationDto.cs | 2 +- .../DTO/Device/SecurityInformationDto.cs | 2 +- .../DTO/Device/SoftwareInformationDto.cs | 2 +- .../DTO/Device/StorageInformationDto.cs | 2 +- .../Mycelium.Common.csproj} | 4 +- .../SignalR/RemoteAccessMessage.cs | 2 +- .../SignalR/RestartDeviceMessage.cs | 2 +- .../SignalR/SecurityScanMessage.cs | 2 +- .../Api/AuthenticationDelegatingHandler.cs | 10 ++--- .../Api/AuthenticationHandler.cs | 10 ++--- .../Api/Extensions/HttpClientExtensions.cs | 4 +- .../Api/Extensions/HttpContentExtensions.cs | 4 +- .../Api/Interfaces/IAuthenticationHandler.cs | 4 +- .../Api/SentinelApiService.cs | 14 +++--- .../Consumer/ConsumerBase.cs | 6 +-- .../Consumer/ConsumerConfig.cs | 4 +- .../Consumer/Interfaces/IConsumerConfig.cs | 2 +- .../DTO/DeviceRegistrationResponse.cs | 2 +- .../DTO/DeviceTokenResponse.cs | 2 +- .../Helpers/Kernel32Helper.cs | 4 +- .../Helpers/ProcessHelper.cs | 4 +- .../Module/Interfaces/IModule.cs | 3 ++ .../Interfaces/IScheduledModuleConfig.cs | 2 +- .../Module/Interfaces/IStartupModule.cs | 2 +- .../Module/ScheduledModuleBase.cs | 6 +-- .../Module/ScheduledModuleConfig.cs | 4 +- .../Mycelium.WorkerService.Common.csproj} | 4 +- .../Services/CredentialManager.cs | 8 ++-- .../Services/Interfaces/ICredentialManager.cs | 4 +- .../Mycelium.WorkerService.Core.Linux.csproj | 14 ++++++ .../SecurityScan/LinuxSecurity.cs | 4 +- .../ServiceCollectionExtensions.cs | 20 +++++++++ .../TimeSync/LinuxTimeSync.cs | 4 +- .../DeviceInformationRetriever.cs | 10 ++--- .../FirewallSettingsRetriever.cs | 8 ++-- .../Interfaces/IFirewallSettingsRetriever.cs | 4 +- .../SecurityInformationRetriever.cs | 10 ++--- .../SoftwareInformationRetriever.cs | 8 ++-- .../StorageInformationRetriever.cs | 6 +-- ...Mycelium.WorkerService.Core.Windows.csproj | 14 ++++++ .../SecurityScan/Enums/ScanType.cs | 2 +- .../SecurityScan/WinDefenderService.cs | 8 ++-- .../ServiceCollectionExtensions.cs | 22 +++++----- .../TimeSync/TimeSynchronizer.cs | 6 +-- .../DeviceInformationModule.cs | 16 +++---- .../Interfaces/IDeviceInformationRetriever.cs | 8 ++++ .../ISecurityInformationRetriever.cs | 4 +- .../ISoftwareInformationRetriever.cs | 4 +- .../IStorageInformationRetriever.cs | 8 ++++ .../SecurityInformationModule.cs | 16 +++---- .../SoftwareInformationModule.cs | 16 +++---- .../StorageInformationModule.cs | 16 +++---- .../Mycelium.WorkerService.Core.csproj} | 8 ++-- .../Ping/PingModule.cs | 15 +++++++ .../RestartDevice/RestartDeviceModule.cs | 10 ++--- .../SecurityScan/ISecurityScanner.cs | 2 +- .../SecurityScan/SecurityScanModule.cs | 10 ++--- .../TimeSync/ITimeSynchronizer.cs | 2 +- .../TimeSync/PlaceholderModule.cs | 4 +- .../TimeSync/TimeSyncModule.cs | 6 +-- .../Models/ConnectionDetails.cs | 2 +- ...ycelium.WorkerService.RemoteAccess.csproj} | 6 +-- .../RemoteAccessModule.cs | 12 ++--- .../Services/AnyDeskService.cs | 10 ++--- .../Interfaces/IRemoteAccessService.cs | 4 +- .../Services/LinuxRemoteAccess.cs | 6 +-- .../Extensions/HostExtensions.cs | 6 +-- .../Extensions/SerilogExtensions.cs | 6 +-- .../Extensions/ServiceCollectionExtensions.cs | 34 +++++++------- .../Modules.config | 0 .../Mycelium.WorkerService.csproj} | 16 +++---- .../Program.cs | 14 +++--- .../Services/HubManager.cs | 4 +- .../Services/LicenseManager.cs | 6 +-- .../appsettings.json | 0 .../UpdateStorageInformationCommand.cs | 5 --- .../Interfaces/IUserRepository.cs | 8 ---- .../Queries/Devices/Devices/DevicesQuery.cs | 6 --- .../Organisations/OrganisationsQuery.cs | 6 --- src/Sentinel.Api/Dockerfile | 26 ----------- .../Module/Interfaces/IModule.cs | 3 -- .../Sentinel.WorkerService.Core.Linux.csproj | 14 ------ .../ServiceCollectionExtensions.cs | 20 --------- ...Sentinel.WorkerService.Core.Windows.csproj | 14 ------ .../Interfaces/IDeviceInformationRetriever.cs | 8 ---- .../IStorageInformationRetriever.cs | 8 ---- .../Ping/PingModule.cs | 15 ------- .../Common/ApiFixture.cs | 8 ++-- .../Common/ApiFixtureExtensions.cs | 10 ++--- .../Common/HttpHelpers.cs | 2 +- .../Common/TestAssertions.cs | 2 +- .../Common/TestScope.cs | 10 ++--- .../Device/Authentication/RegisterTests.cs | 8 ++-- .../Device/Management/DeviceRetrievalTests.cs | 8 ++-- .../Updates/UpdateDeviceInformationTests.cs | 6 +-- .../Updates/UpdateSecurityInformationTests.cs | 6 +-- .../Updates/UpdateSoftwareInformationTests.cs | 6 +-- .../Updates/UpdateStorageInformationTests.cs | 6 +-- .../Device/Worker/PingTaskTests.cs | 6 +-- .../Mycelium.Api.Integration.Tests.csproj} | 4 +- .../Organisation/OrganisationTests.cs | 6 +-- .../User/Authentication/RefreshTokenTests.cs | 10 ++--- .../User/Authentication/RegisterTests.cs | 8 ++-- .../User/Authentication/SignInTests.cs | 8 ++-- .../User/Authentication/VerificationTests.cs | 8 ++-- .../User/Modification/UpdateUserTests.cs | 4 +- 233 files changed, 865 insertions(+), 865 deletions(-) create mode 100644 Mycelium.slnx delete mode 100644 Sentinel.slnx rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Auth/Login/LoginCommand.cs (52%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Auth/Login/LoginCommandHandler.cs (77%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Auth/Login/LoginCommandValidator.cs (87%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Auth/RefreshToken/RefreshTokenCommand.cs (52%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Auth/RefreshToken/RefreshTokenCommandHandler.cs (76%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Auth/RefreshToken/RefreshTokenCommandValidator.cs (85%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Auth/VerifyTotp/VerifyTotpCommand.cs (69%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Auth/VerifyTotp/VerifyTotpCommandHandler.cs (75%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Auth/VerifyTotp/VerifyTotpCommandValidator.cs (89%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/ExecuteSecurityScan/ExecuteSecurityScanCommand.cs (59%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/ExecuteSecurityScan/ExecuteSecurityScanCommandHandler.cs (79%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Ping/PingDeviceCommand.cs (56%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Ping/PingDeviceCommandHandler.cs (77%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Ping/PingDeviceCommandValidator.cs (82%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Register/RegisterDeviceCommand.cs (53%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Register/RegisterDeviceCommandHandler.cs (74%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Register/RegisterDeviceCommandValidator.cs (87%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/RequestRemoteAccess/RequestRemoteAccessCommand.cs (59%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/RequestRemoteAccess/RequestRemoteAccessCommandHandler.cs (79%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Restart/RestartDeviceCommand.cs (56%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Restart/RestartDeviceCommandHandler.cs (78%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommand.cs (56%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommandHandler.cs (80%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommandValidator.cs (86%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Update/SecurityInformation/UpdateSecurityInformationCommand.cs (59%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Update/SecurityInformation/UpdateSecurityInformationCommandHandler.cs (80%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Update/SoftwareInformation/UpdateSoftwareInformationCommand.cs (59%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Update/SoftwareInformation/UpdateSoftwareInformationCommandHandler.cs (80%) create mode 100644 src/Mycelium.Api.Application/Commands/Devices/Update/StorageInformation/UpdateStorageInformationCommand.cs rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Devices/Update/StorageInformation/UpdateStorageInformationCommandHandler.cs (80%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Users/RegisterUser/RegisterUserCommand.cs (59%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Users/RegisterUser/RegisterUserCommandHandler.cs (76%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Commands/Users/RegisterUser/RegisterUserCommandValidator.cs (88%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/DTO/Device/DeviceTokenResponse.cs (82%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/DTO/Device/GetDevicesResponse.cs (84%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/DTO/Device/RegisterDeviceDto.cs (73%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/DTO/Token/TokenDto.cs (73%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/DTO/User/RegisterUserDto.cs (73%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/DTO/User/SignInUserDto.cs (73%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/DTO/User/SignInUserResponse.cs (83%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/DTO/User/VerifyUserDto.cs (79%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/DependencyInjection.cs (90%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Exceptions/BadValidationRequest.cs (59%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Interfaces/IAuthRepository.cs (61%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Interfaces/IDeviceMessenger.cs (87%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Interfaces/IDeviceRepository.cs (79%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Interfaces/IOrganisationRepository.cs (50%) create mode 100644 src/Mycelium.Api.Application/Interfaces/IUserRepository.cs rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Mediator/Behaviors/LoggingBehavior.cs (95%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Mediator/Behaviors/UnhandledExceptionBehavior.cs (89%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Mediator/Behaviors/ValidationBehavior.cs (94%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Mediator/Exceptions/ValidationException.cs (90%) rename src/{Sentinel.Api.Application/Sentinel.Api.Application.csproj => Mycelium.Api.Application/Mycelium.Api.Application.csproj} (85%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Queries/Devices/DeviceInformation/DeviceInformationQuery.cs (50%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Queries/Devices/DeviceInformation/DeviceInformationQueryHandler.cs (74%) create mode 100644 src/Mycelium.Api.Application/Queries/Devices/Devices/DevicesQuery.cs rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Queries/Devices/Devices/DevicesQueryHandler.cs (72%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Queries/Devices/SecurityInformation/SecurityInformationQuery.cs (53%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Queries/Devices/SecurityInformation/SecurityInformationQueryHandler.cs (76%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Queries/Devices/SoftwareInformation/SoftwareInformationQuery.cs (53%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Queries/Devices/SoftwareInformation/SoftwareInformationQueryHandler.cs (76%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Queries/Devices/StorageInformation/StorageInformationQuery.cs (53%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Queries/Devices/StorageInformation/StorageInformationQueryHandler.cs (75%) create mode 100644 src/Mycelium.Api.Application/Queries/Organisations/OrganisationsQuery.cs rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Queries/Organisations/OrganisationsQueryHandler.cs (74%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Services/Interfaces/IJwtTokenGenerator.cs (74%) rename src/{Sentinel.Api.Application => Mycelium.Api.Application}/Services/TokenGenerator.cs (92%) rename src/{Sentinel.Api.Domain => Mycelium.Api.Domain}/Entities/Device.cs (92%) rename src/{Sentinel.Api.Domain => Mycelium.Api.Domain}/Entities/DeviceDetails.cs (90%) rename src/{Sentinel.Api.Domain => Mycelium.Api.Domain}/Entities/DeviceDisk.cs (83%) rename src/{Sentinel.Api.Domain => Mycelium.Api.Domain}/Entities/DeviceSecurity.cs (94%) rename src/{Sentinel.Api.Domain => Mycelium.Api.Domain}/Entities/DeviceSoftware.cs (71%) rename src/{Sentinel.Api.Domain => Mycelium.Api.Domain}/Entities/Organisation.cs (85%) rename src/{Sentinel.Api.Domain => Mycelium.Api.Domain}/Entities/User.cs (93%) rename src/{Sentinel.Api.Domain/Sentinel.Api.Domain.csproj => Mycelium.Api.Domain/Mycelium.Api.Domain.csproj} (100%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/DependencyInjection.cs (92%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Exceptions/BadRequestException.cs (57%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Exceptions/ForbiddenException.cs (56%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Exceptions/InternalServerException.cs (58%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Exceptions/NotFoundException.cs (56%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Exceptions/UnauthorizedException.cs (57%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Middleware/ExceptionHandlingMiddleware.cs (87%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20241024165627_InitialCommit.Designer.cs (87%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20241024165627_InitialCommit.cs (98%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20241219145159_DotNetUpgrade.Designer.cs (87%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20241219145159_DotNetUpgrade.cs (94%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20250210145819_DatabaseChanges.Designer.cs (87%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20250210145819_DatabaseChanges.cs (98%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20250212143021_RemovedDeviceTypeFromDevice.Designer.cs (87%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20250212143021_RemovedDeviceTypeFromDevice.cs (87%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20250213150300_AddedBaseDeviceRefresh.Designer.cs (87%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20250213150300_AddedBaseDeviceRefresh.cs (86%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20250217110022_ExtendedDeviceEntity.Designer.cs (88%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20250217110022_ExtendedDeviceEntity.cs (99%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20250217111455_RemovedNullable.Designer.cs (88%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20250217111455_RemovedNullable.cs (92%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20250224093535_ModifiedDeviceNullables.Designer.cs (88%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/20250224093535_ModifiedDeviceNullables.cs (92%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Migrations/AppDbContextModelSnapshot.cs (88%) rename src/{Sentinel.Api.Infrastructure/Sentinel.Api.Infrastructure.csproj => Mycelium.Api.Infrastructure/Mycelium.Api.Infrastructure.csproj} (84%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Persistence/AppDbContext.cs (79%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Repositories/AuthRepository.cs (95%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Repositories/DeviceRepository.cs (96%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Repositories/OrganisationRepository.cs (54%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/Repositories/UserRepository.cs (78%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/SignalR/DeviceMessageHub.cs (79%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/SignalR/Interfaces/IDeviceMessageHub.cs (75%) rename src/{Sentinel.Api.Infrastructure => Mycelium.Api.Infrastructure}/SignalR/SignalRDeviceMessenger.cs (89%) rename src/{Sentinel.Api => Mycelium.Api}/.config/dotnet-tools.json (100%) rename src/{Sentinel.Api => Mycelium.Api}/Controllers/AuthController.cs (78%) rename src/{Sentinel.Api => Mycelium.Api}/Controllers/DeviceAdminController.cs (77%) rename src/{Sentinel.Api => Mycelium.Api}/Controllers/DeviceController.cs (76%) rename src/{Sentinel.Api => Mycelium.Api}/Controllers/OrganisationController.cs (78%) rename src/{Sentinel.Api => Mycelium.Api}/Controllers/UserController.cs (73%) rename src/{Sentinel.Api => Mycelium.Api}/DependencyInjection.cs (93%) create mode 100644 src/Mycelium.Api/Dockerfile rename src/{Sentinel.Api => Mycelium.Api}/Extensions/ClaimsPrincipalExtensions.cs (77%) rename src/{Sentinel.Api => Mycelium.Api}/Extensions/SignalRExtensions.cs (79%) rename src/{Sentinel.Api/Sentinel.Api.csproj => Mycelium.Api/Mycelium.Api.csproj} (73%) rename src/{Sentinel.Api => Mycelium.Api}/Program.cs (82%) rename src/{Sentinel.Api => Mycelium.Api}/appsettings.json (100%) rename src/{Sentinel.Api => Mycelium.Api}/docker-compose.yml (82%) rename src/{Sentinel.Common => Mycelium.Common}/DTO/Device/Information/GetDeviceInformationDto.cs (89%) rename src/{Sentinel.Common => Mycelium.Common}/DTO/Device/Information/UpdateDeviceInformationDto.cs (91%) rename src/{Sentinel.Common => Mycelium.Common}/DTO/Device/SecurityInformationDto.cs (95%) rename src/{Sentinel.Common => Mycelium.Common}/DTO/Device/SoftwareInformationDto.cs (81%) rename src/{Sentinel.Common => Mycelium.Common}/DTO/Device/StorageInformationDto.cs (88%) rename src/{Sentinel.Common/Sentinel.Common.csproj => Mycelium.Common/Mycelium.Common.csproj} (76%) rename src/{Sentinel.Common => Mycelium.Common}/SignalR/RemoteAccessMessage.cs (74%) rename src/{Sentinel.Common => Mycelium.Common}/SignalR/RestartDeviceMessage.cs (53%) rename src/{Sentinel.Common => Mycelium.Common}/SignalR/SecurityScanMessage.cs (52%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Api/AuthenticationDelegatingHandler.cs (90%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Api/AuthenticationHandler.cs (73%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Api/Extensions/HttpClientExtensions.cs (91%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Api/Extensions/HttpContentExtensions.cs (83%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Api/Interfaces/IAuthenticationHandler.cs (65%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Api/SentinelApiService.cs (83%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Consumer/ConsumerBase.cs (85%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Consumer/ConsumerConfig.cs (58%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Consumer/Interfaces/IConsumerConfig.cs (67%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/DTO/DeviceRegistrationResponse.cs (82%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/DTO/DeviceTokenResponse.cs (75%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Helpers/Kernel32Helper.cs (70%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Helpers/ProcessHelper.cs (89%) create mode 100644 src/Mycelium.WorkerService.Common/Module/Interfaces/IModule.cs rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Module/Interfaces/IScheduledModuleConfig.cs (68%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Module/Interfaces/IStartupModule.cs (63%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Module/ScheduledModuleBase.cs (93%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Module/ScheduledModuleConfig.cs (51%) rename src/{Sentinel.WorkerService.Common/Sentinel.WorkerService.Common.csproj => Mycelium.WorkerService.Common/Mycelium.WorkerService.Common.csproj} (86%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Services/CredentialManager.cs (89%) rename src/{Sentinel.WorkerService.Common => Mycelium.WorkerService.Common}/Services/Interfaces/ICredentialManager.cs (72%) create mode 100644 src/Mycelium.WorkerService.Core.Linux/Mycelium.WorkerService.Core.Linux.csproj rename src/{Sentinel.WorkerService.Core.Linux => Mycelium.WorkerService.Core.Linux}/SecurityScan/LinuxSecurity.cs (61%) create mode 100644 src/Mycelium.WorkerService.Core.Linux/ServiceCollectionExtensions.cs rename src/{Sentinel.WorkerService.Core.Linux => Mycelium.WorkerService.Core.Linux}/TimeSync/LinuxTimeSync.cs (57%) rename src/{Sentinel.WorkerService.Core.Windows => Mycelium.WorkerService.Core.Windows}/DeviceInformation/DeviceInformationRetriever.cs (85%) rename src/{Sentinel.WorkerService.Core.Windows => Mycelium.WorkerService.Core.Windows}/DeviceInformation/FirewallSettingsRetriever.cs (84%) rename src/{Sentinel.WorkerService.Core.Windows => Mycelium.WorkerService.Core.Windows}/DeviceInformation/Interfaces/IFirewallSettingsRetriever.cs (50%) rename src/{Sentinel.WorkerService.Core.Windows => Mycelium.WorkerService.Core.Windows}/DeviceInformation/SecurityInformationRetriever.cs (89%) rename src/{Sentinel.WorkerService.Core.Windows => Mycelium.WorkerService.Core.Windows}/DeviceInformation/SoftwareInformationRetriever.cs (76%) rename src/{Sentinel.WorkerService.Core.Windows => Mycelium.WorkerService.Core.Windows}/DeviceInformation/StorageInformationRetriever.cs (76%) create mode 100644 src/Mycelium.WorkerService.Core.Windows/Mycelium.WorkerService.Core.Windows.csproj rename src/{Sentinel.WorkerService.Core.Windows => Mycelium.WorkerService.Core.Windows}/SecurityScan/Enums/ScanType.cs (73%) rename src/{Sentinel.WorkerService.Core.Windows => Mycelium.WorkerService.Core.Windows}/SecurityScan/WinDefenderService.cs (86%) rename src/{Sentinel.WorkerService.Core.Windows => Mycelium.WorkerService.Core.Windows}/ServiceCollectionExtensions.cs (58%) rename src/{Sentinel.WorkerService.Core.Windows => Mycelium.WorkerService.Core.Windows}/TimeSync/TimeSynchronizer.cs (85%) rename src/{Sentinel.WorkerService.Core => Mycelium.WorkerService.Core}/DeviceInformation/DeviceInformationModule.cs (53%) create mode 100644 src/Mycelium.WorkerService.Core/DeviceInformation/Interfaces/IDeviceInformationRetriever.cs rename src/{Sentinel.WorkerService.Core => Mycelium.WorkerService.Core}/DeviceInformation/Interfaces/ISecurityInformationRetriever.cs (50%) rename src/{Sentinel.WorkerService.Core => Mycelium.WorkerService.Core}/DeviceInformation/Interfaces/ISoftwareInformationRetriever.cs (50%) create mode 100644 src/Mycelium.WorkerService.Core/DeviceInformation/Interfaces/IStorageInformationRetriever.cs rename src/{Sentinel.WorkerService.Core => Mycelium.WorkerService.Core}/DeviceInformation/SecurityInformationModule.cs (54%) rename src/{Sentinel.WorkerService.Core => Mycelium.WorkerService.Core}/DeviceInformation/SoftwareInformationModule.cs (52%) rename src/{Sentinel.WorkerService.Core => Mycelium.WorkerService.Core}/DeviceInformation/StorageInformationModule.cs (52%) rename src/{Sentinel.WorkerService.Core/Sentinel.WorkerService.Core.csproj => Mycelium.WorkerService.Core/Mycelium.WorkerService.Core.csproj} (60%) create mode 100644 src/Mycelium.WorkerService.Core/Ping/PingModule.cs rename src/{Sentinel.WorkerService.Core => Mycelium.WorkerService.Core}/RestartDevice/RestartDeviceModule.cs (66%) rename src/{Sentinel.WorkerService.Core => Mycelium.WorkerService.Core}/SecurityScan/ISecurityScanner.cs (65%) rename src/{Sentinel.WorkerService.Core => Mycelium.WorkerService.Core}/SecurityScan/SecurityScanModule.cs (69%) rename src/{Sentinel.WorkerService.Core => Mycelium.WorkerService.Core}/TimeSync/ITimeSynchronizer.cs (55%) rename src/{Sentinel.WorkerService.Core => Mycelium.WorkerService.Core}/TimeSync/PlaceholderModule.cs (61%) rename src/{Sentinel.WorkerService.Core => Mycelium.WorkerService.Core}/TimeSync/TimeSyncModule.cs (67%) rename src/{Sentinel.WorkerService.RemoteAccess => Mycelium.WorkerService.RemoteAccess}/Models/ConnectionDetails.cs (58%) rename src/{Sentinel.WorkerService.RemoteAccess/Sentinel.WorkerService.RemoteAccess.csproj => Mycelium.WorkerService.RemoteAccess/Mycelium.WorkerService.RemoteAccess.csproj} (60%) rename src/{Sentinel.WorkerService.RemoteAccess => Mycelium.WorkerService.RemoteAccess}/RemoteAccessModule.cs (70%) rename src/{Sentinel.WorkerService.RemoteAccess => Mycelium.WorkerService.RemoteAccess}/Services/AnyDeskService.cs (86%) rename src/{Sentinel.WorkerService.RemoteAccess => Mycelium.WorkerService.RemoteAccess}/Services/Interfaces/IRemoteAccessService.cs (55%) rename src/{Sentinel.WorkerService.RemoteAccess => Mycelium.WorkerService.RemoteAccess}/Services/LinuxRemoteAccess.cs (61%) rename src/{Sentinel.WorkerService => Mycelium.WorkerService}/Extensions/HostExtensions.cs (84%) rename src/{Sentinel.WorkerService => Mycelium.WorkerService}/Extensions/SerilogExtensions.cs (85%) rename src/{Sentinel.WorkerService => Mycelium.WorkerService}/Extensions/ServiceCollectionExtensions.cs (83%) rename src/{Sentinel.WorkerService => Mycelium.WorkerService}/Modules.config (100%) rename src/{Sentinel.WorkerService/Sentinel.WorkerService.csproj => Mycelium.WorkerService/Mycelium.WorkerService.csproj} (51%) rename src/{Sentinel.WorkerService => Mycelium.WorkerService}/Program.cs (85%) rename src/{Sentinel.WorkerService => Mycelium.WorkerService}/Services/HubManager.cs (94%) rename src/{Sentinel.WorkerService => Mycelium.WorkerService}/Services/LicenseManager.cs (88%) rename src/{Sentinel.WorkerService => Mycelium.WorkerService}/appsettings.json (100%) delete mode 100644 src/Sentinel.Api.Application/Commands/Devices/Update/StorageInformation/UpdateStorageInformationCommand.cs delete mode 100644 src/Sentinel.Api.Application/Interfaces/IUserRepository.cs delete mode 100644 src/Sentinel.Api.Application/Queries/Devices/Devices/DevicesQuery.cs delete mode 100644 src/Sentinel.Api.Application/Queries/Organisations/OrganisationsQuery.cs delete mode 100644 src/Sentinel.Api/Dockerfile delete mode 100644 src/Sentinel.WorkerService.Common/Module/Interfaces/IModule.cs delete mode 100644 src/Sentinel.WorkerService.Core.Linux/Sentinel.WorkerService.Core.Linux.csproj delete mode 100644 src/Sentinel.WorkerService.Core.Linux/ServiceCollectionExtensions.cs delete mode 100644 src/Sentinel.WorkerService.Core.Windows/Sentinel.WorkerService.Core.Windows.csproj delete mode 100644 src/Sentinel.WorkerService.Core/DeviceInformation/Interfaces/IDeviceInformationRetriever.cs delete mode 100644 src/Sentinel.WorkerService.Core/DeviceInformation/Interfaces/IStorageInformationRetriever.cs delete mode 100644 src/Sentinel.WorkerService.Core/Ping/PingModule.cs rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/Common/ApiFixture.cs (80%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/Common/ApiFixtureExtensions.cs (88%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/Common/HttpHelpers.cs (96%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/Common/TestAssertions.cs (96%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/Common/TestScope.cs (95%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/Device/Authentication/RegisterTests.cs (83%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/Device/Management/DeviceRetrievalTests.cs (90%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/Device/Updates/UpdateDeviceInformationTests.cs (91%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/Device/Updates/UpdateSecurityInformationTests.cs (93%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/Device/Updates/UpdateSoftwareInformationTests.cs (90%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/Device/Updates/UpdateStorageInformationTests.cs (91%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/Device/Worker/PingTaskTests.cs (84%) rename tests/{Sentinel.Api.Integration.Tests/Sentinel.Api.Integration.Tests.csproj => Mycelium.Api.Integration.Tests/Mycelium.Api.Integration.Tests.csproj} (89%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/Organisation/OrganisationTests.cs (81%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/User/Authentication/RefreshTokenTests.cs (92%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/User/Authentication/RegisterTests.cs (83%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/User/Authentication/SignInTests.cs (89%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/User/Authentication/VerificationTests.cs (86%) rename tests/{Sentinel.Api.Integration.Tests => Mycelium.Api.Integration.Tests}/User/Modification/UpdateUserTests.cs (63%) diff --git a/.github/README.md b/.github/README.md index aab21bf..7b519b0 100644 --- a/.github/README.md +++ b/.github/README.md @@ -21,14 +21,14 @@
-

sentinel

+

Mycelium

Remote Monitoring and Management (RMM) Software.
- Demo + Demo · - Explore the docs + Explore the docs

@@ -61,9 +61,9 @@ ## About The Project -Sentinel is a powerful, scalable, and secure Remote Monitoring and Management (RMM) platform designed to help IT professionals and Managed Service Providers (MSPs) efficiently manage, monitor, and secure client devices and networks from a single dashboard. +Mycelium is a powerful, scalable, and secure Remote Monitoring and Management (RMM) platform designed to help IT professionals and Managed Service Providers (MSPs) efficiently manage, monitor, and secure client devices and networks from a single dashboard. -With Sentinel, you'll gain full visibility and control over endpoints, proactive alerts, and automation tools that simplify maintenance tasks and increase operational efficiency. +With Mycelium, you'll gain full visibility and control over endpoints, proactive alerts, and automation tools that simplify maintenance tasks and increase operational efficiency. ### Features @@ -97,11 +97,11 @@ This installation method utilizes Docker Compose for a streamlined setup. Ensure ```yaml version: '3.4' - name: sentinel + name: Mycelium services: - sentinel-api: - container_name: "sentinel-api" - image: ghcr.io/jellebuning/sentinel-api + Mycelium-api: + container_name: "Mycelium-api" + image: ghcr.io/jellebuning/Mycelium-api ports: - "7000:8080" environment: @@ -154,13 +154,13 @@ Distributed under the GNU Affero General Public License v3.0 License. See `LICEN -[contributors-shield]: https://img.shields.io/github/contributors/JelleBuning/sentinel.svg?style=for-the-badge -[contributors-url]: https://github.com/JelleBuning/sentinel/graphs/contributors -[forks-shield]: https://img.shields.io/github/forks/JelleBuning/sentinel.svg?style=for-the-badge -[forks-url]: https://github.com/JelleBuning/sentinel/network/members -[stars-shield]: https://img.shields.io/github/stars/JelleBuning/sentinel.svg?style=for-the-badge -[stars-url]: https://github.com/JelleBuning/sentinel/stargazers -[issues-shield]: https://img.shields.io/github/issues/JelleBuning/sentinel.svg?style=for-the-badge -[issues-url]: https://github.com/JelleBuning/sentinel/issues -[license-shield]: https://img.shields.io/github/license/JelleBuning/sentinel.svg?style=for-the-badge -[license-url]: https://github.com/JelleBuning/sentinel/blob/master/LICENSE +[contributors-shield]: https://img.shields.io/github/contributors/JelleBuning/Mycelium.svg?style=for-the-badge +[contributors-url]: https://github.com/JelleBuning/Mycelium/graphs/contributors +[forks-shield]: https://img.shields.io/github/forks/JelleBuning/Mycelium.svg?style=for-the-badge +[forks-url]: https://github.com/JelleBuning/Mycelium/network/members +[stars-shield]: https://img.shields.io/github/stars/JelleBuning/Mycelium.svg?style=for-the-badge +[stars-url]: https://github.com/JelleBuning/Mycelium/stargazers +[issues-shield]: https://img.shields.io/github/issues/JelleBuning/Mycelium.svg?style=for-the-badge +[issues-url]: https://github.com/JelleBuning/Mycelium/issues +[license-shield]: https://img.shields.io/github/license/JelleBuning/Mycelium.svg?style=for-the-badge +[license-url]: https://github.com/JelleBuning/Mycelium/blob/master/LICENSE diff --git a/.github/workflows/dotnet_release.yml b/.github/workflows/dotnet_release.yml index 6ea5c2b..1fed5ba 100644 --- a/.github/workflows/dotnet_release.yml +++ b/.github/workflows/dotnet_release.yml @@ -61,17 +61,17 @@ jobs: dotnet-version: '10.0.x' - name: Publish win-x64 - run: dotnet publish ./src/Sentinel.Api/Sentinel.Api.csproj --configuration Release --output ./publish/win-x64 --self-contained true --runtime win-x64 + run: dotnet publish ./src/Mycelium.Api/Mycelium.Api.csproj --configuration Release --output ./publish/win-x64 --self-contained true --runtime win-x64 - name: Publish linux-x64 - run: dotnet publish ./src/Sentinel.Api/Sentinel.Api.csproj --configuration Release --output ./publish/linux-x64 --self-contained true --runtime linux-x64 + run: dotnet publish ./src/Mycelium.Api/Mycelium.Api.csproj --configuration Release --output ./publish/linux-x64 --self-contained true --runtime linux-x64 - name: Release files uses: softprops/action-gh-release@v3 with: files: | - ./publish/linux-x64/Sentinel.Api - ./publish/win-x64/Sentinel.Api.exe + ./publish/linux-x64/Mycelium.Api + ./publish/win-x64/Mycelium.Api.exe docker-release: needs: test @@ -101,7 +101,7 @@ jobs: uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f with: context: . - file: ./src/Sentinel.Api/Dockerfile + file: ./src/Mycelium.Api/Dockerfile push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} diff --git a/Mycelium.slnx b/Mycelium.slnx new file mode 100644 index 0000000..1778fb3 --- /dev/null +++ b/Mycelium.slnx @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Sentinel.slnx b/Sentinel.slnx deleted file mode 100644 index 4dbf54c..0000000 --- a/Sentinel.slnx +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Sentinel.Api.Application/Commands/Auth/Login/LoginCommand.cs b/src/Mycelium.Api.Application/Commands/Auth/Login/LoginCommand.cs similarity index 52% rename from src/Sentinel.Api.Application/Commands/Auth/Login/LoginCommand.cs rename to src/Mycelium.Api.Application/Commands/Auth/Login/LoginCommand.cs index 204159c..33ba296 100644 --- a/src/Sentinel.Api.Application/Commands/Auth/Login/LoginCommand.cs +++ b/src/Mycelium.Api.Application/Commands/Auth/Login/LoginCommand.cs @@ -1,6 +1,6 @@ using Mediator; -using Sentinel.Api.Application.DTO.User; +using Mycelium.Api.Application.DTO.User; -namespace Sentinel.Api.Application.Commands.Auth.Login; +namespace Mycelium.Api.Application.Commands.Auth.Login; public record LoginCommand(string Email, string Password) : IRequest; diff --git a/src/Sentinel.Api.Application/Commands/Auth/Login/LoginCommandHandler.cs b/src/Mycelium.Api.Application/Commands/Auth/Login/LoginCommandHandler.cs similarity index 77% rename from src/Sentinel.Api.Application/Commands/Auth/Login/LoginCommandHandler.cs rename to src/Mycelium.Api.Application/Commands/Auth/Login/LoginCommandHandler.cs index c8be8a0..2116106 100644 --- a/src/Sentinel.Api.Application/Commands/Auth/Login/LoginCommandHandler.cs +++ b/src/Mycelium.Api.Application/Commands/Auth/Login/LoginCommandHandler.cs @@ -1,8 +1,8 @@ using Mediator; -using Sentinel.Api.Application.DTO.User; -using Sentinel.Api.Application.Interfaces; +using Mycelium.Api.Application.DTO.User; +using Mycelium.Api.Application.Interfaces; -namespace Sentinel.Api.Application.Commands.Auth.Login; +namespace Mycelium.Api.Application.Commands.Auth.Login; public class LoginCommandHandler(IAuthRepository authRepository) : IRequestHandler { diff --git a/src/Sentinel.Api.Application/Commands/Auth/Login/LoginCommandValidator.cs b/src/Mycelium.Api.Application/Commands/Auth/Login/LoginCommandValidator.cs similarity index 87% rename from src/Sentinel.Api.Application/Commands/Auth/Login/LoginCommandValidator.cs rename to src/Mycelium.Api.Application/Commands/Auth/Login/LoginCommandValidator.cs index 1e7510c..f8e15fe 100644 --- a/src/Sentinel.Api.Application/Commands/Auth/Login/LoginCommandValidator.cs +++ b/src/Mycelium.Api.Application/Commands/Auth/Login/LoginCommandValidator.cs @@ -1,6 +1,6 @@ using FluentValidation; -namespace Sentinel.Api.Application.Commands.Auth.Login; +namespace Mycelium.Api.Application.Commands.Auth.Login; public class LoginCommandValidator : AbstractValidator { diff --git a/src/Sentinel.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommand.cs b/src/Mycelium.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommand.cs similarity index 52% rename from src/Sentinel.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommand.cs rename to src/Mycelium.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommand.cs index 9d2ea5a..51f1ebf 100644 --- a/src/Sentinel.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommand.cs +++ b/src/Mycelium.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommand.cs @@ -1,6 +1,6 @@ using Mediator; -using Sentinel.Api.Application.DTO.Token; +using Mycelium.Api.Application.DTO.Token; -namespace Sentinel.Api.Application.Commands.Auth.RefreshToken; +namespace Mycelium.Api.Application.Commands.Auth.RefreshToken; public record RefreshTokenCommand(string AccessToken, string RefreshToken) : IRequest; diff --git a/src/Sentinel.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommandHandler.cs b/src/Mycelium.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommandHandler.cs similarity index 76% rename from src/Sentinel.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommandHandler.cs rename to src/Mycelium.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommandHandler.cs index be478b5..7e4f292 100644 --- a/src/Sentinel.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommandHandler.cs +++ b/src/Mycelium.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommandHandler.cs @@ -1,8 +1,8 @@ using Mediator; -using Sentinel.Api.Application.DTO.Token; -using Sentinel.Api.Application.Interfaces; +using Mycelium.Api.Application.DTO.Token; +using Mycelium.Api.Application.Interfaces; -namespace Sentinel.Api.Application.Commands.Auth.RefreshToken; +namespace Mycelium.Api.Application.Commands.Auth.RefreshToken; public class RefreshTokenCommandHandler(IAuthRepository authRepository) : IRequestHandler { diff --git a/src/Sentinel.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommandValidator.cs b/src/Mycelium.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommandValidator.cs similarity index 85% rename from src/Sentinel.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommandValidator.cs rename to src/Mycelium.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommandValidator.cs index aa2c571..0cd4d15 100644 --- a/src/Sentinel.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommandValidator.cs +++ b/src/Mycelium.Api.Application/Commands/Auth/RefreshToken/RefreshTokenCommandValidator.cs @@ -1,6 +1,6 @@ using FluentValidation; -namespace Sentinel.Api.Application.Commands.Auth.RefreshToken; +namespace Mycelium.Api.Application.Commands.Auth.RefreshToken; public class RefreshTokenCommandValidator : AbstractValidator { diff --git a/src/Sentinel.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommand.cs b/src/Mycelium.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommand.cs similarity index 69% rename from src/Sentinel.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommand.cs rename to src/Mycelium.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommand.cs index e69c328..784a299 100644 --- a/src/Sentinel.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommand.cs +++ b/src/Mycelium.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommand.cs @@ -1,5 +1,5 @@ using Mediator; -namespace Sentinel.Api.Application.Commands.Auth.VerifyTotp; +namespace Mycelium.Api.Application.Commands.Auth.VerifyTotp; public record VerifyTotpCommand(int UserId, string AuthenticityToken, string OtpAttempt) : IRequest; diff --git a/src/Sentinel.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommandHandler.cs b/src/Mycelium.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommandHandler.cs similarity index 75% rename from src/Sentinel.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommandHandler.cs rename to src/Mycelium.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommandHandler.cs index e8215f7..e39bd88 100644 --- a/src/Sentinel.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommandHandler.cs +++ b/src/Mycelium.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommandHandler.cs @@ -1,9 +1,9 @@ using Mediator; -using Sentinel.Api.Application.DTO.Token; -using Sentinel.Api.Application.DTO.User; -using Sentinel.Api.Application.Interfaces; +using Mycelium.Api.Application.DTO.Token; +using Mycelium.Api.Application.DTO.User; +using Mycelium.Api.Application.Interfaces; -namespace Sentinel.Api.Application.Commands.Auth.VerifyTotp; +namespace Mycelium.Api.Application.Commands.Auth.VerifyTotp; public class VerifyTotpCommandHandler(IAuthRepository authRepository) : IRequestHandler { diff --git a/src/Sentinel.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommandValidator.cs b/src/Mycelium.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommandValidator.cs similarity index 89% rename from src/Sentinel.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommandValidator.cs rename to src/Mycelium.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommandValidator.cs index 4ac78aa..9c70f3a 100644 --- a/src/Sentinel.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommandValidator.cs +++ b/src/Mycelium.Api.Application/Commands/Auth/VerifyTotp/VerifyTotpCommandValidator.cs @@ -1,6 +1,6 @@ using FluentValidation; -namespace Sentinel.Api.Application.Commands.Auth.VerifyTotp; +namespace Mycelium.Api.Application.Commands.Auth.VerifyTotp; public class VerifyTotpCommandValidator : AbstractValidator { diff --git a/src/Sentinel.Api.Application/Commands/Devices/ExecuteSecurityScan/ExecuteSecurityScanCommand.cs b/src/Mycelium.Api.Application/Commands/Devices/ExecuteSecurityScan/ExecuteSecurityScanCommand.cs similarity index 59% rename from src/Sentinel.Api.Application/Commands/Devices/ExecuteSecurityScan/ExecuteSecurityScanCommand.cs rename to src/Mycelium.Api.Application/Commands/Devices/ExecuteSecurityScan/ExecuteSecurityScanCommand.cs index 8b833fc..7d7e9e8 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/ExecuteSecurityScan/ExecuteSecurityScanCommand.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/ExecuteSecurityScan/ExecuteSecurityScanCommand.cs @@ -1,5 +1,5 @@ using Mediator; -namespace Sentinel.Api.Application.Commands.Devices.ExecuteSecurityScan; +namespace Mycelium.Api.Application.Commands.Devices.ExecuteSecurityScan; public record ExecuteSecurityScanCommand(int DeviceId) : IRequest; diff --git a/src/Sentinel.Api.Application/Commands/Devices/ExecuteSecurityScan/ExecuteSecurityScanCommandHandler.cs b/src/Mycelium.Api.Application/Commands/Devices/ExecuteSecurityScan/ExecuteSecurityScanCommandHandler.cs similarity index 79% rename from src/Sentinel.Api.Application/Commands/Devices/ExecuteSecurityScan/ExecuteSecurityScanCommandHandler.cs rename to src/Mycelium.Api.Application/Commands/Devices/ExecuteSecurityScan/ExecuteSecurityScanCommandHandler.cs index d1ca3c5..40127c6 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/ExecuteSecurityScan/ExecuteSecurityScanCommandHandler.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/ExecuteSecurityScan/ExecuteSecurityScanCommandHandler.cs @@ -1,7 +1,7 @@ using Mediator; -using Sentinel.Api.Application.Interfaces; +using Mycelium.Api.Application.Interfaces; -namespace Sentinel.Api.Application.Commands.Devices.ExecuteSecurityScan; +namespace Mycelium.Api.Application.Commands.Devices.ExecuteSecurityScan; public class ExecuteSecurityScanCommandHandler(IDeviceMessenger deviceMessenger) : IRequestHandler diff --git a/src/Sentinel.Api.Application/Commands/Devices/Ping/PingDeviceCommand.cs b/src/Mycelium.Api.Application/Commands/Devices/Ping/PingDeviceCommand.cs similarity index 56% rename from src/Sentinel.Api.Application/Commands/Devices/Ping/PingDeviceCommand.cs rename to src/Mycelium.Api.Application/Commands/Devices/Ping/PingDeviceCommand.cs index 48e0ee8..e71d303 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Ping/PingDeviceCommand.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Ping/PingDeviceCommand.cs @@ -1,5 +1,5 @@ using Mediator; -namespace Sentinel.Api.Application.Commands.Devices.Ping; +namespace Mycelium.Api.Application.Commands.Devices.Ping; public record PingDeviceCommand(int DeviceId) : IRequest; diff --git a/src/Sentinel.Api.Application/Commands/Devices/Ping/PingDeviceCommandHandler.cs b/src/Mycelium.Api.Application/Commands/Devices/Ping/PingDeviceCommandHandler.cs similarity index 77% rename from src/Sentinel.Api.Application/Commands/Devices/Ping/PingDeviceCommandHandler.cs rename to src/Mycelium.Api.Application/Commands/Devices/Ping/PingDeviceCommandHandler.cs index af31bf2..2ad39a5 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Ping/PingDeviceCommandHandler.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Ping/PingDeviceCommandHandler.cs @@ -1,7 +1,7 @@ using Mediator; -using Sentinel.Api.Application.Interfaces; +using Mycelium.Api.Application.Interfaces; -namespace Sentinel.Api.Application.Commands.Devices.Ping; +namespace Mycelium.Api.Application.Commands.Devices.Ping; public class PingDeviceCommandHandler(IDeviceRepository deviceRepository) : IRequestHandler { diff --git a/src/Sentinel.Api.Application/Commands/Devices/Ping/PingDeviceCommandValidator.cs b/src/Mycelium.Api.Application/Commands/Devices/Ping/PingDeviceCommandValidator.cs similarity index 82% rename from src/Sentinel.Api.Application/Commands/Devices/Ping/PingDeviceCommandValidator.cs rename to src/Mycelium.Api.Application/Commands/Devices/Ping/PingDeviceCommandValidator.cs index 624f1c1..7392d8f 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Ping/PingDeviceCommandValidator.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Ping/PingDeviceCommandValidator.cs @@ -1,6 +1,6 @@ using FluentValidation; -namespace Sentinel.Api.Application.Commands.Devices.Ping; +namespace Mycelium.Api.Application.Commands.Devices.Ping; public class PingDeviceCommandValidator : AbstractValidator { diff --git a/src/Sentinel.Api.Application/Commands/Devices/Register/RegisterDeviceCommand.cs b/src/Mycelium.Api.Application/Commands/Devices/Register/RegisterDeviceCommand.cs similarity index 53% rename from src/Sentinel.Api.Application/Commands/Devices/Register/RegisterDeviceCommand.cs rename to src/Mycelium.Api.Application/Commands/Devices/Register/RegisterDeviceCommand.cs index 367d242..06b1d83 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Register/RegisterDeviceCommand.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Register/RegisterDeviceCommand.cs @@ -1,6 +1,6 @@ using Mediator; -using Sentinel.Api.Application.DTO.Device; +using Mycelium.Api.Application.DTO.Device; -namespace Sentinel.Api.Application.Commands.Devices.Register; +namespace Mycelium.Api.Application.Commands.Devices.Register; public record RegisterDeviceCommand(Guid OrganisationHash, string Name) : IRequest; diff --git a/src/Sentinel.Api.Application/Commands/Devices/Register/RegisterDeviceCommandHandler.cs b/src/Mycelium.Api.Application/Commands/Devices/Register/RegisterDeviceCommandHandler.cs similarity index 74% rename from src/Sentinel.Api.Application/Commands/Devices/Register/RegisterDeviceCommandHandler.cs rename to src/Mycelium.Api.Application/Commands/Devices/Register/RegisterDeviceCommandHandler.cs index d3b48f3..f11ffbf 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Register/RegisterDeviceCommandHandler.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Register/RegisterDeviceCommandHandler.cs @@ -1,8 +1,8 @@ using Mediator; -using Sentinel.Api.Application.DTO.Device; -using Sentinel.Api.Application.Interfaces; +using Mycelium.Api.Application.DTO.Device; +using Mycelium.Api.Application.Interfaces; -namespace Sentinel.Api.Application.Commands.Devices.Register; +namespace Mycelium.Api.Application.Commands.Devices.Register; public class RegisterDeviceCommandHandler(IDeviceRepository deviceRepository) : IRequestHandler diff --git a/src/Sentinel.Api.Application/Commands/Devices/Register/RegisterDeviceCommandValidator.cs b/src/Mycelium.Api.Application/Commands/Devices/Register/RegisterDeviceCommandValidator.cs similarity index 87% rename from src/Sentinel.Api.Application/Commands/Devices/Register/RegisterDeviceCommandValidator.cs rename to src/Mycelium.Api.Application/Commands/Devices/Register/RegisterDeviceCommandValidator.cs index 28dfa40..1ff26c4 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Register/RegisterDeviceCommandValidator.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Register/RegisterDeviceCommandValidator.cs @@ -1,6 +1,6 @@ using FluentValidation; -namespace Sentinel.Api.Application.Commands.Devices.Register; +namespace Mycelium.Api.Application.Commands.Devices.Register; public class RegisterDeviceCommandValidator : AbstractValidator { diff --git a/src/Sentinel.Api.Application/Commands/Devices/RequestRemoteAccess/RequestRemoteAccessCommand.cs b/src/Mycelium.Api.Application/Commands/Devices/RequestRemoteAccess/RequestRemoteAccessCommand.cs similarity index 59% rename from src/Sentinel.Api.Application/Commands/Devices/RequestRemoteAccess/RequestRemoteAccessCommand.cs rename to src/Mycelium.Api.Application/Commands/Devices/RequestRemoteAccess/RequestRemoteAccessCommand.cs index e8f89b4..6a0f53b 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/RequestRemoteAccess/RequestRemoteAccessCommand.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/RequestRemoteAccess/RequestRemoteAccessCommand.cs @@ -1,5 +1,5 @@ using Mediator; -namespace Sentinel.Api.Application.Commands.Devices.RequestRemoteAccess; +namespace Mycelium.Api.Application.Commands.Devices.RequestRemoteAccess; public record RequestRemoteAccessCommand(int DeviceId) : IRequest; diff --git a/src/Sentinel.Api.Application/Commands/Devices/RequestRemoteAccess/RequestRemoteAccessCommandHandler.cs b/src/Mycelium.Api.Application/Commands/Devices/RequestRemoteAccess/RequestRemoteAccessCommandHandler.cs similarity index 79% rename from src/Sentinel.Api.Application/Commands/Devices/RequestRemoteAccess/RequestRemoteAccessCommandHandler.cs rename to src/Mycelium.Api.Application/Commands/Devices/RequestRemoteAccess/RequestRemoteAccessCommandHandler.cs index 76993d7..798620a 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/RequestRemoteAccess/RequestRemoteAccessCommandHandler.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/RequestRemoteAccess/RequestRemoteAccessCommandHandler.cs @@ -1,7 +1,7 @@ using Mediator; -using Sentinel.Api.Application.Interfaces; +using Mycelium.Api.Application.Interfaces; -namespace Sentinel.Api.Application.Commands.Devices.RequestRemoteAccess; +namespace Mycelium.Api.Application.Commands.Devices.RequestRemoteAccess; public class RequestRemoteAccessCommandHandler(IDeviceMessenger deviceMessenger) : IRequestHandler diff --git a/src/Sentinel.Api.Application/Commands/Devices/Restart/RestartDeviceCommand.cs b/src/Mycelium.Api.Application/Commands/Devices/Restart/RestartDeviceCommand.cs similarity index 56% rename from src/Sentinel.Api.Application/Commands/Devices/Restart/RestartDeviceCommand.cs rename to src/Mycelium.Api.Application/Commands/Devices/Restart/RestartDeviceCommand.cs index a27757d..b5533d4 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Restart/RestartDeviceCommand.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Restart/RestartDeviceCommand.cs @@ -1,5 +1,5 @@ using Mediator; -namespace Sentinel.Api.Application.Commands.Devices.Restart; +namespace Mycelium.Api.Application.Commands.Devices.Restart; public record RestartDeviceCommand(int DeviceId) : IRequest; diff --git a/src/Sentinel.Api.Application/Commands/Devices/Restart/RestartDeviceCommandHandler.cs b/src/Mycelium.Api.Application/Commands/Devices/Restart/RestartDeviceCommandHandler.cs similarity index 78% rename from src/Sentinel.Api.Application/Commands/Devices/Restart/RestartDeviceCommandHandler.cs rename to src/Mycelium.Api.Application/Commands/Devices/Restart/RestartDeviceCommandHandler.cs index 01c92b6..552717e 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Restart/RestartDeviceCommandHandler.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Restart/RestartDeviceCommandHandler.cs @@ -1,7 +1,7 @@ using Mediator; -using Sentinel.Api.Application.Interfaces; +using Mycelium.Api.Application.Interfaces; -namespace Sentinel.Api.Application.Commands.Devices.Restart; +namespace Mycelium.Api.Application.Commands.Devices.Restart; public class RestartDeviceCommandHandler(IDeviceMessenger deviceMessenger) : IRequestHandler diff --git a/src/Sentinel.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommand.cs b/src/Mycelium.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommand.cs similarity index 56% rename from src/Sentinel.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommand.cs rename to src/Mycelium.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommand.cs index c250dbe..7e16ffa 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommand.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommand.cs @@ -1,6 +1,6 @@ using Mediator; -using Sentinel.Common.DTO.Device.Information; +using Mycelium.Common.DTO.Device.Information; -namespace Sentinel.Api.Application.Commands.Devices.Update.DeviceInformation; +namespace Mycelium.Api.Application.Commands.Devices.Update.DeviceInformation; public record UpdateDeviceInformationCommand(int DeviceId, UpdateDeviceInformationDto DeviceInfo) : IRequest; diff --git a/src/Sentinel.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommandHandler.cs b/src/Mycelium.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommandHandler.cs similarity index 80% rename from src/Sentinel.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommandHandler.cs rename to src/Mycelium.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommandHandler.cs index 38d6b76..553df39 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommandHandler.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommandHandler.cs @@ -1,7 +1,7 @@ using Mediator; -using Sentinel.Api.Application.Interfaces; +using Mycelium.Api.Application.Interfaces; -namespace Sentinel.Api.Application.Commands.Devices.Update.DeviceInformation; +namespace Mycelium.Api.Application.Commands.Devices.Update.DeviceInformation; public class UpdateDeviceInformationCommandHandler(IDeviceRepository deviceRepository) : IRequestHandler diff --git a/src/Sentinel.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommandValidator.cs b/src/Mycelium.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommandValidator.cs similarity index 86% rename from src/Sentinel.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommandValidator.cs rename to src/Mycelium.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommandValidator.cs index 58ec0fc..82980c6 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommandValidator.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Update/DeviceInformation/UpdateDeviceInformationCommandValidator.cs @@ -1,6 +1,6 @@ using FluentValidation; -namespace Sentinel.Api.Application.Commands.Devices.Update.DeviceInformation; +namespace Mycelium.Api.Application.Commands.Devices.Update.DeviceInformation; public class UpdateDeviceInformationCommandValidator : AbstractValidator { diff --git a/src/Sentinel.Api.Application/Commands/Devices/Update/SecurityInformation/UpdateSecurityInformationCommand.cs b/src/Mycelium.Api.Application/Commands/Devices/Update/SecurityInformation/UpdateSecurityInformationCommand.cs similarity index 59% rename from src/Sentinel.Api.Application/Commands/Devices/Update/SecurityInformation/UpdateSecurityInformationCommand.cs rename to src/Mycelium.Api.Application/Commands/Devices/Update/SecurityInformation/UpdateSecurityInformationCommand.cs index 2573dd7..04ed3f8 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Update/SecurityInformation/UpdateSecurityInformationCommand.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Update/SecurityInformation/UpdateSecurityInformationCommand.cs @@ -1,6 +1,6 @@ using Mediator; -using Sentinel.Common.DTO.Device; +using Mycelium.Common.DTO.Device; -namespace Sentinel.Api.Application.Commands.Devices.Update.SecurityInformation; +namespace Mycelium.Api.Application.Commands.Devices.Update.SecurityInformation; public record UpdateSecurityInformationCommand(int DeviceId, SecurityInformationDto SecurityInfo) : IRequest; diff --git a/src/Sentinel.Api.Application/Commands/Devices/Update/SecurityInformation/UpdateSecurityInformationCommandHandler.cs b/src/Mycelium.Api.Application/Commands/Devices/Update/SecurityInformation/UpdateSecurityInformationCommandHandler.cs similarity index 80% rename from src/Sentinel.Api.Application/Commands/Devices/Update/SecurityInformation/UpdateSecurityInformationCommandHandler.cs rename to src/Mycelium.Api.Application/Commands/Devices/Update/SecurityInformation/UpdateSecurityInformationCommandHandler.cs index 222270e..ac00efb 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Update/SecurityInformation/UpdateSecurityInformationCommandHandler.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Update/SecurityInformation/UpdateSecurityInformationCommandHandler.cs @@ -1,7 +1,7 @@ using Mediator; -using Sentinel.Api.Application.Interfaces; +using Mycelium.Api.Application.Interfaces; -namespace Sentinel.Api.Application.Commands.Devices.Update.SecurityInformation; +namespace Mycelium.Api.Application.Commands.Devices.Update.SecurityInformation; public class UpdateSecurityInformationCommandHandler(IDeviceRepository deviceRepository) : IRequestHandler diff --git a/src/Sentinel.Api.Application/Commands/Devices/Update/SoftwareInformation/UpdateSoftwareInformationCommand.cs b/src/Mycelium.Api.Application/Commands/Devices/Update/SoftwareInformation/UpdateSoftwareInformationCommand.cs similarity index 59% rename from src/Sentinel.Api.Application/Commands/Devices/Update/SoftwareInformation/UpdateSoftwareInformationCommand.cs rename to src/Mycelium.Api.Application/Commands/Devices/Update/SoftwareInformation/UpdateSoftwareInformationCommand.cs index aad479e..02701ba 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Update/SoftwareInformation/UpdateSoftwareInformationCommand.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Update/SoftwareInformation/UpdateSoftwareInformationCommand.cs @@ -1,6 +1,6 @@ using Mediator; -using Sentinel.Common.DTO.Device; +using Mycelium.Common.DTO.Device; -namespace Sentinel.Api.Application.Commands.Devices.Update.SoftwareInformation; +namespace Mycelium.Api.Application.Commands.Devices.Update.SoftwareInformation; public record UpdateSoftwareInformationCommand(int DeviceId, SoftwareInformationDto SoftwareInfo) : IRequest; diff --git a/src/Sentinel.Api.Application/Commands/Devices/Update/SoftwareInformation/UpdateSoftwareInformationCommandHandler.cs b/src/Mycelium.Api.Application/Commands/Devices/Update/SoftwareInformation/UpdateSoftwareInformationCommandHandler.cs similarity index 80% rename from src/Sentinel.Api.Application/Commands/Devices/Update/SoftwareInformation/UpdateSoftwareInformationCommandHandler.cs rename to src/Mycelium.Api.Application/Commands/Devices/Update/SoftwareInformation/UpdateSoftwareInformationCommandHandler.cs index db0dde0..1103564 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Update/SoftwareInformation/UpdateSoftwareInformationCommandHandler.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Update/SoftwareInformation/UpdateSoftwareInformationCommandHandler.cs @@ -1,7 +1,7 @@ using Mediator; -using Sentinel.Api.Application.Interfaces; +using Mycelium.Api.Application.Interfaces; -namespace Sentinel.Api.Application.Commands.Devices.Update.SoftwareInformation; +namespace Mycelium.Api.Application.Commands.Devices.Update.SoftwareInformation; public class UpdateSoftwareInformationCommandHandler(IDeviceRepository deviceRepository) : IRequestHandler diff --git a/src/Mycelium.Api.Application/Commands/Devices/Update/StorageInformation/UpdateStorageInformationCommand.cs b/src/Mycelium.Api.Application/Commands/Devices/Update/StorageInformation/UpdateStorageInformationCommand.cs new file mode 100644 index 0000000..049bba0 --- /dev/null +++ b/src/Mycelium.Api.Application/Commands/Devices/Update/StorageInformation/UpdateStorageInformationCommand.cs @@ -0,0 +1,5 @@ +using Mediator; + +namespace Mycelium.Api.Application.Commands.Devices.Update.StorageInformation; + +public record UpdateStorageInformationCommand(int DeviceId, Mycelium.Common.DTO.Device.StorageInformationDto StorageInfo) : IRequest; diff --git a/src/Sentinel.Api.Application/Commands/Devices/Update/StorageInformation/UpdateStorageInformationCommandHandler.cs b/src/Mycelium.Api.Application/Commands/Devices/Update/StorageInformation/UpdateStorageInformationCommandHandler.cs similarity index 80% rename from src/Sentinel.Api.Application/Commands/Devices/Update/StorageInformation/UpdateStorageInformationCommandHandler.cs rename to src/Mycelium.Api.Application/Commands/Devices/Update/StorageInformation/UpdateStorageInformationCommandHandler.cs index 527c42c..a3cf2f7 100644 --- a/src/Sentinel.Api.Application/Commands/Devices/Update/StorageInformation/UpdateStorageInformationCommandHandler.cs +++ b/src/Mycelium.Api.Application/Commands/Devices/Update/StorageInformation/UpdateStorageInformationCommandHandler.cs @@ -1,7 +1,7 @@ using Mediator; -using Sentinel.Api.Application.Interfaces; +using Mycelium.Api.Application.Interfaces; -namespace Sentinel.Api.Application.Commands.Devices.Update.StorageInformation; +namespace Mycelium.Api.Application.Commands.Devices.Update.StorageInformation; public class UpdateStorageInformationCommandHandler(IDeviceRepository deviceRepository) : IRequestHandler diff --git a/src/Sentinel.Api.Application/Commands/Users/RegisterUser/RegisterUserCommand.cs b/src/Mycelium.Api.Application/Commands/Users/RegisterUser/RegisterUserCommand.cs similarity index 59% rename from src/Sentinel.Api.Application/Commands/Users/RegisterUser/RegisterUserCommand.cs rename to src/Mycelium.Api.Application/Commands/Users/RegisterUser/RegisterUserCommand.cs index 6c4b4fa..8cfbfeb 100644 --- a/src/Sentinel.Api.Application/Commands/Users/RegisterUser/RegisterUserCommand.cs +++ b/src/Mycelium.Api.Application/Commands/Users/RegisterUser/RegisterUserCommand.cs @@ -1,5 +1,5 @@ using Mediator; -namespace Sentinel.Api.Application.Commands.Users.RegisterUser; +namespace Mycelium.Api.Application.Commands.Users.RegisterUser; public record RegisterUserCommand(string Email, string Password) : IRequest; diff --git a/src/Sentinel.Api.Application/Commands/Users/RegisterUser/RegisterUserCommandHandler.cs b/src/Mycelium.Api.Application/Commands/Users/RegisterUser/RegisterUserCommandHandler.cs similarity index 76% rename from src/Sentinel.Api.Application/Commands/Users/RegisterUser/RegisterUserCommandHandler.cs rename to src/Mycelium.Api.Application/Commands/Users/RegisterUser/RegisterUserCommandHandler.cs index 6aa86d2..4bf1cf9 100644 --- a/src/Sentinel.Api.Application/Commands/Users/RegisterUser/RegisterUserCommandHandler.cs +++ b/src/Mycelium.Api.Application/Commands/Users/RegisterUser/RegisterUserCommandHandler.cs @@ -1,8 +1,8 @@ using Mediator; -using Sentinel.Api.Application.DTO.User; -using Sentinel.Api.Application.Interfaces; +using Mycelium.Api.Application.DTO.User; +using Mycelium.Api.Application.Interfaces; -namespace Sentinel.Api.Application.Commands.Users.RegisterUser; +namespace Mycelium.Api.Application.Commands.Users.RegisterUser; public class RegisterUserCommandHandler(IUserRepository userRepository) : IRequestHandler { diff --git a/src/Sentinel.Api.Application/Commands/Users/RegisterUser/RegisterUserCommandValidator.cs b/src/Mycelium.Api.Application/Commands/Users/RegisterUser/RegisterUserCommandValidator.cs similarity index 88% rename from src/Sentinel.Api.Application/Commands/Users/RegisterUser/RegisterUserCommandValidator.cs rename to src/Mycelium.Api.Application/Commands/Users/RegisterUser/RegisterUserCommandValidator.cs index f8fda23..daac866 100644 --- a/src/Sentinel.Api.Application/Commands/Users/RegisterUser/RegisterUserCommandValidator.cs +++ b/src/Mycelium.Api.Application/Commands/Users/RegisterUser/RegisterUserCommandValidator.cs @@ -1,6 +1,6 @@ using FluentValidation; -namespace Sentinel.Api.Application.Commands.Users.RegisterUser; +namespace Mycelium.Api.Application.Commands.Users.RegisterUser; public class RegisterUserCommandValidator : AbstractValidator { diff --git a/src/Sentinel.Api.Application/DTO/Device/DeviceTokenResponse.cs b/src/Mycelium.Api.Application/DTO/Device/DeviceTokenResponse.cs similarity index 82% rename from src/Sentinel.Api.Application/DTO/Device/DeviceTokenResponse.cs rename to src/Mycelium.Api.Application/DTO/Device/DeviceTokenResponse.cs index 4e40a02..0cdbec9 100644 --- a/src/Sentinel.Api.Application/DTO/Device/DeviceTokenResponse.cs +++ b/src/Mycelium.Api.Application/DTO/Device/DeviceTokenResponse.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Application.DTO.Device; +namespace Mycelium.Api.Application.DTO.Device; public class DeviceTokenResponse { diff --git a/src/Sentinel.Api.Application/DTO/Device/GetDevicesResponse.cs b/src/Mycelium.Api.Application/DTO/Device/GetDevicesResponse.cs similarity index 84% rename from src/Sentinel.Api.Application/DTO/Device/GetDevicesResponse.cs rename to src/Mycelium.Api.Application/DTO/Device/GetDevicesResponse.cs index c89dea6..3fe7fca 100644 --- a/src/Sentinel.Api.Application/DTO/Device/GetDevicesResponse.cs +++ b/src/Mycelium.Api.Application/DTO/Device/GetDevicesResponse.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Application.DTO.Device; +namespace Mycelium.Api.Application.DTO.Device; public class GetDevicesResponse { diff --git a/src/Sentinel.Api.Application/DTO/Device/RegisterDeviceDto.cs b/src/Mycelium.Api.Application/DTO/Device/RegisterDeviceDto.cs similarity index 73% rename from src/Sentinel.Api.Application/DTO/Device/RegisterDeviceDto.cs rename to src/Mycelium.Api.Application/DTO/Device/RegisterDeviceDto.cs index dfb5cb6..e0cbfac 100644 --- a/src/Sentinel.Api.Application/DTO/Device/RegisterDeviceDto.cs +++ b/src/Mycelium.Api.Application/DTO/Device/RegisterDeviceDto.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Application.DTO.Device; +namespace Mycelium.Api.Application.DTO.Device; public class RegisterDeviceDto { diff --git a/src/Sentinel.Api.Application/DTO/Token/TokenDto.cs b/src/Mycelium.Api.Application/DTO/Token/TokenDto.cs similarity index 73% rename from src/Sentinel.Api.Application/DTO/Token/TokenDto.cs rename to src/Mycelium.Api.Application/DTO/Token/TokenDto.cs index 379af62..902234b 100644 --- a/src/Sentinel.Api.Application/DTO/Token/TokenDto.cs +++ b/src/Mycelium.Api.Application/DTO/Token/TokenDto.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Application.DTO.Token; +namespace Mycelium.Api.Application.DTO.Token; public record TokenDto { diff --git a/src/Sentinel.Api.Application/DTO/User/RegisterUserDto.cs b/src/Mycelium.Api.Application/DTO/User/RegisterUserDto.cs similarity index 73% rename from src/Sentinel.Api.Application/DTO/User/RegisterUserDto.cs rename to src/Mycelium.Api.Application/DTO/User/RegisterUserDto.cs index 81afa75..cde1817 100644 --- a/src/Sentinel.Api.Application/DTO/User/RegisterUserDto.cs +++ b/src/Mycelium.Api.Application/DTO/User/RegisterUserDto.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Application.DTO.User; +namespace Mycelium.Api.Application.DTO.User; public record RegisterUserDto { diff --git a/src/Sentinel.Api.Application/DTO/User/SignInUserDto.cs b/src/Mycelium.Api.Application/DTO/User/SignInUserDto.cs similarity index 73% rename from src/Sentinel.Api.Application/DTO/User/SignInUserDto.cs rename to src/Mycelium.Api.Application/DTO/User/SignInUserDto.cs index 02f9315..642e53c 100644 --- a/src/Sentinel.Api.Application/DTO/User/SignInUserDto.cs +++ b/src/Mycelium.Api.Application/DTO/User/SignInUserDto.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Application.DTO.User; +namespace Mycelium.Api.Application.DTO.User; public record SignInUserDto { diff --git a/src/Sentinel.Api.Application/DTO/User/SignInUserResponse.cs b/src/Mycelium.Api.Application/DTO/User/SignInUserResponse.cs similarity index 83% rename from src/Sentinel.Api.Application/DTO/User/SignInUserResponse.cs rename to src/Mycelium.Api.Application/DTO/User/SignInUserResponse.cs index bb2a531..995e1d8 100644 --- a/src/Sentinel.Api.Application/DTO/User/SignInUserResponse.cs +++ b/src/Mycelium.Api.Application/DTO/User/SignInUserResponse.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Application.DTO.User; +namespace Mycelium.Api.Application.DTO.User; public record SignInUserResponse { diff --git a/src/Sentinel.Api.Application/DTO/User/VerifyUserDto.cs b/src/Mycelium.Api.Application/DTO/User/VerifyUserDto.cs similarity index 79% rename from src/Sentinel.Api.Application/DTO/User/VerifyUserDto.cs rename to src/Mycelium.Api.Application/DTO/User/VerifyUserDto.cs index 0fd09ae..2ca41b9 100644 --- a/src/Sentinel.Api.Application/DTO/User/VerifyUserDto.cs +++ b/src/Mycelium.Api.Application/DTO/User/VerifyUserDto.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Application.DTO.User; +namespace Mycelium.Api.Application.DTO.User; public record VerifyUserDto { diff --git a/src/Sentinel.Api.Application/DependencyInjection.cs b/src/Mycelium.Api.Application/DependencyInjection.cs similarity index 90% rename from src/Sentinel.Api.Application/DependencyInjection.cs rename to src/Mycelium.Api.Application/DependencyInjection.cs index 122fda0..197d2db 100644 --- a/src/Sentinel.Api.Application/DependencyInjection.cs +++ b/src/Mycelium.Api.Application/DependencyInjection.cs @@ -1,10 +1,10 @@ -using FluentValidation; +using FluentValidation; using Mediator; using Microsoft.Extensions.DependencyInjection; using System.Reflection; -using Sentinel.Api.Application.Mediator.Behaviors; +using Mycelium.Api.Application.Mediator.Behaviors; -namespace Sentinel.Api.Application; +namespace Mycelium.Api.Application; public static class DependencyInjection { diff --git a/src/Sentinel.Api.Application/Exceptions/BadValidationRequest.cs b/src/Mycelium.Api.Application/Exceptions/BadValidationRequest.cs similarity index 59% rename from src/Sentinel.Api.Application/Exceptions/BadValidationRequest.cs rename to src/Mycelium.Api.Application/Exceptions/BadValidationRequest.cs index 52ab302..2d493ef 100644 --- a/src/Sentinel.Api.Application/Exceptions/BadValidationRequest.cs +++ b/src/Mycelium.Api.Application/Exceptions/BadValidationRequest.cs @@ -1,3 +1,3 @@ -namespace Sentinel.Api.Application.Exceptions; +namespace Mycelium.Api.Application.Exceptions; public class BadValidationRequest(string message) : Exception(message); diff --git a/src/Sentinel.Api.Application/Interfaces/IAuthRepository.cs b/src/Mycelium.Api.Application/Interfaces/IAuthRepository.cs similarity index 61% rename from src/Sentinel.Api.Application/Interfaces/IAuthRepository.cs rename to src/Mycelium.Api.Application/Interfaces/IAuthRepository.cs index d60a3af..cfe2302 100644 --- a/src/Sentinel.Api.Application/Interfaces/IAuthRepository.cs +++ b/src/Mycelium.Api.Application/Interfaces/IAuthRepository.cs @@ -1,8 +1,8 @@ -using Sentinel.Api.Application.DTO.Token; -using Sentinel.Api.Application.DTO.User; -using Sentinel.Api.Domain.Entities; +using Mycelium.Api.Application.DTO.Token; +using Mycelium.Api.Application.DTO.User; +using Mycelium.Api.Domain.Entities; -namespace Sentinel.Api.Application.Interfaces; +namespace Mycelium.Api.Application.Interfaces; public interface IAuthRepository { diff --git a/src/Sentinel.Api.Application/Interfaces/IDeviceMessenger.cs b/src/Mycelium.Api.Application/Interfaces/IDeviceMessenger.cs similarity index 87% rename from src/Sentinel.Api.Application/Interfaces/IDeviceMessenger.cs rename to src/Mycelium.Api.Application/Interfaces/IDeviceMessenger.cs index b6f0b51..249cf29 100644 --- a/src/Sentinel.Api.Application/Interfaces/IDeviceMessenger.cs +++ b/src/Mycelium.Api.Application/Interfaces/IDeviceMessenger.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Application.Interfaces; +namespace Mycelium.Api.Application.Interfaces; public interface IDeviceMessenger { diff --git a/src/Sentinel.Api.Application/Interfaces/IDeviceRepository.cs b/src/Mycelium.Api.Application/Interfaces/IDeviceRepository.cs similarity index 79% rename from src/Sentinel.Api.Application/Interfaces/IDeviceRepository.cs rename to src/Mycelium.Api.Application/Interfaces/IDeviceRepository.cs index f4c31da..5734caa 100644 --- a/src/Sentinel.Api.Application/Interfaces/IDeviceRepository.cs +++ b/src/Mycelium.Api.Application/Interfaces/IDeviceRepository.cs @@ -1,8 +1,8 @@ -using Sentinel.Api.Application.DTO.Device; -using Sentinel.Common.DTO.Device; -using Sentinel.Common.DTO.Device.Information; +using Mycelium.Api.Application.DTO.Device; +using Mycelium.Common.DTO.Device; +using Mycelium.Common.DTO.Device.Information; -namespace Sentinel.Api.Application.Interfaces; +namespace Mycelium.Api.Application.Interfaces; public interface IDeviceRepository { diff --git a/src/Sentinel.Api.Application/Interfaces/IOrganisationRepository.cs b/src/Mycelium.Api.Application/Interfaces/IOrganisationRepository.cs similarity index 50% rename from src/Sentinel.Api.Application/Interfaces/IOrganisationRepository.cs rename to src/Mycelium.Api.Application/Interfaces/IOrganisationRepository.cs index c07bef6..b9761ae 100644 --- a/src/Sentinel.Api.Application/Interfaces/IOrganisationRepository.cs +++ b/src/Mycelium.Api.Application/Interfaces/IOrganisationRepository.cs @@ -1,6 +1,6 @@ -using Sentinel.Api.Domain.Entities; +using Mycelium.Api.Domain.Entities; -namespace Sentinel.Api.Application.Interfaces; +namespace Mycelium.Api.Application.Interfaces; public interface IOrganisationRepository { diff --git a/src/Mycelium.Api.Application/Interfaces/IUserRepository.cs b/src/Mycelium.Api.Application/Interfaces/IUserRepository.cs new file mode 100644 index 0000000..c081409 --- /dev/null +++ b/src/Mycelium.Api.Application/Interfaces/IUserRepository.cs @@ -0,0 +1,8 @@ +using Mycelium.Api.Application.DTO.User; + +namespace Mycelium.Api.Application.Interfaces; + +public interface IUserRepository +{ + Task Register(RegisterUserDto user); +} \ No newline at end of file diff --git a/src/Sentinel.Api.Application/Mediator/Behaviors/LoggingBehavior.cs b/src/Mycelium.Api.Application/Mediator/Behaviors/LoggingBehavior.cs similarity index 95% rename from src/Sentinel.Api.Application/Mediator/Behaviors/LoggingBehavior.cs rename to src/Mycelium.Api.Application/Mediator/Behaviors/LoggingBehavior.cs index 150b37f..0f91551 100644 --- a/src/Sentinel.Api.Application/Mediator/Behaviors/LoggingBehavior.cs +++ b/src/Mycelium.Api.Application/Mediator/Behaviors/LoggingBehavior.cs @@ -2,7 +2,7 @@ using Mediator; using Microsoft.Extensions.Logging; -namespace Sentinel.Api.Application.Mediator.Behaviors; +namespace Mycelium.Api.Application.Mediator.Behaviors; public class LoggingBehavior(ILogger> logger) : IPipelineBehavior diff --git a/src/Sentinel.Api.Application/Mediator/Behaviors/UnhandledExceptionBehavior.cs b/src/Mycelium.Api.Application/Mediator/Behaviors/UnhandledExceptionBehavior.cs similarity index 89% rename from src/Sentinel.Api.Application/Mediator/Behaviors/UnhandledExceptionBehavior.cs rename to src/Mycelium.Api.Application/Mediator/Behaviors/UnhandledExceptionBehavior.cs index 67dc570..a70d94c 100644 --- a/src/Sentinel.Api.Application/Mediator/Behaviors/UnhandledExceptionBehavior.cs +++ b/src/Mycelium.Api.Application/Mediator/Behaviors/UnhandledExceptionBehavior.cs @@ -1,8 +1,8 @@ using Mediator; using Microsoft.Extensions.Logging; -using Sentinel.Api.Application.Exceptions; +using Mycelium.Api.Application.Exceptions; -namespace Sentinel.Api.Application.Mediator.Behaviors; +namespace Mycelium.Api.Application.Mediator.Behaviors; public class UnhandledExceptionBehavior( ILogger> logger diff --git a/src/Sentinel.Api.Application/Mediator/Behaviors/ValidationBehavior.cs b/src/Mycelium.Api.Application/Mediator/Behaviors/ValidationBehavior.cs similarity index 94% rename from src/Sentinel.Api.Application/Mediator/Behaviors/ValidationBehavior.cs rename to src/Mycelium.Api.Application/Mediator/Behaviors/ValidationBehavior.cs index e25fa0d..9043d05 100644 --- a/src/Sentinel.Api.Application/Mediator/Behaviors/ValidationBehavior.cs +++ b/src/Mycelium.Api.Application/Mediator/Behaviors/ValidationBehavior.cs @@ -1,7 +1,7 @@ using FluentValidation; using Mediator; -namespace Sentinel.Api.Application.Mediator.Behaviors; +namespace Mycelium.Api.Application.Mediator.Behaviors; public class ValidationBehavior(IEnumerable> validators) : IPipelineBehavior diff --git a/src/Sentinel.Api.Application/Mediator/Exceptions/ValidationException.cs b/src/Mycelium.Api.Application/Mediator/Exceptions/ValidationException.cs similarity index 90% rename from src/Sentinel.Api.Application/Mediator/Exceptions/ValidationException.cs rename to src/Mycelium.Api.Application/Mediator/Exceptions/ValidationException.cs index 4966522..1748e17 100644 --- a/src/Sentinel.Api.Application/Mediator/Exceptions/ValidationException.cs +++ b/src/Mycelium.Api.Application/Mediator/Exceptions/ValidationException.cs @@ -1,6 +1,6 @@ using FluentValidation.Results; -namespace Sentinel.Api.Application.Mediator.Exceptions; +namespace Mycelium.Api.Application.Mediator.Exceptions; public class ValidationException() : Exception("One or more validation failures have occurred.") { diff --git a/src/Sentinel.Api.Application/Sentinel.Api.Application.csproj b/src/Mycelium.Api.Application/Mycelium.Api.Application.csproj similarity index 85% rename from src/Sentinel.Api.Application/Sentinel.Api.Application.csproj rename to src/Mycelium.Api.Application/Mycelium.Api.Application.csproj index e861265..9916480 100644 --- a/src/Sentinel.Api.Application/Sentinel.Api.Application.csproj +++ b/src/Mycelium.Api.Application/Mycelium.Api.Application.csproj @@ -1,4 +1,4 @@ - + net10.0 @@ -21,8 +21,8 @@ - - + + diff --git a/src/Sentinel.Api.Application/Queries/Devices/DeviceInformation/DeviceInformationQuery.cs b/src/Mycelium.Api.Application/Queries/Devices/DeviceInformation/DeviceInformationQuery.cs similarity index 50% rename from src/Sentinel.Api.Application/Queries/Devices/DeviceInformation/DeviceInformationQuery.cs rename to src/Mycelium.Api.Application/Queries/Devices/DeviceInformation/DeviceInformationQuery.cs index d4deffc..27141d0 100644 --- a/src/Sentinel.Api.Application/Queries/Devices/DeviceInformation/DeviceInformationQuery.cs +++ b/src/Mycelium.Api.Application/Queries/Devices/DeviceInformation/DeviceInformationQuery.cs @@ -1,6 +1,6 @@ using Mediator; -using Sentinel.Common.DTO.Device.Information; +using Mycelium.Common.DTO.Device.Information; -namespace Sentinel.Api.Application.Queries.Devices.DeviceInformation; +namespace Mycelium.Api.Application.Queries.Devices.DeviceInformation; public record DeviceInformationQuery(int DeviceId) : IRequest; diff --git a/src/Sentinel.Api.Application/Queries/Devices/DeviceInformation/DeviceInformationQueryHandler.cs b/src/Mycelium.Api.Application/Queries/Devices/DeviceInformation/DeviceInformationQueryHandler.cs similarity index 74% rename from src/Sentinel.Api.Application/Queries/Devices/DeviceInformation/DeviceInformationQueryHandler.cs rename to src/Mycelium.Api.Application/Queries/Devices/DeviceInformation/DeviceInformationQueryHandler.cs index f5c27ea..78e5b9d 100644 --- a/src/Sentinel.Api.Application/Queries/Devices/DeviceInformation/DeviceInformationQueryHandler.cs +++ b/src/Mycelium.Api.Application/Queries/Devices/DeviceInformation/DeviceInformationQueryHandler.cs @@ -1,8 +1,8 @@ using Mediator; -using Sentinel.Api.Application.Interfaces; -using Sentinel.Common.DTO.Device.Information; +using Mycelium.Api.Application.Interfaces; +using Mycelium.Common.DTO.Device.Information; -namespace Sentinel.Api.Application.Queries.Devices.DeviceInformation; +namespace Mycelium.Api.Application.Queries.Devices.DeviceInformation; public class DeviceInformationQueryHandler(IDeviceRepository deviceRepository) : IRequestHandler diff --git a/src/Mycelium.Api.Application/Queries/Devices/Devices/DevicesQuery.cs b/src/Mycelium.Api.Application/Queries/Devices/Devices/DevicesQuery.cs new file mode 100644 index 0000000..ac4dea6 --- /dev/null +++ b/src/Mycelium.Api.Application/Queries/Devices/Devices/DevicesQuery.cs @@ -0,0 +1,6 @@ +using Mediator; +using Mycelium.Api.Application.DTO.Device; + +namespace Mycelium.Api.Application.Queries.Devices.Devices; + +public record DevicesQuery(int UserId) : IRequest; diff --git a/src/Sentinel.Api.Application/Queries/Devices/Devices/DevicesQueryHandler.cs b/src/Mycelium.Api.Application/Queries/Devices/Devices/DevicesQueryHandler.cs similarity index 72% rename from src/Sentinel.Api.Application/Queries/Devices/Devices/DevicesQueryHandler.cs rename to src/Mycelium.Api.Application/Queries/Devices/Devices/DevicesQueryHandler.cs index 83f3abc..0483401 100644 --- a/src/Sentinel.Api.Application/Queries/Devices/Devices/DevicesQueryHandler.cs +++ b/src/Mycelium.Api.Application/Queries/Devices/Devices/DevicesQueryHandler.cs @@ -1,8 +1,8 @@ using Mediator; -using Sentinel.Api.Application.DTO.Device; -using Sentinel.Api.Application.Interfaces; +using Mycelium.Api.Application.DTO.Device; +using Mycelium.Api.Application.Interfaces; -namespace Sentinel.Api.Application.Queries.Devices.Devices; +namespace Mycelium.Api.Application.Queries.Devices.Devices; public class DevicesQueryHandler(IDeviceRepository deviceRepository) : IRequestHandler diff --git a/src/Sentinel.Api.Application/Queries/Devices/SecurityInformation/SecurityInformationQuery.cs b/src/Mycelium.Api.Application/Queries/Devices/SecurityInformation/SecurityInformationQuery.cs similarity index 53% rename from src/Sentinel.Api.Application/Queries/Devices/SecurityInformation/SecurityInformationQuery.cs rename to src/Mycelium.Api.Application/Queries/Devices/SecurityInformation/SecurityInformationQuery.cs index b03e372..5667204 100644 --- a/src/Sentinel.Api.Application/Queries/Devices/SecurityInformation/SecurityInformationQuery.cs +++ b/src/Mycelium.Api.Application/Queries/Devices/SecurityInformation/SecurityInformationQuery.cs @@ -1,6 +1,6 @@ using Mediator; -using Sentinel.Common.DTO.Device; +using Mycelium.Common.DTO.Device; -namespace Sentinel.Api.Application.Queries.Devices.SecurityInformation; +namespace Mycelium.Api.Application.Queries.Devices.SecurityInformation; public record SecurityInformationQuery(int DeviceId) : IRequest; diff --git a/src/Sentinel.Api.Application/Queries/Devices/SecurityInformation/SecurityInformationQueryHandler.cs b/src/Mycelium.Api.Application/Queries/Devices/SecurityInformation/SecurityInformationQueryHandler.cs similarity index 76% rename from src/Sentinel.Api.Application/Queries/Devices/SecurityInformation/SecurityInformationQueryHandler.cs rename to src/Mycelium.Api.Application/Queries/Devices/SecurityInformation/SecurityInformationQueryHandler.cs index e612b2a..dd9270c 100644 --- a/src/Sentinel.Api.Application/Queries/Devices/SecurityInformation/SecurityInformationQueryHandler.cs +++ b/src/Mycelium.Api.Application/Queries/Devices/SecurityInformation/SecurityInformationQueryHandler.cs @@ -1,8 +1,8 @@ using Mediator; -using Sentinel.Api.Application.Interfaces; -using Sentinel.Common.DTO.Device; +using Mycelium.Api.Application.Interfaces; +using Mycelium.Common.DTO.Device; -namespace Sentinel.Api.Application.Queries.Devices.SecurityInformation; +namespace Mycelium.Api.Application.Queries.Devices.SecurityInformation; public class SecurityInformationQueryHandler(IDeviceRepository deviceRepository) : IRequestHandler diff --git a/src/Sentinel.Api.Application/Queries/Devices/SoftwareInformation/SoftwareInformationQuery.cs b/src/Mycelium.Api.Application/Queries/Devices/SoftwareInformation/SoftwareInformationQuery.cs similarity index 53% rename from src/Sentinel.Api.Application/Queries/Devices/SoftwareInformation/SoftwareInformationQuery.cs rename to src/Mycelium.Api.Application/Queries/Devices/SoftwareInformation/SoftwareInformationQuery.cs index 2c1b93b..d22f40a 100644 --- a/src/Sentinel.Api.Application/Queries/Devices/SoftwareInformation/SoftwareInformationQuery.cs +++ b/src/Mycelium.Api.Application/Queries/Devices/SoftwareInformation/SoftwareInformationQuery.cs @@ -1,6 +1,6 @@ using Mediator; -using Sentinel.Common.DTO.Device; +using Mycelium.Common.DTO.Device; -namespace Sentinel.Api.Application.Queries.Devices.SoftwareInformation; +namespace Mycelium.Api.Application.Queries.Devices.SoftwareInformation; public record SoftwareInformationQuery(int DeviceId) : IRequest; diff --git a/src/Sentinel.Api.Application/Queries/Devices/SoftwareInformation/SoftwareInformationQueryHandler.cs b/src/Mycelium.Api.Application/Queries/Devices/SoftwareInformation/SoftwareInformationQueryHandler.cs similarity index 76% rename from src/Sentinel.Api.Application/Queries/Devices/SoftwareInformation/SoftwareInformationQueryHandler.cs rename to src/Mycelium.Api.Application/Queries/Devices/SoftwareInformation/SoftwareInformationQueryHandler.cs index b71f7b5..59e801d 100644 --- a/src/Sentinel.Api.Application/Queries/Devices/SoftwareInformation/SoftwareInformationQueryHandler.cs +++ b/src/Mycelium.Api.Application/Queries/Devices/SoftwareInformation/SoftwareInformationQueryHandler.cs @@ -1,8 +1,8 @@ using Mediator; -using Sentinel.Api.Application.Interfaces; -using Sentinel.Common.DTO.Device; +using Mycelium.Api.Application.Interfaces; +using Mycelium.Common.DTO.Device; -namespace Sentinel.Api.Application.Queries.Devices.SoftwareInformation; +namespace Mycelium.Api.Application.Queries.Devices.SoftwareInformation; public class SoftwareInformationQueryHandler(IDeviceRepository deviceRepository) : IRequestHandler diff --git a/src/Sentinel.Api.Application/Queries/Devices/StorageInformation/StorageInformationQuery.cs b/src/Mycelium.Api.Application/Queries/Devices/StorageInformation/StorageInformationQuery.cs similarity index 53% rename from src/Sentinel.Api.Application/Queries/Devices/StorageInformation/StorageInformationQuery.cs rename to src/Mycelium.Api.Application/Queries/Devices/StorageInformation/StorageInformationQuery.cs index 2d5fcf3..f74b73f 100644 --- a/src/Sentinel.Api.Application/Queries/Devices/StorageInformation/StorageInformationQuery.cs +++ b/src/Mycelium.Api.Application/Queries/Devices/StorageInformation/StorageInformationQuery.cs @@ -1,6 +1,6 @@ using Mediator; -using Sentinel.Common.DTO.Device; +using Mycelium.Common.DTO.Device; -namespace Sentinel.Api.Application.Queries.Devices.StorageInformation; +namespace Mycelium.Api.Application.Queries.Devices.StorageInformation; public record StorageInformationQuery(int DeviceId) : IRequest; diff --git a/src/Sentinel.Api.Application/Queries/Devices/StorageInformation/StorageInformationQueryHandler.cs b/src/Mycelium.Api.Application/Queries/Devices/StorageInformation/StorageInformationQueryHandler.cs similarity index 75% rename from src/Sentinel.Api.Application/Queries/Devices/StorageInformation/StorageInformationQueryHandler.cs rename to src/Mycelium.Api.Application/Queries/Devices/StorageInformation/StorageInformationQueryHandler.cs index 8c4d340..164b4b4 100644 --- a/src/Sentinel.Api.Application/Queries/Devices/StorageInformation/StorageInformationQueryHandler.cs +++ b/src/Mycelium.Api.Application/Queries/Devices/StorageInformation/StorageInformationQueryHandler.cs @@ -1,8 +1,8 @@ using Mediator; -using Sentinel.Api.Application.Interfaces; -using Sentinel.Common.DTO.Device; +using Mycelium.Api.Application.Interfaces; +using Mycelium.Common.DTO.Device; -namespace Sentinel.Api.Application.Queries.Devices.StorageInformation; +namespace Mycelium.Api.Application.Queries.Devices.StorageInformation; public class StorageInformationQueryHandler(IDeviceRepository deviceRepository) : IRequestHandler diff --git a/src/Mycelium.Api.Application/Queries/Organisations/OrganisationsQuery.cs b/src/Mycelium.Api.Application/Queries/Organisations/OrganisationsQuery.cs new file mode 100644 index 0000000..430f8d5 --- /dev/null +++ b/src/Mycelium.Api.Application/Queries/Organisations/OrganisationsQuery.cs @@ -0,0 +1,6 @@ +using Mediator; +using Mycelium.Api.Domain.Entities; + +namespace Mycelium.Api.Application.Queries.Organisations; + +public record OrganisationsQuery : IRequest>; diff --git a/src/Sentinel.Api.Application/Queries/Organisations/OrganisationsQueryHandler.cs b/src/Mycelium.Api.Application/Queries/Organisations/OrganisationsQueryHandler.cs similarity index 74% rename from src/Sentinel.Api.Application/Queries/Organisations/OrganisationsQueryHandler.cs rename to src/Mycelium.Api.Application/Queries/Organisations/OrganisationsQueryHandler.cs index e968690..5ba2750 100644 --- a/src/Sentinel.Api.Application/Queries/Organisations/OrganisationsQueryHandler.cs +++ b/src/Mycelium.Api.Application/Queries/Organisations/OrganisationsQueryHandler.cs @@ -1,8 +1,8 @@ using Mediator; -using Sentinel.Api.Application.Interfaces; -using Sentinel.Api.Domain.Entities; +using Mycelium.Api.Application.Interfaces; +using Mycelium.Api.Domain.Entities; -namespace Sentinel.Api.Application.Queries.Organisations; +namespace Mycelium.Api.Application.Queries.Organisations; public class OrganisationsQueryHandler(IOrganisationRepository organisationRepository) : IRequestHandler> diff --git a/src/Sentinel.Api.Application/Services/Interfaces/IJwtTokenGenerator.cs b/src/Mycelium.Api.Application/Services/Interfaces/IJwtTokenGenerator.cs similarity index 74% rename from src/Sentinel.Api.Application/Services/Interfaces/IJwtTokenGenerator.cs rename to src/Mycelium.Api.Application/Services/Interfaces/IJwtTokenGenerator.cs index 86fad9e..21af5f0 100644 --- a/src/Sentinel.Api.Application/Services/Interfaces/IJwtTokenGenerator.cs +++ b/src/Mycelium.Api.Application/Services/Interfaces/IJwtTokenGenerator.cs @@ -1,6 +1,6 @@ using System.Security.Claims; -namespace Sentinel.Api.Application.Services.Interfaces; +namespace Mycelium.Api.Application.Services.Interfaces; public interface IJwtTokenGenerator { diff --git a/src/Sentinel.Api.Application/Services/TokenGenerator.cs b/src/Mycelium.Api.Application/Services/TokenGenerator.cs similarity index 92% rename from src/Sentinel.Api.Application/Services/TokenGenerator.cs rename to src/Mycelium.Api.Application/Services/TokenGenerator.cs index 84639df..561f981 100644 --- a/src/Sentinel.Api.Application/Services/TokenGenerator.cs +++ b/src/Mycelium.Api.Application/Services/TokenGenerator.cs @@ -4,9 +4,9 @@ using System.Text; using Microsoft.Extensions.Configuration; using Microsoft.IdentityModel.Tokens; -using Sentinel.Api.Application.Services.Interfaces; +using Mycelium.Api.Application.Services.Interfaces; -namespace Sentinel.Api.Application.Services; +namespace Mycelium.Api.Application.Services; public class TokenGenerator(IConfiguration configuration) : IJwtTokenGenerator { diff --git a/src/Sentinel.Api.Domain/Entities/Device.cs b/src/Mycelium.Api.Domain/Entities/Device.cs similarity index 92% rename from src/Sentinel.Api.Domain/Entities/Device.cs rename to src/Mycelium.Api.Domain/Entities/Device.cs index 8ce0533..0fad661 100644 --- a/src/Sentinel.Api.Domain/Entities/Device.cs +++ b/src/Mycelium.Api.Domain/Entities/Device.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Domain.Entities; +namespace Mycelium.Api.Domain.Entities; public class Device { diff --git a/src/Sentinel.Api.Domain/Entities/DeviceDetails.cs b/src/Mycelium.Api.Domain/Entities/DeviceDetails.cs similarity index 90% rename from src/Sentinel.Api.Domain/Entities/DeviceDetails.cs rename to src/Mycelium.Api.Domain/Entities/DeviceDetails.cs index 3c59143..385600d 100644 --- a/src/Sentinel.Api.Domain/Entities/DeviceDetails.cs +++ b/src/Mycelium.Api.Domain/Entities/DeviceDetails.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Domain.Entities; +namespace Mycelium.Api.Domain.Entities; public class DeviceDetails { diff --git a/src/Sentinel.Api.Domain/Entities/DeviceDisk.cs b/src/Mycelium.Api.Domain/Entities/DeviceDisk.cs similarity index 83% rename from src/Sentinel.Api.Domain/Entities/DeviceDisk.cs rename to src/Mycelium.Api.Domain/Entities/DeviceDisk.cs index 57a1ddc..dc11e2f 100644 --- a/src/Sentinel.Api.Domain/Entities/DeviceDisk.cs +++ b/src/Mycelium.Api.Domain/Entities/DeviceDisk.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Domain.Entities; +namespace Mycelium.Api.Domain.Entities; public class DeviceDisk { diff --git a/src/Sentinel.Api.Domain/Entities/DeviceSecurity.cs b/src/Mycelium.Api.Domain/Entities/DeviceSecurity.cs similarity index 94% rename from src/Sentinel.Api.Domain/Entities/DeviceSecurity.cs rename to src/Mycelium.Api.Domain/Entities/DeviceSecurity.cs index 7d0d601..21d56a8 100644 --- a/src/Sentinel.Api.Domain/Entities/DeviceSecurity.cs +++ b/src/Mycelium.Api.Domain/Entities/DeviceSecurity.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Domain.Entities; +namespace Mycelium.Api.Domain.Entities; public class DeviceSecurity { diff --git a/src/Sentinel.Api.Domain/Entities/DeviceSoftware.cs b/src/Mycelium.Api.Domain/Entities/DeviceSoftware.cs similarity index 71% rename from src/Sentinel.Api.Domain/Entities/DeviceSoftware.cs rename to src/Mycelium.Api.Domain/Entities/DeviceSoftware.cs index bbff94c..6ba6eab 100644 --- a/src/Sentinel.Api.Domain/Entities/DeviceSoftware.cs +++ b/src/Mycelium.Api.Domain/Entities/DeviceSoftware.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Domain.Entities; +namespace Mycelium.Api.Domain.Entities; public class DeviceSoftware { diff --git a/src/Sentinel.Api.Domain/Entities/Organisation.cs b/src/Mycelium.Api.Domain/Entities/Organisation.cs similarity index 85% rename from src/Sentinel.Api.Domain/Entities/Organisation.cs rename to src/Mycelium.Api.Domain/Entities/Organisation.cs index 7630218..9e6ae84 100644 --- a/src/Sentinel.Api.Domain/Entities/Organisation.cs +++ b/src/Mycelium.Api.Domain/Entities/Organisation.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Domain.Entities; +namespace Mycelium.Api.Domain.Entities; public sealed class Organisation { diff --git a/src/Sentinel.Api.Domain/Entities/User.cs b/src/Mycelium.Api.Domain/Entities/User.cs similarity index 93% rename from src/Sentinel.Api.Domain/Entities/User.cs rename to src/Mycelium.Api.Domain/Entities/User.cs index 31ee702..0034b97 100644 --- a/src/Sentinel.Api.Domain/Entities/User.cs +++ b/src/Mycelium.Api.Domain/Entities/User.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Api.Domain.Entities; +namespace Mycelium.Api.Domain.Entities; public sealed class User { diff --git a/src/Sentinel.Api.Domain/Sentinel.Api.Domain.csproj b/src/Mycelium.Api.Domain/Mycelium.Api.Domain.csproj similarity index 100% rename from src/Sentinel.Api.Domain/Sentinel.Api.Domain.csproj rename to src/Mycelium.Api.Domain/Mycelium.Api.Domain.csproj diff --git a/src/Sentinel.Api.Infrastructure/DependencyInjection.cs b/src/Mycelium.Api.Infrastructure/DependencyInjection.cs similarity index 92% rename from src/Sentinel.Api.Infrastructure/DependencyInjection.cs rename to src/Mycelium.Api.Infrastructure/DependencyInjection.cs index d931b59..2fed8b7 100644 --- a/src/Sentinel.Api.Infrastructure/DependencyInjection.cs +++ b/src/Mycelium.Api.Infrastructure/DependencyInjection.cs @@ -1,4 +1,4 @@ -using System.IdentityModel.Tokens.Jwt; +using System.IdentityModel.Tokens.Jwt; using Microsoft.Extensions.DependencyInjection; using System.Text; using Microsoft.AspNetCore.Authentication.JwtBearer; @@ -6,16 +6,16 @@ using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.Configuration; using Microsoft.IdentityModel.Tokens; -using Sentinel.Api.Application.Interfaces; -using Sentinel.Api.Application.Services; -using Sentinel.Api.Application.Services.Interfaces; -using Sentinel.Api.Infrastructure.Persistence; -using Sentinel.Api.Infrastructure.Repositories; +using Mycelium.Api.Application.Interfaces; +using Mycelium.Api.Application.Services; +using Mycelium.Api.Application.Services.Interfaces; +using Mycelium.Api.Infrastructure.Persistence; +using Mycelium.Api.Infrastructure.Repositories; using Serilog; using Serilog.Events; -using Sentinel.Api.Infrastructure.SignalR; +using Mycelium.Api.Infrastructure.SignalR; -namespace Sentinel.Api.Infrastructure; +namespace Mycelium.Api.Infrastructure; public static class DependencyInjection { diff --git a/src/Sentinel.Api.Infrastructure/Exceptions/BadRequestException.cs b/src/Mycelium.Api.Infrastructure/Exceptions/BadRequestException.cs similarity index 57% rename from src/Sentinel.Api.Infrastructure/Exceptions/BadRequestException.cs rename to src/Mycelium.Api.Infrastructure/Exceptions/BadRequestException.cs index 1f67bdc..750c04c 100644 --- a/src/Sentinel.Api.Infrastructure/Exceptions/BadRequestException.cs +++ b/src/Mycelium.Api.Infrastructure/Exceptions/BadRequestException.cs @@ -1,3 +1,3 @@ -namespace Sentinel.Api.Infrastructure.Exceptions; +namespace Mycelium.Api.Infrastructure.Exceptions; public class BadRequestException(string message) : Exception(message); \ No newline at end of file diff --git a/src/Sentinel.Api.Infrastructure/Exceptions/ForbiddenException.cs b/src/Mycelium.Api.Infrastructure/Exceptions/ForbiddenException.cs similarity index 56% rename from src/Sentinel.Api.Infrastructure/Exceptions/ForbiddenException.cs rename to src/Mycelium.Api.Infrastructure/Exceptions/ForbiddenException.cs index 3e2ac44..a8190b6 100644 --- a/src/Sentinel.Api.Infrastructure/Exceptions/ForbiddenException.cs +++ b/src/Mycelium.Api.Infrastructure/Exceptions/ForbiddenException.cs @@ -1,3 +1,3 @@ -namespace Sentinel.Api.Infrastructure.Exceptions; +namespace Mycelium.Api.Infrastructure.Exceptions; public class ForbiddenException(string message) : Exception(message); \ No newline at end of file diff --git a/src/Sentinel.Api.Infrastructure/Exceptions/InternalServerException.cs b/src/Mycelium.Api.Infrastructure/Exceptions/InternalServerException.cs similarity index 58% rename from src/Sentinel.Api.Infrastructure/Exceptions/InternalServerException.cs rename to src/Mycelium.Api.Infrastructure/Exceptions/InternalServerException.cs index bd6dece..da7dd00 100644 --- a/src/Sentinel.Api.Infrastructure/Exceptions/InternalServerException.cs +++ b/src/Mycelium.Api.Infrastructure/Exceptions/InternalServerException.cs @@ -1,3 +1,3 @@ -namespace Sentinel.Api.Infrastructure.Exceptions; +namespace Mycelium.Api.Infrastructure.Exceptions; public class InternalServerException(string message) : Exception(message); \ No newline at end of file diff --git a/src/Sentinel.Api.Infrastructure/Exceptions/NotFoundException.cs b/src/Mycelium.Api.Infrastructure/Exceptions/NotFoundException.cs similarity index 56% rename from src/Sentinel.Api.Infrastructure/Exceptions/NotFoundException.cs rename to src/Mycelium.Api.Infrastructure/Exceptions/NotFoundException.cs index 087232d..27d158d 100644 --- a/src/Sentinel.Api.Infrastructure/Exceptions/NotFoundException.cs +++ b/src/Mycelium.Api.Infrastructure/Exceptions/NotFoundException.cs @@ -1,3 +1,3 @@ -namespace Sentinel.Api.Infrastructure.Exceptions; +namespace Mycelium.Api.Infrastructure.Exceptions; public class NotFoundException(string message) : Exception(message); \ No newline at end of file diff --git a/src/Sentinel.Api.Infrastructure/Exceptions/UnauthorizedException.cs b/src/Mycelium.Api.Infrastructure/Exceptions/UnauthorizedException.cs similarity index 57% rename from src/Sentinel.Api.Infrastructure/Exceptions/UnauthorizedException.cs rename to src/Mycelium.Api.Infrastructure/Exceptions/UnauthorizedException.cs index 310f472..81368e7 100644 --- a/src/Sentinel.Api.Infrastructure/Exceptions/UnauthorizedException.cs +++ b/src/Mycelium.Api.Infrastructure/Exceptions/UnauthorizedException.cs @@ -1,3 +1,3 @@ -namespace Sentinel.Api.Infrastructure.Exceptions; +namespace Mycelium.Api.Infrastructure.Exceptions; public class UnauthorizedException(string message) : Exception(message); \ No newline at end of file diff --git a/src/Sentinel.Api.Infrastructure/Middleware/ExceptionHandlingMiddleware.cs b/src/Mycelium.Api.Infrastructure/Middleware/ExceptionHandlingMiddleware.cs similarity index 87% rename from src/Sentinel.Api.Infrastructure/Middleware/ExceptionHandlingMiddleware.cs rename to src/Mycelium.Api.Infrastructure/Middleware/ExceptionHandlingMiddleware.cs index b1d11e5..3548322 100644 --- a/src/Sentinel.Api.Infrastructure/Middleware/ExceptionHandlingMiddleware.cs +++ b/src/Mycelium.Api.Infrastructure/Middleware/ExceptionHandlingMiddleware.cs @@ -1,7 +1,7 @@ -using Microsoft.AspNetCore.Http; -using Sentinel.Api.Application.Exceptions; -using Sentinel.Api.Infrastructure.Exceptions; -namespace Sentinel.Api.Infrastructure.Middleware; +using Microsoft.AspNetCore.Http; +using Mycelium.Api.Application.Exceptions; +using Mycelium.Api.Infrastructure.Exceptions; +namespace Mycelium.Api.Infrastructure.Middleware; public class ExceptionHandlingMiddleware(RequestDelegate next) { diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20241024165627_InitialCommit.Designer.cs b/src/Mycelium.Api.Infrastructure/Migrations/20241024165627_InitialCommit.Designer.cs similarity index 87% rename from src/Sentinel.Api.Infrastructure/Migrations/20241024165627_InitialCommit.Designer.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20241024165627_InitialCommit.Designer.cs index 0b56596..a30d144 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20241024165627_InitialCommit.Designer.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20241024165627_InitialCommit.Designer.cs @@ -1,15 +1,15 @@ -// +// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Sentinel.Api.Infrastructure.Persistence; +using Mycelium.Api.Infrastructure.Persistence; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20241024165627_InitialCommit")] @@ -25,7 +25,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -41,7 +41,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Organisations"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.System", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.System", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -72,7 +72,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Systems"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -116,16 +116,16 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Users"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.System", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.System", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", null) + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", null) .WithMany("Systems") .HasForeignKey("OrganisationId"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", "Organisation") + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", "Organisation") .WithMany("Users") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -134,7 +134,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Organisation"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Navigation("Systems"); diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20241024165627_InitialCommit.cs b/src/Mycelium.Api.Infrastructure/Migrations/20241024165627_InitialCommit.cs similarity index 98% rename from src/Sentinel.Api.Infrastructure/Migrations/20241024165627_InitialCommit.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20241024165627_InitialCommit.cs index 49b6580..f7a6524 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20241024165627_InitialCommit.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20241024165627_InitialCommit.cs @@ -1,9 +1,9 @@ -using System; +using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { /// public partial class InitialCommit : Migration diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20241219145159_DotNetUpgrade.Designer.cs b/src/Mycelium.Api.Infrastructure/Migrations/20241219145159_DotNetUpgrade.Designer.cs similarity index 87% rename from src/Sentinel.Api.Infrastructure/Migrations/20241219145159_DotNetUpgrade.Designer.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20241219145159_DotNetUpgrade.Designer.cs index a0df668..395c4cd 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20241219145159_DotNetUpgrade.Designer.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20241219145159_DotNetUpgrade.Designer.cs @@ -1,15 +1,15 @@ -// +// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Sentinel.Api.Infrastructure.Persistence; +using Mycelium.Api.Infrastructure.Persistence; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20241219145159_DotNetUpgrade")] @@ -25,7 +25,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -41,7 +41,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Organisations"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.System", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.System", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -72,7 +72,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Systems"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -116,9 +116,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Users"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.System", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.System", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", "Organisation") + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", "Organisation") .WithMany("Systems") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -127,9 +127,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Organisation"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", "Organisation") + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", "Organisation") .WithMany("Users") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -138,7 +138,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Organisation"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Navigation("Systems"); diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20241219145159_DotNetUpgrade.cs b/src/Mycelium.Api.Infrastructure/Migrations/20241219145159_DotNetUpgrade.cs similarity index 94% rename from src/Sentinel.Api.Infrastructure/Migrations/20241219145159_DotNetUpgrade.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20241219145159_DotNetUpgrade.cs index f2fc504..602d895 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20241219145159_DotNetUpgrade.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20241219145159_DotNetUpgrade.cs @@ -1,8 +1,8 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { /// public partial class DotNetUpgrade : Migration diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20250210145819_DatabaseChanges.Designer.cs b/src/Mycelium.Api.Infrastructure/Migrations/20250210145819_DatabaseChanges.Designer.cs similarity index 87% rename from src/Sentinel.Api.Infrastructure/Migrations/20250210145819_DatabaseChanges.Designer.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20250210145819_DatabaseChanges.Designer.cs index 807e5dc..d9ed729 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20250210145819_DatabaseChanges.Designer.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20250210145819_DatabaseChanges.Designer.cs @@ -1,15 +1,15 @@ -// +// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Sentinel.Api.Infrastructure.Persistence; +using Mycelium.Api.Infrastructure.Persistence; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20250210145819_DatabaseChanges")] @@ -25,7 +25,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -56,7 +56,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Devices"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -72,7 +72,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Organisations"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -116,9 +116,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Users"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", "Organisation") + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", "Organisation") .WithMany("Devices") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -127,9 +127,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Organisation"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", "Organisation") + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", "Organisation") .WithMany("Users") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -138,7 +138,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Organisation"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Navigation("Devices"); diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20250210145819_DatabaseChanges.cs b/src/Mycelium.Api.Infrastructure/Migrations/20250210145819_DatabaseChanges.cs similarity index 98% rename from src/Sentinel.Api.Infrastructure/Migrations/20250210145819_DatabaseChanges.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20250210145819_DatabaseChanges.cs index a0d4426..185cd58 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20250210145819_DatabaseChanges.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20250210145819_DatabaseChanges.cs @@ -1,9 +1,9 @@ -using System; +using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { /// public partial class DatabaseChanges : Migration diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20250212143021_RemovedDeviceTypeFromDevice.Designer.cs b/src/Mycelium.Api.Infrastructure/Migrations/20250212143021_RemovedDeviceTypeFromDevice.Designer.cs similarity index 87% rename from src/Sentinel.Api.Infrastructure/Migrations/20250212143021_RemovedDeviceTypeFromDevice.Designer.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20250212143021_RemovedDeviceTypeFromDevice.Designer.cs index a76ea3e..493a29c 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20250212143021_RemovedDeviceTypeFromDevice.Designer.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20250212143021_RemovedDeviceTypeFromDevice.Designer.cs @@ -1,15 +1,15 @@ -// +// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Sentinel.Api.Infrastructure.Persistence; +using Mycelium.Api.Infrastructure.Persistence; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20250212143021_RemovedDeviceTypeFromDevice")] @@ -25,7 +25,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -53,7 +53,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Devices"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -69,7 +69,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Organisations"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -113,9 +113,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Users"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", "Organisation") + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", "Organisation") .WithMany("Devices") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -124,9 +124,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Organisation"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", "Organisation") + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", "Organisation") .WithMany("Users") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -135,7 +135,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Organisation"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Navigation("Devices"); diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20250212143021_RemovedDeviceTypeFromDevice.cs b/src/Mycelium.Api.Infrastructure/Migrations/20250212143021_RemovedDeviceTypeFromDevice.cs similarity index 87% rename from src/Sentinel.Api.Infrastructure/Migrations/20250212143021_RemovedDeviceTypeFromDevice.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20250212143021_RemovedDeviceTypeFromDevice.cs index e2063a7..af2790b 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20250212143021_RemovedDeviceTypeFromDevice.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20250212143021_RemovedDeviceTypeFromDevice.cs @@ -1,8 +1,8 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { /// public partial class RemovedDeviceTypeFromDevice : Migration diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20250213150300_AddedBaseDeviceRefresh.Designer.cs b/src/Mycelium.Api.Infrastructure/Migrations/20250213150300_AddedBaseDeviceRefresh.Designer.cs similarity index 87% rename from src/Sentinel.Api.Infrastructure/Migrations/20250213150300_AddedBaseDeviceRefresh.Designer.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20250213150300_AddedBaseDeviceRefresh.Designer.cs index c80396d..e9d1173 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20250213150300_AddedBaseDeviceRefresh.Designer.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20250213150300_AddedBaseDeviceRefresh.Designer.cs @@ -1,15 +1,15 @@ -// +// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Sentinel.Api.Infrastructure.Persistence; +using Mycelium.Api.Infrastructure.Persistence; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20250213150300_AddedBaseDeviceRefresh")] @@ -25,7 +25,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -56,7 +56,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Devices"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -72,7 +72,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Organisations"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -116,9 +116,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Users"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", "Organisation") + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", "Organisation") .WithMany("Devices") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -127,9 +127,9 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Organisation"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", "Organisation") + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", "Organisation") .WithMany("Users") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -138,7 +138,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Organisation"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Navigation("Devices"); diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20250213150300_AddedBaseDeviceRefresh.cs b/src/Mycelium.Api.Infrastructure/Migrations/20250213150300_AddedBaseDeviceRefresh.cs similarity index 86% rename from src/Sentinel.Api.Infrastructure/Migrations/20250213150300_AddedBaseDeviceRefresh.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20250213150300_AddedBaseDeviceRefresh.cs index e8d388b..284663c 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20250213150300_AddedBaseDeviceRefresh.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20250213150300_AddedBaseDeviceRefresh.cs @@ -1,8 +1,8 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { /// public partial class AddedBaseDeviceRefresh : Migration diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20250217110022_ExtendedDeviceEntity.Designer.cs b/src/Mycelium.Api.Infrastructure/Migrations/20250217110022_ExtendedDeviceEntity.Designer.cs similarity index 88% rename from src/Sentinel.Api.Infrastructure/Migrations/20250217110022_ExtendedDeviceEntity.Designer.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20250217110022_ExtendedDeviceEntity.Designer.cs index b9632c8..9903b9e 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20250217110022_ExtendedDeviceEntity.Designer.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20250217110022_ExtendedDeviceEntity.Designer.cs @@ -1,15 +1,15 @@ -// +// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Sentinel.Api.Infrastructure.Persistence; +using Mycelium.Api.Infrastructure.Persistence; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20250217110022_ExtendedDeviceEntity")] @@ -25,7 +25,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -65,7 +65,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Devices"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceDetails", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceDetails", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -96,7 +96,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeviceDetails"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceDisk", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceDisk", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -126,7 +126,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeviceDisks"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceSecurity", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceSecurity", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -178,7 +178,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeviceSecurities"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceSoftware", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceSoftware", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -199,7 +199,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeviceSoftware"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -215,7 +215,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Organisations"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -259,21 +259,21 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Users"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { - b.HasOne("Sentinel.Api.Domain.Entities.DeviceDetails", "DeviceDetails") + b.HasOne("Mycelium.Api.Domain.Entities.DeviceDetails", "DeviceDetails") .WithMany() .HasForeignKey("DeviceDetailsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("Sentinel.Api.Domain.Entities.DeviceSecurity", "DeviceSecurity") + b.HasOne("Mycelium.Api.Domain.Entities.DeviceSecurity", "DeviceSecurity") .WithMany() .HasForeignKey("DeviceSecurityId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", "Organisation") + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", "Organisation") .WithMany("Devices") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -286,23 +286,23 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Organisation"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceDisk", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceDisk", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Device", null) + b.HasOne("Mycelium.Api.Domain.Entities.Device", null) .WithMany("Disks") .HasForeignKey("DeviceId"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceSoftware", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceSoftware", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Device", null) + b.HasOne("Mycelium.Api.Domain.Entities.Device", null) .WithMany("Software") .HasForeignKey("DeviceId"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", "Organisation") + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", "Organisation") .WithMany("Users") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -311,14 +311,14 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Organisation"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { b.Navigation("Disks"); b.Navigation("Software"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Navigation("Devices"); diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20250217110022_ExtendedDeviceEntity.cs b/src/Mycelium.Api.Infrastructure/Migrations/20250217110022_ExtendedDeviceEntity.cs similarity index 99% rename from src/Sentinel.Api.Infrastructure/Migrations/20250217110022_ExtendedDeviceEntity.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20250217110022_ExtendedDeviceEntity.cs index 7623ad9..5e708f0 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20250217110022_ExtendedDeviceEntity.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20250217110022_ExtendedDeviceEntity.cs @@ -1,9 +1,9 @@ -using System; +using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { /// public partial class ExtendedDeviceEntity : Migration diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20250217111455_RemovedNullable.Designer.cs b/src/Mycelium.Api.Infrastructure/Migrations/20250217111455_RemovedNullable.Designer.cs similarity index 88% rename from src/Sentinel.Api.Infrastructure/Migrations/20250217111455_RemovedNullable.Designer.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20250217111455_RemovedNullable.Designer.cs index e5649dc..be6ea5f 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20250217111455_RemovedNullable.Designer.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20250217111455_RemovedNullable.Designer.cs @@ -1,15 +1,15 @@ -// +// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Sentinel.Api.Infrastructure.Persistence; +using Mycelium.Api.Infrastructure.Persistence; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20250217111455_RemovedNullable")] @@ -25,7 +25,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -65,7 +65,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Devices"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceDetails", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceDetails", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -96,7 +96,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeviceDetails"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceDisk", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceDisk", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -126,7 +126,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeviceDisks"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceSecurity", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceSecurity", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -178,7 +178,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeviceSecurities"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceSoftware", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceSoftware", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -200,7 +200,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeviceSoftware"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -216,7 +216,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Organisations"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -260,21 +260,21 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Users"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { - b.HasOne("Sentinel.Api.Domain.Entities.DeviceDetails", "DeviceDetails") + b.HasOne("Mycelium.Api.Domain.Entities.DeviceDetails", "DeviceDetails") .WithMany() .HasForeignKey("DeviceDetailsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("Sentinel.Api.Domain.Entities.DeviceSecurity", "DeviceSecurity") + b.HasOne("Mycelium.Api.Domain.Entities.DeviceSecurity", "DeviceSecurity") .WithMany() .HasForeignKey("DeviceSecurityId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", "Organisation") + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", "Organisation") .WithMany("Devices") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -287,23 +287,23 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Organisation"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceDisk", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceDisk", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Device", null) + b.HasOne("Mycelium.Api.Domain.Entities.Device", null) .WithMany("Disks") .HasForeignKey("DeviceId"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceSoftware", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceSoftware", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Device", null) + b.HasOne("Mycelium.Api.Domain.Entities.Device", null) .WithMany("Software") .HasForeignKey("DeviceId"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", "Organisation") + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", "Organisation") .WithMany("Users") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -312,14 +312,14 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Organisation"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { b.Navigation("Disks"); b.Navigation("Software"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Navigation("Devices"); diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20250217111455_RemovedNullable.cs b/src/Mycelium.Api.Infrastructure/Migrations/20250217111455_RemovedNullable.cs similarity index 92% rename from src/Sentinel.Api.Infrastructure/Migrations/20250217111455_RemovedNullable.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20250217111455_RemovedNullable.cs index 2673054..ade75cf 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20250217111455_RemovedNullable.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20250217111455_RemovedNullable.cs @@ -1,8 +1,8 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { /// public partial class RemovedNullable : Migration diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20250224093535_ModifiedDeviceNullables.Designer.cs b/src/Mycelium.Api.Infrastructure/Migrations/20250224093535_ModifiedDeviceNullables.Designer.cs similarity index 88% rename from src/Sentinel.Api.Infrastructure/Migrations/20250224093535_ModifiedDeviceNullables.Designer.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20250224093535_ModifiedDeviceNullables.Designer.cs index 2a689ae..34a188a 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20250224093535_ModifiedDeviceNullables.Designer.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20250224093535_ModifiedDeviceNullables.Designer.cs @@ -1,15 +1,15 @@ -// +// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Sentinel.Api.Infrastructure.Persistence; +using Mycelium.Api.Infrastructure.Persistence; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { [DbContext(typeof(AppDbContext))] [Migration("20250224093535_ModifiedDeviceNullables")] @@ -25,7 +25,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -66,7 +66,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Devices"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceDetails", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceDetails", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -97,7 +97,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeviceDetails"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceDisk", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceDisk", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -127,7 +127,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeviceDisks"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceSecurity", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceSecurity", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -179,7 +179,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeviceSecurities"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceSoftware", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceSoftware", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -201,7 +201,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("DeviceSoftware"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -217,7 +217,7 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Organisations"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -261,21 +261,21 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.ToTable("Users"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { - b.HasOne("Sentinel.Api.Domain.Entities.DeviceDetails", "DeviceDetails") + b.HasOne("Mycelium.Api.Domain.Entities.DeviceDetails", "DeviceDetails") .WithMany() .HasForeignKey("DeviceDetailsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("Sentinel.Api.Domain.Entities.DeviceSecurity", "DeviceSecurity") + b.HasOne("Mycelium.Api.Domain.Entities.DeviceSecurity", "DeviceSecurity") .WithMany() .HasForeignKey("DeviceSecurityId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", null) + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", null) .WithMany("Devices") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -286,23 +286,23 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("DeviceSecurity"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceDisk", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceDisk", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Device", null) + b.HasOne("Mycelium.Api.Domain.Entities.Device", null) .WithMany("Disks") .HasForeignKey("DeviceId"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceSoftware", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceSoftware", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Device", null) + b.HasOne("Mycelium.Api.Domain.Entities.Device", null) .WithMany("Software") .HasForeignKey("DeviceId"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", "Organisation") + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", "Organisation") .WithMany("Users") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -311,14 +311,14 @@ protected override void BuildTargetModel(ModelBuilder modelBuilder) b.Navigation("Organisation"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { b.Navigation("Disks"); b.Navigation("Software"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Navigation("Devices"); diff --git a/src/Sentinel.Api.Infrastructure/Migrations/20250224093535_ModifiedDeviceNullables.cs b/src/Mycelium.Api.Infrastructure/Migrations/20250224093535_ModifiedDeviceNullables.cs similarity index 92% rename from src/Sentinel.Api.Infrastructure/Migrations/20250224093535_ModifiedDeviceNullables.cs rename to src/Mycelium.Api.Infrastructure/Migrations/20250224093535_ModifiedDeviceNullables.cs index fe1a582..15a4b04 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/20250224093535_ModifiedDeviceNullables.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/20250224093535_ModifiedDeviceNullables.cs @@ -1,8 +1,8 @@ -using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Migrations; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { /// public partial class ModifiedDeviceNullables : Migration diff --git a/src/Sentinel.Api.Infrastructure/Migrations/AppDbContextModelSnapshot.cs b/src/Mycelium.Api.Infrastructure/Migrations/AppDbContextModelSnapshot.cs similarity index 88% rename from src/Sentinel.Api.Infrastructure/Migrations/AppDbContextModelSnapshot.cs rename to src/Mycelium.Api.Infrastructure/Migrations/AppDbContextModelSnapshot.cs index 3674d3a..d0a1685 100644 --- a/src/Sentinel.Api.Infrastructure/Migrations/AppDbContextModelSnapshot.cs +++ b/src/Mycelium.Api.Infrastructure/Migrations/AppDbContextModelSnapshot.cs @@ -1,14 +1,14 @@ -// +// using System; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Metadata; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Sentinel.Api.Infrastructure.Persistence; +using Mycelium.Api.Infrastructure.Persistence; #nullable disable -namespace Sentinel.Api.Infrastructure.Migrations +namespace Mycelium.Api.Infrastructure.Migrations { [DbContext(typeof(AppDbContext))] partial class AppDbContextModelSnapshot : ModelSnapshot @@ -22,7 +22,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -63,7 +63,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("Devices"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceDetails", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceDetails", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -94,7 +94,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("DeviceDetails"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceDisk", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceDisk", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -124,7 +124,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("DeviceDisks"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceSecurity", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceSecurity", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -176,7 +176,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("DeviceSecurities"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceSoftware", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceSoftware", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -198,7 +198,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("DeviceSoftware"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -214,7 +214,7 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("Organisations"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { b.Property("Id") .ValueGeneratedOnAdd() @@ -258,21 +258,21 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.ToTable("Users"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { - b.HasOne("Sentinel.Api.Domain.Entities.DeviceDetails", "DeviceDetails") + b.HasOne("Mycelium.Api.Domain.Entities.DeviceDetails", "DeviceDetails") .WithMany() .HasForeignKey("DeviceDetailsId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("Sentinel.Api.Domain.Entities.DeviceSecurity", "DeviceSecurity") + b.HasOne("Mycelium.Api.Domain.Entities.DeviceSecurity", "DeviceSecurity") .WithMany() .HasForeignKey("DeviceSecurityId") .OnDelete(DeleteBehavior.Cascade) .IsRequired(); - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", null) + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", null) .WithMany("Devices") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -283,23 +283,23 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Navigation("DeviceSecurity"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceDisk", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceDisk", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Device", null) + b.HasOne("Mycelium.Api.Domain.Entities.Device", null) .WithMany("Disks") .HasForeignKey("DeviceId"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.DeviceSoftware", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.DeviceSoftware", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Device", null) + b.HasOne("Mycelium.Api.Domain.Entities.Device", null) .WithMany("Software") .HasForeignKey("DeviceId"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.User", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.User", b => { - b.HasOne("Sentinel.Api.Domain.Entities.Organisation", "Organisation") + b.HasOne("Mycelium.Api.Domain.Entities.Organisation", "Organisation") .WithMany("Users") .HasForeignKey("OrganisationId") .OnDelete(DeleteBehavior.Cascade) @@ -308,14 +308,14 @@ protected override void BuildModel(ModelBuilder modelBuilder) b.Navigation("Organisation"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Device", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Device", b => { b.Navigation("Disks"); b.Navigation("Software"); }); - modelBuilder.Entity("Sentinel.Api.Domain.Entities.Organisation", b => + modelBuilder.Entity("Mycelium.Api.Domain.Entities.Organisation", b => { b.Navigation("Devices"); diff --git a/src/Sentinel.Api.Infrastructure/Sentinel.Api.Infrastructure.csproj b/src/Mycelium.Api.Infrastructure/Mycelium.Api.Infrastructure.csproj similarity index 84% rename from src/Sentinel.Api.Infrastructure/Sentinel.Api.Infrastructure.csproj rename to src/Mycelium.Api.Infrastructure/Mycelium.Api.Infrastructure.csproj index ba075ec..ada8411 100644 --- a/src/Sentinel.Api.Infrastructure/Sentinel.Api.Infrastructure.csproj +++ b/src/Mycelium.Api.Infrastructure/Mycelium.Api.Infrastructure.csproj @@ -1,4 +1,4 @@ - + net10.0 @@ -27,8 +27,8 @@ - - + + diff --git a/src/Sentinel.Api.Infrastructure/Persistence/AppDbContext.cs b/src/Mycelium.Api.Infrastructure/Persistence/AppDbContext.cs similarity index 79% rename from src/Sentinel.Api.Infrastructure/Persistence/AppDbContext.cs rename to src/Mycelium.Api.Infrastructure/Persistence/AppDbContext.cs index 8ad9086..da71722 100644 --- a/src/Sentinel.Api.Infrastructure/Persistence/AppDbContext.cs +++ b/src/Mycelium.Api.Infrastructure/Persistence/AppDbContext.cs @@ -1,7 +1,7 @@ -using Microsoft.EntityFrameworkCore; -using Sentinel.Api.Domain.Entities; +using Microsoft.EntityFrameworkCore; +using Mycelium.Api.Domain.Entities; -namespace Sentinel.Api.Infrastructure.Persistence; +namespace Mycelium.Api.Infrastructure.Persistence; public class AppDbContext(DbContextOptions options) : DbContext(options) { diff --git a/src/Sentinel.Api.Infrastructure/Repositories/AuthRepository.cs b/src/Mycelium.Api.Infrastructure/Repositories/AuthRepository.cs similarity index 95% rename from src/Sentinel.Api.Infrastructure/Repositories/AuthRepository.cs rename to src/Mycelium.Api.Infrastructure/Repositories/AuthRepository.cs index 707acc6..69c2fe9 100644 --- a/src/Sentinel.Api.Infrastructure/Repositories/AuthRepository.cs +++ b/src/Mycelium.Api.Infrastructure/Repositories/AuthRepository.cs @@ -1,4 +1,4 @@ -using System.IdentityModel.Tokens.Jwt; +using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Security.Cryptography; using System.Text; @@ -6,14 +6,14 @@ using Microsoft.Extensions.Configuration; using Microsoft.IdentityModel.Tokens; using OtpNet; -using Sentinel.Api.Application.DTO.Token; -using Sentinel.Api.Application.DTO.User; -using Sentinel.Api.Application.Interfaces; -using Sentinel.Api.Domain.Entities; -using Sentinel.Api.Infrastructure.Exceptions; -using Sentinel.Api.Infrastructure.Persistence; - -namespace Sentinel.Api.Infrastructure.Repositories; +using Mycelium.Api.Application.DTO.Token; +using Mycelium.Api.Application.DTO.User; +using Mycelium.Api.Application.Interfaces; +using Mycelium.Api.Domain.Entities; +using Mycelium.Api.Infrastructure.Exceptions; +using Mycelium.Api.Infrastructure.Persistence; + +namespace Mycelium.Api.Infrastructure.Repositories; public class AuthRepository(AppDbContext dbContext, IConfiguration configuration) : IAuthRepository { diff --git a/src/Sentinel.Api.Infrastructure/Repositories/DeviceRepository.cs b/src/Mycelium.Api.Infrastructure/Repositories/DeviceRepository.cs similarity index 96% rename from src/Sentinel.Api.Infrastructure/Repositories/DeviceRepository.cs rename to src/Mycelium.Api.Infrastructure/Repositories/DeviceRepository.cs index c28e31e..cf5e8b9 100644 --- a/src/Sentinel.Api.Infrastructure/Repositories/DeviceRepository.cs +++ b/src/Mycelium.Api.Infrastructure/Repositories/DeviceRepository.cs @@ -1,16 +1,16 @@ using System.Security.Claims; using Microsoft.AspNetCore.Http; using Microsoft.EntityFrameworkCore; -using Sentinel.Api.Application.DTO.Device; -using Sentinel.Api.Application.Interfaces; -using Sentinel.Api.Application.Services.Interfaces; -using Sentinel.Api.Domain.Entities; -using Sentinel.Api.Infrastructure.Exceptions; -using Sentinel.Api.Infrastructure.Persistence; -using Sentinel.Common.DTO.Device; -using Sentinel.Common.DTO.Device.Information; +using Mycelium.Api.Application.DTO.Device; +using Mycelium.Api.Application.Interfaces; +using Mycelium.Api.Application.Services.Interfaces; +using Mycelium.Api.Domain.Entities; +using Mycelium.Api.Infrastructure.Exceptions; +using Mycelium.Api.Infrastructure.Persistence; +using Mycelium.Common.DTO.Device; +using Mycelium.Common.DTO.Device.Information; -namespace Sentinel.Api.Infrastructure.Repositories; +namespace Mycelium.Api.Infrastructure.Repositories; public class DeviceRepository( AppDbContext dbContext, diff --git a/src/Sentinel.Api.Infrastructure/Repositories/OrganisationRepository.cs b/src/Mycelium.Api.Infrastructure/Repositories/OrganisationRepository.cs similarity index 54% rename from src/Sentinel.Api.Infrastructure/Repositories/OrganisationRepository.cs rename to src/Mycelium.Api.Infrastructure/Repositories/OrganisationRepository.cs index f206d10..125effd 100644 --- a/src/Sentinel.Api.Infrastructure/Repositories/OrganisationRepository.cs +++ b/src/Mycelium.Api.Infrastructure/Repositories/OrganisationRepository.cs @@ -1,9 +1,9 @@ -using Microsoft.EntityFrameworkCore; -using Sentinel.Api.Application.Interfaces; -using Sentinel.Api.Domain.Entities; -using Sentinel.Api.Infrastructure.Persistence; +using Microsoft.EntityFrameworkCore; +using Mycelium.Api.Application.Interfaces; +using Mycelium.Api.Domain.Entities; +using Mycelium.Api.Infrastructure.Persistence; -namespace Sentinel.Api.Infrastructure.Repositories; +namespace Mycelium.Api.Infrastructure.Repositories; public class OrganisationRepository(AppDbContext dbContext) : IOrganisationRepository { diff --git a/src/Sentinel.Api.Infrastructure/Repositories/UserRepository.cs b/src/Mycelium.Api.Infrastructure/Repositories/UserRepository.cs similarity index 78% rename from src/Sentinel.Api.Infrastructure/Repositories/UserRepository.cs rename to src/Mycelium.Api.Infrastructure/Repositories/UserRepository.cs index 2240bf2..4502951 100644 --- a/src/Sentinel.Api.Infrastructure/Repositories/UserRepository.cs +++ b/src/Mycelium.Api.Infrastructure/Repositories/UserRepository.cs @@ -1,11 +1,11 @@ -using Sentinel.Api.Application.DTO.User; -using Sentinel.Api.Application.Interfaces; -using Sentinel.Api.Domain.Entities; -using Sentinel.Api.Infrastructure.Persistence; +using Mycelium.Api.Application.DTO.User; +using Mycelium.Api.Application.Interfaces; +using Mycelium.Api.Domain.Entities; +using Mycelium.Api.Infrastructure.Persistence; using OtpNet; -using Sentinel.Api.Infrastructure.Exceptions; +using Mycelium.Api.Infrastructure.Exceptions; -namespace Sentinel.Api.Infrastructure.Repositories; +namespace Mycelium.Api.Infrastructure.Repositories; public class UserRepository(AppDbContext dbContext) : IUserRepository { diff --git a/src/Sentinel.Api.Infrastructure/SignalR/DeviceMessageHub.cs b/src/Mycelium.Api.Infrastructure/SignalR/DeviceMessageHub.cs similarity index 79% rename from src/Sentinel.Api.Infrastructure/SignalR/DeviceMessageHub.cs rename to src/Mycelium.Api.Infrastructure/SignalR/DeviceMessageHub.cs index 1472b30..d64042f 100644 --- a/src/Sentinel.Api.Infrastructure/SignalR/DeviceMessageHub.cs +++ b/src/Mycelium.Api.Infrastructure/SignalR/DeviceMessageHub.cs @@ -1,8 +1,8 @@ -using Microsoft.AspNetCore.Authorization; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.SignalR; -using Sentinel.Api.Infrastructure.SignalR.Interfaces; +using Mycelium.Api.Infrastructure.SignalR.Interfaces; -namespace Sentinel.Api.Infrastructure.SignalR; +namespace Mycelium.Api.Infrastructure.SignalR; [Authorize(Roles = "User,Device")] public class DeviceMessageHub : Hub diff --git a/src/Sentinel.Api.Infrastructure/SignalR/Interfaces/IDeviceMessageHub.cs b/src/Mycelium.Api.Infrastructure/SignalR/Interfaces/IDeviceMessageHub.cs similarity index 75% rename from src/Sentinel.Api.Infrastructure/SignalR/Interfaces/IDeviceMessageHub.cs rename to src/Mycelium.Api.Infrastructure/SignalR/Interfaces/IDeviceMessageHub.cs index 2bab4c2..ed7d1cf 100644 --- a/src/Sentinel.Api.Infrastructure/SignalR/Interfaces/IDeviceMessageHub.cs +++ b/src/Mycelium.Api.Infrastructure/SignalR/Interfaces/IDeviceMessageHub.cs @@ -1,6 +1,6 @@ -using Sentinel.Common.SignalR; +using Mycelium.Common.SignalR; -namespace Sentinel.Api.Infrastructure.SignalR.Interfaces; +namespace Mycelium.Api.Infrastructure.SignalR.Interfaces; public interface IDeviceMessageHub { diff --git a/src/Sentinel.Api.Infrastructure/SignalR/SignalRDeviceMessenger.cs b/src/Mycelium.Api.Infrastructure/SignalR/SignalRDeviceMessenger.cs similarity index 89% rename from src/Sentinel.Api.Infrastructure/SignalR/SignalRDeviceMessenger.cs rename to src/Mycelium.Api.Infrastructure/SignalR/SignalRDeviceMessenger.cs index f69b8e3..0ae8288 100644 --- a/src/Sentinel.Api.Infrastructure/SignalR/SignalRDeviceMessenger.cs +++ b/src/Mycelium.Api.Infrastructure/SignalR/SignalRDeviceMessenger.cs @@ -1,9 +1,9 @@ using Microsoft.AspNetCore.SignalR; -using Sentinel.Api.Application.Interfaces; -using Sentinel.Api.Infrastructure.SignalR.Interfaces; -using Sentinel.Common.SignalR; +using Mycelium.Api.Application.Interfaces; +using Mycelium.Api.Infrastructure.SignalR.Interfaces; +using Mycelium.Common.SignalR; -namespace Sentinel.Api.Infrastructure.SignalR; +namespace Mycelium.Api.Infrastructure.SignalR; public class SignalRDeviceMessenger(IHubContext hubContext) : IDeviceMessenger diff --git a/src/Sentinel.Api/.config/dotnet-tools.json b/src/Mycelium.Api/.config/dotnet-tools.json similarity index 100% rename from src/Sentinel.Api/.config/dotnet-tools.json rename to src/Mycelium.Api/.config/dotnet-tools.json diff --git a/src/Sentinel.Api/Controllers/AuthController.cs b/src/Mycelium.Api/Controllers/AuthController.cs similarity index 78% rename from src/Sentinel.Api/Controllers/AuthController.cs rename to src/Mycelium.Api/Controllers/AuthController.cs index 3da398a..5388b3e 100644 --- a/src/Sentinel.Api/Controllers/AuthController.cs +++ b/src/Mycelium.Api/Controllers/AuthController.cs @@ -1,11 +1,11 @@ -using Mediator; +using Mediator; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Sentinel.Api.Application.Commands.Auth.Login; -using Sentinel.Api.Application.Commands.Auth.RefreshToken; -using Sentinel.Api.Application.Commands.Auth.VerifyTotp; +using Mycelium.Api.Application.Commands.Auth.Login; +using Mycelium.Api.Application.Commands.Auth.RefreshToken; +using Mycelium.Api.Application.Commands.Auth.VerifyTotp; -namespace Sentinel.Api.Controllers; +namespace Mycelium.Api.Controllers; [ApiController] [Route("/auth")] diff --git a/src/Sentinel.Api/Controllers/DeviceAdminController.cs b/src/Mycelium.Api/Controllers/DeviceAdminController.cs similarity index 77% rename from src/Sentinel.Api/Controllers/DeviceAdminController.cs rename to src/Mycelium.Api/Controllers/DeviceAdminController.cs index f6c5b9f..0e33e73 100644 --- a/src/Sentinel.Api/Controllers/DeviceAdminController.cs +++ b/src/Mycelium.Api/Controllers/DeviceAdminController.cs @@ -1,17 +1,17 @@ using Mediator; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Sentinel.Api.Application.Commands.Devices.ExecuteSecurityScan; -using Sentinel.Api.Application.Commands.Devices.RequestRemoteAccess; -using Sentinel.Api.Application.Commands.Devices.Restart; -using Sentinel.Api.Application.Queries.Devices.DeviceInformation; -using Sentinel.Api.Application.Queries.Devices.Devices; -using Sentinel.Api.Application.Queries.Devices.SecurityInformation; -using Sentinel.Api.Application.Queries.Devices.SoftwareInformation; -using Sentinel.Api.Application.Queries.Devices.StorageInformation; -using Sentinel.Api.Extensions; +using Mycelium.Api.Application.Commands.Devices.ExecuteSecurityScan; +using Mycelium.Api.Application.Commands.Devices.RequestRemoteAccess; +using Mycelium.Api.Application.Commands.Devices.Restart; +using Mycelium.Api.Application.Queries.Devices.DeviceInformation; +using Mycelium.Api.Application.Queries.Devices.Devices; +using Mycelium.Api.Application.Queries.Devices.SecurityInformation; +using Mycelium.Api.Application.Queries.Devices.SoftwareInformation; +using Mycelium.Api.Application.Queries.Devices.StorageInformation; +using Mycelium.Api.Extensions; -namespace Sentinel.Api.Controllers; +namespace Mycelium.Api.Controllers; [ApiController] [Authorize(Roles = "User")] diff --git a/src/Sentinel.Api/Controllers/DeviceController.cs b/src/Mycelium.Api/Controllers/DeviceController.cs similarity index 76% rename from src/Sentinel.Api/Controllers/DeviceController.cs rename to src/Mycelium.Api/Controllers/DeviceController.cs index fda888f..bbe62b5 100644 --- a/src/Sentinel.Api/Controllers/DeviceController.cs +++ b/src/Mycelium.Api/Controllers/DeviceController.cs @@ -1,17 +1,17 @@ -using Mediator; +using Mediator; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Sentinel.Api.Application.Commands.Devices.Ping; -using Sentinel.Api.Application.Commands.Devices.Register; -using Sentinel.Api.Application.Commands.Devices.Update.DeviceInformation; -using Sentinel.Api.Application.Commands.Devices.Update.SecurityInformation; -using Sentinel.Api.Application.Commands.Devices.Update.SoftwareInformation; -using Sentinel.Api.Application.Commands.Devices.Update.StorageInformation; -using Sentinel.Api.Application.DTO.Device; -using Sentinel.Common.DTO.Device; -using Sentinel.Common.DTO.Device.Information; +using Mycelium.Api.Application.Commands.Devices.Ping; +using Mycelium.Api.Application.Commands.Devices.Register; +using Mycelium.Api.Application.Commands.Devices.Update.DeviceInformation; +using Mycelium.Api.Application.Commands.Devices.Update.SecurityInformation; +using Mycelium.Api.Application.Commands.Devices.Update.SoftwareInformation; +using Mycelium.Api.Application.Commands.Devices.Update.StorageInformation; +using Mycelium.Api.Application.DTO.Device; +using Mycelium.Common.DTO.Device; +using Mycelium.Common.DTO.Device.Information; -namespace Sentinel.Api.Controllers; +namespace Mycelium.Api.Controllers; [ApiController] [Route("/devices")] diff --git a/src/Sentinel.Api/Controllers/OrganisationController.cs b/src/Mycelium.Api/Controllers/OrganisationController.cs similarity index 78% rename from src/Sentinel.Api/Controllers/OrganisationController.cs rename to src/Mycelium.Api/Controllers/OrganisationController.cs index b8a43ee..e441963 100644 --- a/src/Sentinel.Api/Controllers/OrganisationController.cs +++ b/src/Mycelium.Api/Controllers/OrganisationController.cs @@ -1,9 +1,9 @@ -using Mediator; +using Mediator; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; -using Sentinel.Api.Application.Queries.Organisations; +using Mycelium.Api.Application.Queries.Organisations; -namespace Sentinel.Api.Controllers; +namespace Mycelium.Api.Controllers; [ApiController] diff --git a/src/Sentinel.Api/Controllers/UserController.cs b/src/Mycelium.Api/Controllers/UserController.cs similarity index 73% rename from src/Sentinel.Api/Controllers/UserController.cs rename to src/Mycelium.Api/Controllers/UserController.cs index 28395ec..808c040 100644 --- a/src/Sentinel.Api/Controllers/UserController.cs +++ b/src/Mycelium.Api/Controllers/UserController.cs @@ -1,8 +1,8 @@ -using Mediator; +using Mediator; using Microsoft.AspNetCore.Mvc; -using Sentinel.Api.Application.Commands.Users.RegisterUser; +using Mycelium.Api.Application.Commands.Users.RegisterUser; -namespace Sentinel.Api.Controllers; +namespace Mycelium.Api.Controllers; [ApiController] [Route("/users")] diff --git a/src/Sentinel.Api/DependencyInjection.cs b/src/Mycelium.Api/DependencyInjection.cs similarity index 93% rename from src/Sentinel.Api/DependencyInjection.cs rename to src/Mycelium.Api/DependencyInjection.cs index 9d8879a..1f927f1 100644 --- a/src/Sentinel.Api/DependencyInjection.cs +++ b/src/Mycelium.Api/DependencyInjection.cs @@ -1,8 +1,8 @@ -using System.Text.Json; +using System.Text.Json; using System.Text.Json.Serialization; using Microsoft.AspNetCore.Mvc; -namespace Sentinel.Api; +namespace Mycelium.Api; public static class DependencyInjection { diff --git a/src/Mycelium.Api/Dockerfile b/src/Mycelium.Api/Dockerfile new file mode 100644 index 0000000..48685e4 --- /dev/null +++ b/src/Mycelium.Api/Dockerfile @@ -0,0 +1,26 @@ +FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base +USER $APP_UID +WORKDIR /app +EXPOSE 8080 + +FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build +ARG BUILD_CONFIGURATION=Release +WORKDIR /src +COPY ["Mycelium.Api/Mycelium.Api.csproj", "Mycelium.Api/"] +COPY ["Mycelium.Api.Application/Mycelium.Api.Application.csproj", "Mycelium.Api.Application/"] +COPY ["Mycelium.Api.Domain/Mycelium.Api.Domain.csproj", "Mycelium.Api.Domain/"] +COPY ["Mycelium.Common/Mycelium.Common.csproj", "Mycelium.Common/"] +COPY ["Mycelium.Api.Infrastructure/Mycelium.Api.Infrastructure.csproj", "Mycelium.Api.Infrastructure/"] +RUN dotnet restore "Mycelium.Api/Mycelium.Api.csproj" +COPY . . +WORKDIR "/src/Mycelium.Api" +RUN dotnet build "Mycelium.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build + +FROM build AS publish +ARG BUILD_CONFIGURATION=Release +RUN dotnet publish "Mycelium.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false + +FROM base AS final +WORKDIR /app +COPY --from=publish /app/publish . +ENTRYPOINT ["dotnet", "Mycelium.Api.dll"] \ No newline at end of file diff --git a/src/Sentinel.Api/Extensions/ClaimsPrincipalExtensions.cs b/src/Mycelium.Api/Extensions/ClaimsPrincipalExtensions.cs similarity index 77% rename from src/Sentinel.Api/Extensions/ClaimsPrincipalExtensions.cs rename to src/Mycelium.Api/Extensions/ClaimsPrincipalExtensions.cs index 757b7c6..cb88ec0 100644 --- a/src/Sentinel.Api/Extensions/ClaimsPrincipalExtensions.cs +++ b/src/Mycelium.Api/Extensions/ClaimsPrincipalExtensions.cs @@ -1,6 +1,6 @@ -using System.Security.Claims; +using System.Security.Claims; -namespace Sentinel.Api.Extensions; +namespace Mycelium.Api.Extensions; public static class ClaimsPrincipalExtensions { diff --git a/src/Sentinel.Api/Extensions/SignalRExtensions.cs b/src/Mycelium.Api/Extensions/SignalRExtensions.cs similarity index 79% rename from src/Sentinel.Api/Extensions/SignalRExtensions.cs rename to src/Mycelium.Api/Extensions/SignalRExtensions.cs index b888ec6..c8d2558 100644 --- a/src/Sentinel.Api/Extensions/SignalRExtensions.cs +++ b/src/Mycelium.Api/Extensions/SignalRExtensions.cs @@ -1,6 +1,6 @@ -using Microsoft.AspNetCore.SignalR; +using Microsoft.AspNetCore.SignalR; -namespace Sentinel.Api.Extensions; +namespace Mycelium.Api.Extensions; public static class SignalRExtensions { diff --git a/src/Sentinel.Api/Sentinel.Api.csproj b/src/Mycelium.Api/Mycelium.Api.csproj similarity index 73% rename from src/Sentinel.Api/Sentinel.Api.csproj rename to src/Mycelium.Api/Mycelium.Api.csproj index 41bfbc7..d06c998 100644 --- a/src/Sentinel.Api/Sentinel.Api.csproj +++ b/src/Mycelium.Api/Mycelium.Api.csproj @@ -1,4 +1,4 @@ - + net10.0 @@ -17,9 +17,9 @@ - - - + + + diff --git a/src/Sentinel.Api/Program.cs b/src/Mycelium.Api/Program.cs similarity index 82% rename from src/Sentinel.Api/Program.cs rename to src/Mycelium.Api/Program.cs index 1cfd757..22d9dfe 100644 --- a/src/Sentinel.Api/Program.cs +++ b/src/Mycelium.Api/Program.cs @@ -1,12 +1,12 @@ using Microsoft.EntityFrameworkCore; using Scalar.AspNetCore; -using Sentinel.Api; -using Sentinel.Api.Application; -using Sentinel.Api.Extensions; -using Sentinel.Api.Infrastructure; -using Sentinel.Api.Infrastructure.Middleware; -using Sentinel.Api.Infrastructure.Persistence; -using Sentinel.Api.Infrastructure.SignalR; +using Mycelium.Api; +using Mycelium.Api.Application; +using Mycelium.Api.Extensions; +using Mycelium.Api.Infrastructure; +using Mycelium.Api.Infrastructure.Middleware; +using Mycelium.Api.Infrastructure.Persistence; +using Mycelium.Api.Infrastructure.SignalR; using Serilog; try @@ -62,7 +62,7 @@ Log.CloseAndFlush(); } -namespace Sentinel.Api +namespace Mycelium.Api { public abstract class Program; } \ No newline at end of file diff --git a/src/Sentinel.Api/appsettings.json b/src/Mycelium.Api/appsettings.json similarity index 100% rename from src/Sentinel.Api/appsettings.json rename to src/Mycelium.Api/appsettings.json diff --git a/src/Sentinel.Api/docker-compose.yml b/src/Mycelium.Api/docker-compose.yml similarity index 82% rename from src/Sentinel.Api/docker-compose.yml rename to src/Mycelium.Api/docker-compose.yml index 9150cb7..4531305 100644 --- a/src/Sentinel.Api/docker-compose.yml +++ b/src/Mycelium.Api/docker-compose.yml @@ -1,9 +1,9 @@ -name: sentinel +name: Mycelium services: - sentinel.api: - container_name: "sentinel.api" + Mycelium.api: + container_name: "Mycelium.api" networks: - - sentinel_network + - Mycelium_network build: context: . dockerfile: Dockerfile @@ -27,12 +27,12 @@ services: timeout: 3s retries: 10 start_period: 10s - container_name: "sentinel.db" + container_name: "Mycelium.db" networks: - - sentinel_network + - Mycelium_network ports: - "1433:1433" networks: - sentinel_network: + Mycelium_network: driver: bridge \ No newline at end of file diff --git a/src/Sentinel.Common/DTO/Device/Information/GetDeviceInformationDto.cs b/src/Mycelium.Common/DTO/Device/Information/GetDeviceInformationDto.cs similarity index 89% rename from src/Sentinel.Common/DTO/Device/Information/GetDeviceInformationDto.cs rename to src/Mycelium.Common/DTO/Device/Information/GetDeviceInformationDto.cs index 41ccd21..d5e503a 100644 --- a/src/Sentinel.Common/DTO/Device/Information/GetDeviceInformationDto.cs +++ b/src/Mycelium.Common/DTO/Device/Information/GetDeviceInformationDto.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Common.DTO.Device.Information; +namespace Mycelium.Common.DTO.Device.Information; public class GetDeviceInformationDto { diff --git a/src/Sentinel.Common/DTO/Device/Information/UpdateDeviceInformationDto.cs b/src/Mycelium.Common/DTO/Device/Information/UpdateDeviceInformationDto.cs similarity index 91% rename from src/Sentinel.Common/DTO/Device/Information/UpdateDeviceInformationDto.cs rename to src/Mycelium.Common/DTO/Device/Information/UpdateDeviceInformationDto.cs index 0815ef6..fc076d4 100644 --- a/src/Sentinel.Common/DTO/Device/Information/UpdateDeviceInformationDto.cs +++ b/src/Mycelium.Common/DTO/Device/Information/UpdateDeviceInformationDto.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Common.DTO.Device.Information; +namespace Mycelium.Common.DTO.Device.Information; public class UpdateDeviceInformationDto { diff --git a/src/Sentinel.Common/DTO/Device/SecurityInformationDto.cs b/src/Mycelium.Common/DTO/Device/SecurityInformationDto.cs similarity index 95% rename from src/Sentinel.Common/DTO/Device/SecurityInformationDto.cs rename to src/Mycelium.Common/DTO/Device/SecurityInformationDto.cs index b5ee2d4..4c63b6c 100644 --- a/src/Sentinel.Common/DTO/Device/SecurityInformationDto.cs +++ b/src/Mycelium.Common/DTO/Device/SecurityInformationDto.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Common.DTO.Device; +namespace Mycelium.Common.DTO.Device; public class SecurityInformationDto { diff --git a/src/Sentinel.Common/DTO/Device/SoftwareInformationDto.cs b/src/Mycelium.Common/DTO/Device/SoftwareInformationDto.cs similarity index 81% rename from src/Sentinel.Common/DTO/Device/SoftwareInformationDto.cs rename to src/Mycelium.Common/DTO/Device/SoftwareInformationDto.cs index ff4fd32..9558f4e 100644 --- a/src/Sentinel.Common/DTO/Device/SoftwareInformationDto.cs +++ b/src/Mycelium.Common/DTO/Device/SoftwareInformationDto.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Common.DTO.Device; +namespace Mycelium.Common.DTO.Device; public class SoftwareInformationDto { diff --git a/src/Sentinel.Common/DTO/Device/StorageInformationDto.cs b/src/Mycelium.Common/DTO/Device/StorageInformationDto.cs similarity index 88% rename from src/Sentinel.Common/DTO/Device/StorageInformationDto.cs rename to src/Mycelium.Common/DTO/Device/StorageInformationDto.cs index 3eeb528..6931f12 100644 --- a/src/Sentinel.Common/DTO/Device/StorageInformationDto.cs +++ b/src/Mycelium.Common/DTO/Device/StorageInformationDto.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Common.DTO.Device; +namespace Mycelium.Common.DTO.Device; public class StorageInformationDto { diff --git a/src/Sentinel.Common/Sentinel.Common.csproj b/src/Mycelium.Common/Mycelium.Common.csproj similarity index 76% rename from src/Sentinel.Common/Sentinel.Common.csproj rename to src/Mycelium.Common/Mycelium.Common.csproj index 660642d..8caf915 100644 --- a/src/Sentinel.Common/Sentinel.Common.csproj +++ b/src/Mycelium.Common/Mycelium.Common.csproj @@ -1,10 +1,10 @@ - + net10.0 enable enable - Sentinel.Common + Mycelium.Common diff --git a/src/Sentinel.Common/SignalR/RemoteAccessMessage.cs b/src/Mycelium.Common/SignalR/RemoteAccessMessage.cs similarity index 74% rename from src/Sentinel.Common/SignalR/RemoteAccessMessage.cs rename to src/Mycelium.Common/SignalR/RemoteAccessMessage.cs index 093cc74..9a0bc5a 100644 --- a/src/Sentinel.Common/SignalR/RemoteAccessMessage.cs +++ b/src/Mycelium.Common/SignalR/RemoteAccessMessage.cs @@ -1,4 +1,4 @@ -namespace Sentinel.Common.SignalR; +namespace Mycelium.Common.SignalR; public sealed record RemoteAccessMessage; public sealed record RemoteAccessResponseMessage(string ConnectionId); \ No newline at end of file diff --git a/src/Sentinel.Common/SignalR/RestartDeviceMessage.cs b/src/Mycelium.Common/SignalR/RestartDeviceMessage.cs similarity index 53% rename from src/Sentinel.Common/SignalR/RestartDeviceMessage.cs rename to src/Mycelium.Common/SignalR/RestartDeviceMessage.cs index a02f150..4fb7a24 100644 --- a/src/Sentinel.Common/SignalR/RestartDeviceMessage.cs +++ b/src/Mycelium.Common/SignalR/RestartDeviceMessage.cs @@ -1,3 +1,3 @@ -namespace Sentinel.Common.SignalR; +namespace Mycelium.Common.SignalR; public sealed record RestartDeviceMessage; \ No newline at end of file diff --git a/src/Sentinel.Common/SignalR/SecurityScanMessage.cs b/src/Mycelium.Common/SignalR/SecurityScanMessage.cs similarity index 52% rename from src/Sentinel.Common/SignalR/SecurityScanMessage.cs rename to src/Mycelium.Common/SignalR/SecurityScanMessage.cs index 48e843c..48c7438 100644 --- a/src/Sentinel.Common/SignalR/SecurityScanMessage.cs +++ b/src/Mycelium.Common/SignalR/SecurityScanMessage.cs @@ -1,3 +1,3 @@ -namespace Sentinel.Common.SignalR; +namespace Mycelium.Common.SignalR; public sealed record SecurityScanMessage; \ No newline at end of file diff --git a/src/Sentinel.WorkerService.Common/Api/AuthenticationDelegatingHandler.cs b/src/Mycelium.WorkerService.Common/Api/AuthenticationDelegatingHandler.cs similarity index 90% rename from src/Sentinel.WorkerService.Common/Api/AuthenticationDelegatingHandler.cs rename to src/Mycelium.WorkerService.Common/Api/AuthenticationDelegatingHandler.cs index 313f1ad..1a7b736 100644 --- a/src/Sentinel.WorkerService.Common/Api/AuthenticationDelegatingHandler.cs +++ b/src/Mycelium.WorkerService.Common/Api/AuthenticationDelegatingHandler.cs @@ -1,13 +1,13 @@ -using System.Net; +using System.Net; using System.Net.Http.Headers; using System.Text; using System.Text.Json; using Microsoft.Extensions.Configuration; -using Sentinel.WorkerService.Common.Api.Extensions; -using Sentinel.WorkerService.Common.DTO; -using Sentinel.WorkerService.Common.Services.Interfaces; +using Mycelium.WorkerService.Common.Api.Extensions; +using Mycelium.WorkerService.Common.DTO; +using Mycelium.WorkerService.Common.Services.Interfaces; -namespace Sentinel.WorkerService.Common.Api; +namespace Mycelium.WorkerService.Common.Api; public class AuthenticationDelegatingHandler(IConfiguration configuration, ICredentialManager credentialManager) : DelegatingHandler { diff --git a/src/Sentinel.WorkerService.Common/Api/AuthenticationHandler.cs b/src/Mycelium.WorkerService.Common/Api/AuthenticationHandler.cs similarity index 73% rename from src/Sentinel.WorkerService.Common/Api/AuthenticationHandler.cs rename to src/Mycelium.WorkerService.Common/Api/AuthenticationHandler.cs index 5eced17..2dd3c44 100644 --- a/src/Sentinel.WorkerService.Common/Api/AuthenticationHandler.cs +++ b/src/Mycelium.WorkerService.Common/Api/AuthenticationHandler.cs @@ -1,10 +1,10 @@ -using Sentinel.WorkerService.Common.Api.Interfaces; -using Sentinel.WorkerService.Common.DTO; -using Sentinel.WorkerService.Common.Services.Interfaces; +using Mycelium.WorkerService.Common.Api.Interfaces; +using Mycelium.WorkerService.Common.DTO; +using Mycelium.WorkerService.Common.Services.Interfaces; -namespace Sentinel.WorkerService.Common.Api; +namespace Mycelium.WorkerService.Common.Api; -public class AuthenticationHandler(SentinelApiService apiService, ICredentialManager credentialManager) +public class AuthenticationHandler(MyceliumApiService apiService, ICredentialManager credentialManager) : IAuthenticationHandler { public async Task EnsureAuthenticatedAsync(Guid organisationHash, string name, diff --git a/src/Sentinel.WorkerService.Common/Api/Extensions/HttpClientExtensions.cs b/src/Mycelium.WorkerService.Common/Api/Extensions/HttpClientExtensions.cs similarity index 91% rename from src/Sentinel.WorkerService.Common/Api/Extensions/HttpClientExtensions.cs rename to src/Mycelium.WorkerService.Common/Api/Extensions/HttpClientExtensions.cs index 4d35052..d2ab528 100644 --- a/src/Sentinel.WorkerService.Common/Api/Extensions/HttpClientExtensions.cs +++ b/src/Mycelium.WorkerService.Common/Api/Extensions/HttpClientExtensions.cs @@ -1,7 +1,7 @@ -using System.Text; +using System.Text; using System.Text.Json; -namespace Sentinel.WorkerService.Common.Api.Extensions; +namespace Mycelium.WorkerService.Common.Api.Extensions; public static class HttpClientExtensions { diff --git a/src/Sentinel.WorkerService.Common/Api/Extensions/HttpContentExtensions.cs b/src/Mycelium.WorkerService.Common/Api/Extensions/HttpContentExtensions.cs similarity index 83% rename from src/Sentinel.WorkerService.Common/Api/Extensions/HttpContentExtensions.cs rename to src/Mycelium.WorkerService.Common/Api/Extensions/HttpContentExtensions.cs index b5fa1b6..2ffa345 100644 --- a/src/Sentinel.WorkerService.Common/Api/Extensions/HttpContentExtensions.cs +++ b/src/Mycelium.WorkerService.Common/Api/Extensions/HttpContentExtensions.cs @@ -1,7 +1,7 @@ -using System.Net.Http.Json; +using System.Net.Http.Json; using System.Text.Json; -namespace Sentinel.WorkerService.Common.Api.Extensions; +namespace Mycelium.WorkerService.Common.Api.Extensions; public static class HttpContentExtensions { diff --git a/src/Sentinel.WorkerService.Common/Api/Interfaces/IAuthenticationHandler.cs b/src/Mycelium.WorkerService.Common/Api/Interfaces/IAuthenticationHandler.cs similarity index 65% rename from src/Sentinel.WorkerService.Common/Api/Interfaces/IAuthenticationHandler.cs rename to src/Mycelium.WorkerService.Common/Api/Interfaces/IAuthenticationHandler.cs index 0aa4dfd..59981f5 100644 --- a/src/Sentinel.WorkerService.Common/Api/Interfaces/IAuthenticationHandler.cs +++ b/src/Mycelium.WorkerService.Common/Api/Interfaces/IAuthenticationHandler.cs @@ -1,6 +1,6 @@ -using Sentinel.WorkerService.Common.DTO; +using Mycelium.WorkerService.Common.DTO; -namespace Sentinel.WorkerService.Common.Api.Interfaces; +namespace Mycelium.WorkerService.Common.Api.Interfaces; public interface IAuthenticationHandler { diff --git a/src/Sentinel.WorkerService.Common/Api/SentinelApiService.cs b/src/Mycelium.WorkerService.Common/Api/SentinelApiService.cs similarity index 83% rename from src/Sentinel.WorkerService.Common/Api/SentinelApiService.cs rename to src/Mycelium.WorkerService.Common/Api/SentinelApiService.cs index de49c09..3477bce 100644 --- a/src/Sentinel.WorkerService.Common/Api/SentinelApiService.cs +++ b/src/Mycelium.WorkerService.Common/Api/SentinelApiService.cs @@ -1,13 +1,13 @@ -using Microsoft.Extensions.Configuration; +using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Logging; -using Sentinel.Common.DTO.Device; -using Sentinel.Common.DTO.Device.Information; -using Sentinel.WorkerService.Common.Api.Extensions; -using Sentinel.WorkerService.Common.DTO; +using Mycelium.Common.DTO.Device; +using Mycelium.Common.DTO.Device.Information; +using Mycelium.WorkerService.Common.Api.Extensions; +using Mycelium.WorkerService.Common.DTO; -namespace Sentinel.WorkerService.Common.Api; +namespace Mycelium.WorkerService.Common.Api; -public class SentinelApiService(HttpClient client, IConfiguration configuration, ILogger logger) +public class MyceliumApiService(HttpClient client, IConfiguration configuration, ILogger logger) { public async Task RegisterDeviceAsync(Guid organisationHash, string name, CancellationToken cancellationToken) { diff --git a/src/Sentinel.WorkerService.Common/Consumer/ConsumerBase.cs b/src/Mycelium.WorkerService.Common/Consumer/ConsumerBase.cs similarity index 85% rename from src/Sentinel.WorkerService.Common/Consumer/ConsumerBase.cs rename to src/Mycelium.WorkerService.Common/Consumer/ConsumerBase.cs index d6dfb52..4ecb662 100644 --- a/src/Sentinel.WorkerService.Common/Consumer/ConsumerBase.cs +++ b/src/Mycelium.WorkerService.Common/Consumer/ConsumerBase.cs @@ -1,10 +1,10 @@ using Microsoft.AspNetCore.SignalR.Client; using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -using Sentinel.WorkerService.Common.Consumer.Interfaces; -using Sentinel.WorkerService.Common.Module.Interfaces; +using Mycelium.WorkerService.Common.Consumer.Interfaces; +using Mycelium.WorkerService.Common.Module.Interfaces; -namespace Sentinel.WorkerService.Common.Consumer; +namespace Mycelium.WorkerService.Common.Consumer; public abstract class ConsumerBase : IHostedService, IModule { diff --git a/src/Sentinel.WorkerService.Common/Consumer/ConsumerConfig.cs b/src/Mycelium.WorkerService.Common/Consumer/ConsumerConfig.cs similarity index 58% rename from src/Sentinel.WorkerService.Common/Consumer/ConsumerConfig.cs rename to src/Mycelium.WorkerService.Common/Consumer/ConsumerConfig.cs index b744a3f..09b29d4 100644 --- a/src/Sentinel.WorkerService.Common/Consumer/ConsumerConfig.cs +++ b/src/Mycelium.WorkerService.Common/Consumer/ConsumerConfig.cs @@ -1,7 +1,7 @@ using Microsoft.AspNetCore.SignalR.Client; -using Sentinel.WorkerService.Common.Consumer.Interfaces; +using Mycelium.WorkerService.Common.Consumer.Interfaces; -namespace Sentinel.WorkerService.Common.Consumer; +namespace Mycelium.WorkerService.Common.Consumer; public class ConsumerConfig : IConsumerConfig { diff --git a/src/Sentinel.WorkerService.Common/Consumer/Interfaces/IConsumerConfig.cs b/src/Mycelium.WorkerService.Common/Consumer/Interfaces/IConsumerConfig.cs similarity index 67% rename from src/Sentinel.WorkerService.Common/Consumer/Interfaces/IConsumerConfig.cs rename to src/Mycelium.WorkerService.Common/Consumer/Interfaces/IConsumerConfig.cs index 9490dc2..0392317 100644 --- a/src/Sentinel.WorkerService.Common/Consumer/Interfaces/IConsumerConfig.cs +++ b/src/Mycelium.WorkerService.Common/Consumer/Interfaces/IConsumerConfig.cs @@ -1,6 +1,6 @@ using Microsoft.AspNetCore.SignalR.Client; -namespace Sentinel.WorkerService.Common.Consumer.Interfaces; +namespace Mycelium.WorkerService.Common.Consumer.Interfaces; public interface IConsumerConfig { diff --git a/src/Sentinel.WorkerService.Common/DTO/DeviceRegistrationResponse.cs b/src/Mycelium.WorkerService.Common/DTO/DeviceRegistrationResponse.cs similarity index 82% rename from src/Sentinel.WorkerService.Common/DTO/DeviceRegistrationResponse.cs rename to src/Mycelium.WorkerService.Common/DTO/DeviceRegistrationResponse.cs index 475efa7..c5502e4 100644 --- a/src/Sentinel.WorkerService.Common/DTO/DeviceRegistrationResponse.cs +++ b/src/Mycelium.WorkerService.Common/DTO/DeviceRegistrationResponse.cs @@ -1,4 +1,4 @@ -namespace Sentinel.WorkerService.Common.DTO; +namespace Mycelium.WorkerService.Common.DTO; public class DeviceRegistrationResponse { diff --git a/src/Sentinel.WorkerService.Common/DTO/DeviceTokenResponse.cs b/src/Mycelium.WorkerService.Common/DTO/DeviceTokenResponse.cs similarity index 75% rename from src/Sentinel.WorkerService.Common/DTO/DeviceTokenResponse.cs rename to src/Mycelium.WorkerService.Common/DTO/DeviceTokenResponse.cs index a390190..44dfcb4 100644 --- a/src/Sentinel.WorkerService.Common/DTO/DeviceTokenResponse.cs +++ b/src/Mycelium.WorkerService.Common/DTO/DeviceTokenResponse.cs @@ -1,4 +1,4 @@ -namespace Sentinel.WorkerService.Common.DTO; +namespace Mycelium.WorkerService.Common.DTO; public class DeviceTokenResponse { diff --git a/src/Sentinel.WorkerService.Common/Helpers/Kernel32Helper.cs b/src/Mycelium.WorkerService.Common/Helpers/Kernel32Helper.cs similarity index 70% rename from src/Sentinel.WorkerService.Common/Helpers/Kernel32Helper.cs rename to src/Mycelium.WorkerService.Common/Helpers/Kernel32Helper.cs index e2b312d..19f135a 100644 --- a/src/Sentinel.WorkerService.Common/Helpers/Kernel32Helper.cs +++ b/src/Mycelium.WorkerService.Common/Helpers/Kernel32Helper.cs @@ -1,6 +1,6 @@ -using System.Runtime.InteropServices; +using System.Runtime.InteropServices; -namespace Sentinel.WorkerService.Common.Helpers; +namespace Mycelium.WorkerService.Common.Helpers; public static class Kernel32Helper { diff --git a/src/Sentinel.WorkerService.Common/Helpers/ProcessHelper.cs b/src/Mycelium.WorkerService.Common/Helpers/ProcessHelper.cs similarity index 89% rename from src/Sentinel.WorkerService.Common/Helpers/ProcessHelper.cs rename to src/Mycelium.WorkerService.Common/Helpers/ProcessHelper.cs index 61bf212..0716223 100644 --- a/src/Sentinel.WorkerService.Common/Helpers/ProcessHelper.cs +++ b/src/Mycelium.WorkerService.Common/Helpers/ProcessHelper.cs @@ -1,6 +1,6 @@ -using System.Diagnostics; +using System.Diagnostics; -namespace Sentinel.WorkerService.Common.Helpers; +namespace Mycelium.WorkerService.Common.Helpers; public static class ProcessHelper { diff --git a/src/Mycelium.WorkerService.Common/Module/Interfaces/IModule.cs b/src/Mycelium.WorkerService.Common/Module/Interfaces/IModule.cs new file mode 100644 index 0000000..db527b2 --- /dev/null +++ b/src/Mycelium.WorkerService.Common/Module/Interfaces/IModule.cs @@ -0,0 +1,3 @@ +namespace Mycelium.WorkerService.Common.Module.Interfaces; + +public interface IModule; \ No newline at end of file diff --git a/src/Sentinel.WorkerService.Common/Module/Interfaces/IScheduledModuleConfig.cs b/src/Mycelium.WorkerService.Common/Module/Interfaces/IScheduledModuleConfig.cs similarity index 68% rename from src/Sentinel.WorkerService.Common/Module/Interfaces/IScheduledModuleConfig.cs rename to src/Mycelium.WorkerService.Common/Module/Interfaces/IScheduledModuleConfig.cs index aee3dab..13da18d 100644 --- a/src/Sentinel.WorkerService.Common/Module/Interfaces/IScheduledModuleConfig.cs +++ b/src/Mycelium.WorkerService.Common/Module/Interfaces/IScheduledModuleConfig.cs @@ -1,4 +1,4 @@ -namespace Sentinel.WorkerService.Common.Module.Interfaces; +namespace Mycelium.WorkerService.Common.Module.Interfaces; // ReSharper disable once UnusedTypeParameter public interface IScheduledModuleConfig diff --git a/src/Sentinel.WorkerService.Common/Module/Interfaces/IStartupModule.cs b/src/Mycelium.WorkerService.Common/Module/Interfaces/IStartupModule.cs similarity index 63% rename from src/Sentinel.WorkerService.Common/Module/Interfaces/IStartupModule.cs rename to src/Mycelium.WorkerService.Common/Module/Interfaces/IStartupModule.cs index 5e4d7ec..e5995af 100644 --- a/src/Sentinel.WorkerService.Common/Module/Interfaces/IStartupModule.cs +++ b/src/Mycelium.WorkerService.Common/Module/Interfaces/IStartupModule.cs @@ -1,4 +1,4 @@ -namespace Sentinel.WorkerService.Common.Module.Interfaces; +namespace Mycelium.WorkerService.Common.Module.Interfaces; public interface IStartupModule : IModule { diff --git a/src/Sentinel.WorkerService.Common/Module/ScheduledModuleBase.cs b/src/Mycelium.WorkerService.Common/Module/ScheduledModuleBase.cs similarity index 93% rename from src/Sentinel.WorkerService.Common/Module/ScheduledModuleBase.cs rename to src/Mycelium.WorkerService.Common/Module/ScheduledModuleBase.cs index 34e5031..5f16223 100644 --- a/src/Sentinel.WorkerService.Common/Module/ScheduledModuleBase.cs +++ b/src/Mycelium.WorkerService.Common/Module/ScheduledModuleBase.cs @@ -1,9 +1,9 @@ -using Microsoft.Extensions.Hosting; +using Microsoft.Extensions.Hosting; using Microsoft.Extensions.Logging; -using Sentinel.WorkerService.Common.Module.Interfaces; +using Mycelium.WorkerService.Common.Module.Interfaces; using Timer = System.Timers.Timer; -namespace Sentinel.WorkerService.Common.Module; +namespace Mycelium.WorkerService.Common.Module; public abstract class ScheduledModuleBase(ILogger logger, IScheduledModuleConfig config, bool runImmediately = false) : IHostedService, IModule { diff --git a/src/Sentinel.WorkerService.Common/Module/ScheduledModuleConfig.cs b/src/Mycelium.WorkerService.Common/Module/ScheduledModuleConfig.cs similarity index 51% rename from src/Sentinel.WorkerService.Common/Module/ScheduledModuleConfig.cs rename to src/Mycelium.WorkerService.Common/Module/ScheduledModuleConfig.cs index 92c75f9..7afaaf2 100644 --- a/src/Sentinel.WorkerService.Common/Module/ScheduledModuleConfig.cs +++ b/src/Mycelium.WorkerService.Common/Module/ScheduledModuleConfig.cs @@ -1,6 +1,6 @@ -using Sentinel.WorkerService.Common.Module.Interfaces; +using Mycelium.WorkerService.Common.Module.Interfaces; -namespace Sentinel.WorkerService.Common.Module; +namespace Mycelium.WorkerService.Common.Module; public class ScheduledModuleConfig : IScheduledModuleConfig { diff --git a/src/Sentinel.WorkerService.Common/Sentinel.WorkerService.Common.csproj b/src/Mycelium.WorkerService.Common/Mycelium.WorkerService.Common.csproj similarity index 86% rename from src/Sentinel.WorkerService.Common/Sentinel.WorkerService.Common.csproj rename to src/Mycelium.WorkerService.Common/Mycelium.WorkerService.Common.csproj index 02035cd..fb6a4b6 100644 --- a/src/Sentinel.WorkerService.Common/Sentinel.WorkerService.Common.csproj +++ b/src/Mycelium.WorkerService.Common/Mycelium.WorkerService.Common.csproj @@ -1,4 +1,4 @@ - + net10.0 @@ -17,7 +17,7 @@ - + diff --git a/src/Sentinel.WorkerService.Common/Services/CredentialManager.cs b/src/Mycelium.WorkerService.Common/Services/CredentialManager.cs similarity index 89% rename from src/Sentinel.WorkerService.Common/Services/CredentialManager.cs rename to src/Mycelium.WorkerService.Common/Services/CredentialManager.cs index 977e689..253a65e 100644 --- a/src/Sentinel.WorkerService.Common/Services/CredentialManager.cs +++ b/src/Mycelium.WorkerService.Common/Services/CredentialManager.cs @@ -1,9 +1,9 @@ -using System.Text.Json; +using System.Text.Json; using Microsoft.Extensions.Configuration; -using Sentinel.WorkerService.Common.DTO; -using Sentinel.WorkerService.Common.Services.Interfaces; +using Mycelium.WorkerService.Common.DTO; +using Mycelium.WorkerService.Common.Services.Interfaces; -namespace Sentinel.WorkerService.Common.Services; +namespace Mycelium.WorkerService.Common.Services; public class CredentialManager(IConfiguration configuration) : ICredentialManager { diff --git a/src/Sentinel.WorkerService.Common/Services/Interfaces/ICredentialManager.cs b/src/Mycelium.WorkerService.Common/Services/Interfaces/ICredentialManager.cs similarity index 72% rename from src/Sentinel.WorkerService.Common/Services/Interfaces/ICredentialManager.cs rename to src/Mycelium.WorkerService.Common/Services/Interfaces/ICredentialManager.cs index dfd1ec3..fc61af0 100644 --- a/src/Sentinel.WorkerService.Common/Services/Interfaces/ICredentialManager.cs +++ b/src/Mycelium.WorkerService.Common/Services/Interfaces/ICredentialManager.cs @@ -1,6 +1,6 @@ -using Sentinel.WorkerService.Common.DTO; +using Mycelium.WorkerService.Common.DTO; -namespace Sentinel.WorkerService.Common.Services.Interfaces; +namespace Mycelium.WorkerService.Common.Services.Interfaces; public interface ICredentialManager { diff --git a/src/Mycelium.WorkerService.Core.Linux/Mycelium.WorkerService.Core.Linux.csproj b/src/Mycelium.WorkerService.Core.Linux/Mycelium.WorkerService.Core.Linux.csproj new file mode 100644 index 0000000..4c246e7 --- /dev/null +++ b/src/Mycelium.WorkerService.Core.Linux/Mycelium.WorkerService.Core.Linux.csproj @@ -0,0 +1,14 @@ + + + + net10.0 + enable + enable + Mycelium.WorkerService.Core.Linux + + + + + + + diff --git a/src/Sentinel.WorkerService.Core.Linux/SecurityScan/LinuxSecurity.cs b/src/Mycelium.WorkerService.Core.Linux/SecurityScan/LinuxSecurity.cs similarity index 61% rename from src/Sentinel.WorkerService.Core.Linux/SecurityScan/LinuxSecurity.cs rename to src/Mycelium.WorkerService.Core.Linux/SecurityScan/LinuxSecurity.cs index 41c11d1..7d48e89 100644 --- a/src/Sentinel.WorkerService.Core.Linux/SecurityScan/LinuxSecurity.cs +++ b/src/Mycelium.WorkerService.Core.Linux/SecurityScan/LinuxSecurity.cs @@ -1,6 +1,6 @@ -using Sentinel.WorkerService.Core.SecurityScan; +using Mycelium.WorkerService.Core.SecurityScan; -namespace Sentinel.WorkerService.Core.Linux.SecurityScan; +namespace Mycelium.WorkerService.Core.Linux.SecurityScan; public class LinuxSecurity : ISecurityScanner { diff --git a/src/Mycelium.WorkerService.Core.Linux/ServiceCollectionExtensions.cs b/src/Mycelium.WorkerService.Core.Linux/ServiceCollectionExtensions.cs new file mode 100644 index 0000000..803db20 --- /dev/null +++ b/src/Mycelium.WorkerService.Core.Linux/ServiceCollectionExtensions.cs @@ -0,0 +1,20 @@ +using Microsoft.Extensions.DependencyInjection; +using Mycelium.WorkerService.Core.Linux.SecurityScan; +using Mycelium.WorkerService.Core.Linux.TimeSync; +using Mycelium.WorkerService.Core.SecurityScan; +using Mycelium.WorkerService.Core.TimeSync; +using Mycelium.WorkerService.RemoteAccess.Services; +using Mycelium.WorkerService.RemoteAccess.Services.Interfaces; + +namespace Mycelium.WorkerService.Core.Linux; + +public static class ServiceCollectionExtensions +{ + public static void AddLinuxCoreDependencies(this IServiceCollection services) + { + services.AddSingleton(); + services.AddSingleton(); + services.AddSingleton(); + + } +} \ No newline at end of file diff --git a/src/Sentinel.WorkerService.Core.Linux/TimeSync/LinuxTimeSync.cs b/src/Mycelium.WorkerService.Core.Linux/TimeSync/LinuxTimeSync.cs similarity index 57% rename from src/Sentinel.WorkerService.Core.Linux/TimeSync/LinuxTimeSync.cs rename to src/Mycelium.WorkerService.Core.Linux/TimeSync/LinuxTimeSync.cs index d15be0d..4f32ede 100644 --- a/src/Sentinel.WorkerService.Core.Linux/TimeSync/LinuxTimeSync.cs +++ b/src/Mycelium.WorkerService.Core.Linux/TimeSync/LinuxTimeSync.cs @@ -1,6 +1,6 @@ -using Sentinel.WorkerService.Core.TimeSync; +using Mycelium.WorkerService.Core.TimeSync; -namespace Sentinel.WorkerService.Core.Linux.TimeSync; +namespace Mycelium.WorkerService.Core.Linux.TimeSync; public class LinuxTimeSync : ITimeSynchronizer { diff --git a/src/Sentinel.WorkerService.Core.Windows/DeviceInformation/DeviceInformationRetriever.cs b/src/Mycelium.WorkerService.Core.Windows/DeviceInformation/DeviceInformationRetriever.cs similarity index 85% rename from src/Sentinel.WorkerService.Core.Windows/DeviceInformation/DeviceInformationRetriever.cs rename to src/Mycelium.WorkerService.Core.Windows/DeviceInformation/DeviceInformationRetriever.cs index f7780d6..f9fa261 100644 --- a/src/Sentinel.WorkerService.Core.Windows/DeviceInformation/DeviceInformationRetriever.cs +++ b/src/Mycelium.WorkerService.Core.Windows/DeviceInformation/DeviceInformationRetriever.cs @@ -1,9 +1,9 @@ -using System.Management; -using Sentinel.Common.DTO.Device.Information; -using Sentinel.WorkerService.Common.Helpers; -using Sentinel.WorkerService.Core.DeviceInformation.Interfaces; +using System.Management; +using Mycelium.Common.DTO.Device.Information; +using Mycelium.WorkerService.Common.Helpers; +using Mycelium.WorkerService.Core.DeviceInformation.Interfaces; -namespace Sentinel.WorkerService.Core.Windows.DeviceInformation; +namespace Mycelium.WorkerService.Core.Windows.DeviceInformation; #pragma warning disable CA1416 public class DeviceInformationRetriever : IDeviceInformationRetriever diff --git a/src/Sentinel.WorkerService.Core.Windows/DeviceInformation/FirewallSettingsRetriever.cs b/src/Mycelium.WorkerService.Core.Windows/DeviceInformation/FirewallSettingsRetriever.cs similarity index 84% rename from src/Sentinel.WorkerService.Core.Windows/DeviceInformation/FirewallSettingsRetriever.cs rename to src/Mycelium.WorkerService.Core.Windows/DeviceInformation/FirewallSettingsRetriever.cs index eca9383..5e0750d 100644 --- a/src/Sentinel.WorkerService.Core.Windows/DeviceInformation/FirewallSettingsRetriever.cs +++ b/src/Mycelium.WorkerService.Core.Windows/DeviceInformation/FirewallSettingsRetriever.cs @@ -1,8 +1,8 @@ -using System.Management; -using Sentinel.Common.DTO.Device; -using Sentinel.WorkerService.Core.Windows.DeviceInformation.Interfaces; +using System.Management; +using Mycelium.Common.DTO.Device; +using Mycelium.WorkerService.Core.Windows.DeviceInformation.Interfaces; -namespace Sentinel.WorkerService.Core.Windows.DeviceInformation; +namespace Mycelium.WorkerService.Core.Windows.DeviceInformation; #pragma warning disable CA1416 public class FirewallSettingsRetriever : IFirewallSettingsRetriever diff --git a/src/Sentinel.WorkerService.Core.Windows/DeviceInformation/Interfaces/IFirewallSettingsRetriever.cs b/src/Mycelium.WorkerService.Core.Windows/DeviceInformation/Interfaces/IFirewallSettingsRetriever.cs similarity index 50% rename from src/Sentinel.WorkerService.Core.Windows/DeviceInformation/Interfaces/IFirewallSettingsRetriever.cs rename to src/Mycelium.WorkerService.Core.Windows/DeviceInformation/Interfaces/IFirewallSettingsRetriever.cs index 14b200f..8b46a27 100644 --- a/src/Sentinel.WorkerService.Core.Windows/DeviceInformation/Interfaces/IFirewallSettingsRetriever.cs +++ b/src/Mycelium.WorkerService.Core.Windows/DeviceInformation/Interfaces/IFirewallSettingsRetriever.cs @@ -1,6 +1,6 @@ -using Sentinel.Common.DTO.Device; +using Mycelium.Common.DTO.Device; -namespace Sentinel.WorkerService.Core.Windows.DeviceInformation.Interfaces; +namespace Mycelium.WorkerService.Core.Windows.DeviceInformation.Interfaces; public interface IFirewallSettingsRetriever { diff --git a/src/Sentinel.WorkerService.Core.Windows/DeviceInformation/SecurityInformationRetriever.cs b/src/Mycelium.WorkerService.Core.Windows/DeviceInformation/SecurityInformationRetriever.cs similarity index 89% rename from src/Sentinel.WorkerService.Core.Windows/DeviceInformation/SecurityInformationRetriever.cs rename to src/Mycelium.WorkerService.Core.Windows/DeviceInformation/SecurityInformationRetriever.cs index ca006e0..b21c31b 100644 --- a/src/Sentinel.WorkerService.Core.Windows/DeviceInformation/SecurityInformationRetriever.cs +++ b/src/Mycelium.WorkerService.Core.Windows/DeviceInformation/SecurityInformationRetriever.cs @@ -1,10 +1,10 @@ -using System.Globalization; +using System.Globalization; using System.Management; -using Sentinel.Common.DTO.Device; -using Sentinel.WorkerService.Core.DeviceInformation.Interfaces; -using Sentinel.WorkerService.Core.Windows.DeviceInformation.Interfaces; +using Mycelium.Common.DTO.Device; +using Mycelium.WorkerService.Core.DeviceInformation.Interfaces; +using Mycelium.WorkerService.Core.Windows.DeviceInformation.Interfaces; -namespace Sentinel.WorkerService.Core.Windows.DeviceInformation; +namespace Mycelium.WorkerService.Core.Windows.DeviceInformation; #pragma warning disable CA1416 public class SecurityInformationRetriever(IFirewallSettingsRetriever firewallSettingsRetriever) : ISecurityInformationRetriever diff --git a/src/Sentinel.WorkerService.Core.Windows/DeviceInformation/SoftwareInformationRetriever.cs b/src/Mycelium.WorkerService.Core.Windows/DeviceInformation/SoftwareInformationRetriever.cs similarity index 76% rename from src/Sentinel.WorkerService.Core.Windows/DeviceInformation/SoftwareInformationRetriever.cs rename to src/Mycelium.WorkerService.Core.Windows/DeviceInformation/SoftwareInformationRetriever.cs index c68c20c..5b4aa77 100644 --- a/src/Sentinel.WorkerService.Core.Windows/DeviceInformation/SoftwareInformationRetriever.cs +++ b/src/Mycelium.WorkerService.Core.Windows/DeviceInformation/SoftwareInformationRetriever.cs @@ -1,8 +1,8 @@ -using System.Management; -using Sentinel.Common.DTO.Device; -using Sentinel.WorkerService.Core.DeviceInformation.Interfaces; +using System.Management; +using Mycelium.Common.DTO.Device; +using Mycelium.WorkerService.Core.DeviceInformation.Interfaces; -namespace Sentinel.WorkerService.Core.Windows.DeviceInformation; +namespace Mycelium.WorkerService.Core.Windows.DeviceInformation; #pragma warning disable CA1416 public class SoftwareInformationRetriever : ISoftwareInformationRetriever diff --git a/src/Sentinel.WorkerService.Core.Windows/DeviceInformation/StorageInformationRetriever.cs b/src/Mycelium.WorkerService.Core.Windows/DeviceInformation/StorageInformationRetriever.cs similarity index 76% rename from src/Sentinel.WorkerService.Core.Windows/DeviceInformation/StorageInformationRetriever.cs rename to src/Mycelium.WorkerService.Core.Windows/DeviceInformation/StorageInformationRetriever.cs index 80bdd97..f0d7053 100644 --- a/src/Sentinel.WorkerService.Core.Windows/DeviceInformation/StorageInformationRetriever.cs +++ b/src/Mycelium.WorkerService.Core.Windows/DeviceInformation/StorageInformationRetriever.cs @@ -1,7 +1,7 @@ -using Sentinel.Common.DTO.Device; -using Sentinel.WorkerService.Core.DeviceInformation.Interfaces; +using Mycelium.Common.DTO.Device; +using Mycelium.WorkerService.Core.DeviceInformation.Interfaces; -namespace Sentinel.WorkerService.Core.Windows.DeviceInformation; +namespace Mycelium.WorkerService.Core.Windows.DeviceInformation; public class StorageInformationRetriever : IStorageInformationRetriever { diff --git a/src/Mycelium.WorkerService.Core.Windows/Mycelium.WorkerService.Core.Windows.csproj b/src/Mycelium.WorkerService.Core.Windows/Mycelium.WorkerService.Core.Windows.csproj new file mode 100644 index 0000000..4763034 --- /dev/null +++ b/src/Mycelium.WorkerService.Core.Windows/Mycelium.WorkerService.Core.Windows.csproj @@ -0,0 +1,14 @@ + + + + net10.0 + enable + enable + Mycelium.WorkerService.Core.Windows + + + + + + + diff --git a/src/Sentinel.WorkerService.Core.Windows/SecurityScan/Enums/ScanType.cs b/src/Mycelium.WorkerService.Core.Windows/SecurityScan/Enums/ScanType.cs similarity index 73% rename from src/Sentinel.WorkerService.Core.Windows/SecurityScan/Enums/ScanType.cs rename to src/Mycelium.WorkerService.Core.Windows/SecurityScan/Enums/ScanType.cs index ecdd1fd..11a5a4f 100644 --- a/src/Sentinel.WorkerService.Core.Windows/SecurityScan/Enums/ScanType.cs +++ b/src/Mycelium.WorkerService.Core.Windows/SecurityScan/Enums/ScanType.cs @@ -1,4 +1,4 @@ -namespace Sentinel.WorkerService.Core.Windows.SecurityScan.Enums; +namespace Mycelium.WorkerService.Core.Windows.SecurityScan.Enums; public enum ScanType { diff --git a/src/Sentinel.WorkerService.Core.Windows/SecurityScan/WinDefenderService.cs b/src/Mycelium.WorkerService.Core.Windows/SecurityScan/WinDefenderService.cs similarity index 86% rename from src/Sentinel.WorkerService.Core.Windows/SecurityScan/WinDefenderService.cs rename to src/Mycelium.WorkerService.Core.Windows/SecurityScan/WinDefenderService.cs index 771ff4e..52682f2 100644 --- a/src/Sentinel.WorkerService.Core.Windows/SecurityScan/WinDefenderService.cs +++ b/src/Mycelium.WorkerService.Core.Windows/SecurityScan/WinDefenderService.cs @@ -1,8 +1,8 @@ -using System.Diagnostics; -using Sentinel.WorkerService.Core.SecurityScan; -using Sentinel.WorkerService.Core.Windows.SecurityScan.Enums; +using System.Diagnostics; +using Mycelium.WorkerService.Core.SecurityScan; +using Mycelium.WorkerService.Core.Windows.SecurityScan.Enums; -namespace Sentinel.WorkerService.Core.Windows.SecurityScan; +namespace Mycelium.WorkerService.Core.Windows.SecurityScan; public class WinDefenderService : ISecurityScanner { diff --git a/src/Sentinel.WorkerService.Core.Windows/ServiceCollectionExtensions.cs b/src/Mycelium.WorkerService.Core.Windows/ServiceCollectionExtensions.cs similarity index 58% rename from src/Sentinel.WorkerService.Core.Windows/ServiceCollectionExtensions.cs rename to src/Mycelium.WorkerService.Core.Windows/ServiceCollectionExtensions.cs index 68badd4..80283e9 100644 --- a/src/Sentinel.WorkerService.Core.Windows/ServiceCollectionExtensions.cs +++ b/src/Mycelium.WorkerService.Core.Windows/ServiceCollectionExtensions.cs @@ -1,15 +1,15 @@ -using Microsoft.Extensions.DependencyInjection; -using Sentinel.WorkerService.Core.DeviceInformation.Interfaces; -using Sentinel.WorkerService.Core.SecurityScan; -using Sentinel.WorkerService.Core.TimeSync; -using Sentinel.WorkerService.Core.Windows.DeviceInformation; -using Sentinel.WorkerService.Core.Windows.DeviceInformation.Interfaces; -using Sentinel.WorkerService.Core.Windows.SecurityScan; -using Sentinel.WorkerService.Core.Windows.TimeSync; -using Sentinel.WorkerService.RemoteAccess.Services; -using Sentinel.WorkerService.RemoteAccess.Services.Interfaces; +using Microsoft.Extensions.DependencyInjection; +using Mycelium.WorkerService.Core.DeviceInformation.Interfaces; +using Mycelium.WorkerService.Core.SecurityScan; +using Mycelium.WorkerService.Core.TimeSync; +using Mycelium.WorkerService.Core.Windows.DeviceInformation; +using Mycelium.WorkerService.Core.Windows.DeviceInformation.Interfaces; +using Mycelium.WorkerService.Core.Windows.SecurityScan; +using Mycelium.WorkerService.Core.Windows.TimeSync; +using Mycelium.WorkerService.RemoteAccess.Services; +using Mycelium.WorkerService.RemoteAccess.Services.Interfaces; -namespace Sentinel.WorkerService.Core.Windows; +namespace Mycelium.WorkerService.Core.Windows; public static class ServiceCollectionExtensions { diff --git a/src/Sentinel.WorkerService.Core.Windows/TimeSync/TimeSynchronizer.cs b/src/Mycelium.WorkerService.Core.Windows/TimeSync/TimeSynchronizer.cs similarity index 85% rename from src/Sentinel.WorkerService.Core.Windows/TimeSync/TimeSynchronizer.cs rename to src/Mycelium.WorkerService.Core.Windows/TimeSync/TimeSynchronizer.cs index 0489e6d..e8455e8 100644 --- a/src/Sentinel.WorkerService.Core.Windows/TimeSync/TimeSynchronizer.cs +++ b/src/Mycelium.WorkerService.Core.Windows/TimeSync/TimeSynchronizer.cs @@ -1,7 +1,7 @@ -using Sentinel.WorkerService.Common.Helpers; -using Sentinel.WorkerService.Core.TimeSync; +using Mycelium.WorkerService.Common.Helpers; +using Mycelium.WorkerService.Core.TimeSync; -namespace Sentinel.WorkerService.Core.Windows.TimeSync; +namespace Mycelium.WorkerService.Core.Windows.TimeSync; public class TimeSynchronizer : ITimeSynchronizer { diff --git a/src/Sentinel.WorkerService.Core/DeviceInformation/DeviceInformationModule.cs b/src/Mycelium.WorkerService.Core/DeviceInformation/DeviceInformationModule.cs similarity index 53% rename from src/Sentinel.WorkerService.Core/DeviceInformation/DeviceInformationModule.cs rename to src/Mycelium.WorkerService.Core/DeviceInformation/DeviceInformationModule.cs index 9a1ff9c..29cf667 100644 --- a/src/Sentinel.WorkerService.Core/DeviceInformation/DeviceInformationModule.cs +++ b/src/Mycelium.WorkerService.Core/DeviceInformation/DeviceInformationModule.cs @@ -1,21 +1,21 @@ -using Microsoft.Extensions.Logging; -using Sentinel.WorkerService.Common.Api; -using Sentinel.WorkerService.Common.Module; -using Sentinel.WorkerService.Common.Module.Interfaces; -using Sentinel.WorkerService.Core.DeviceInformation.Interfaces; +using Microsoft.Extensions.Logging; +using Mycelium.WorkerService.Common.Api; +using Mycelium.WorkerService.Common.Module; +using Mycelium.WorkerService.Common.Module.Interfaces; +using Mycelium.WorkerService.Core.DeviceInformation.Interfaces; -namespace Sentinel.WorkerService.Core.DeviceInformation; +namespace Mycelium.WorkerService.Core.DeviceInformation; public class DeviceInformationModule( ILogger logger, IScheduledModuleConfig config, IDeviceInformationRetriever deviceInformationRetriever, - SentinelApiService sentinelApiService) + MyceliumApiService MyceliumApiService) : ScheduledModuleBase(logger, config, runImmediately: true) { public override async Task Execute(CancellationToken cancellationToken) { var deviceInfo = deviceInformationRetriever.Retrieve(); - await sentinelApiService.UpdateDeviceInformationAsync(deviceInfo); + await MyceliumApiService.UpdateDeviceInformationAsync(deviceInfo); } } \ No newline at end of file diff --git a/src/Mycelium.WorkerService.Core/DeviceInformation/Interfaces/IDeviceInformationRetriever.cs b/src/Mycelium.WorkerService.Core/DeviceInformation/Interfaces/IDeviceInformationRetriever.cs new file mode 100644 index 0000000..5795142 --- /dev/null +++ b/src/Mycelium.WorkerService.Core/DeviceInformation/Interfaces/IDeviceInformationRetriever.cs @@ -0,0 +1,8 @@ +using Mycelium.Common.DTO.Device.Information; + +namespace Mycelium.WorkerService.Core.DeviceInformation.Interfaces; + +public interface IDeviceInformationRetriever +{ + public GetDeviceInformationDto Retrieve(); +} \ No newline at end of file diff --git a/src/Sentinel.WorkerService.Core/DeviceInformation/Interfaces/ISecurityInformationRetriever.cs b/src/Mycelium.WorkerService.Core/DeviceInformation/Interfaces/ISecurityInformationRetriever.cs similarity index 50% rename from src/Sentinel.WorkerService.Core/DeviceInformation/Interfaces/ISecurityInformationRetriever.cs rename to src/Mycelium.WorkerService.Core/DeviceInformation/Interfaces/ISecurityInformationRetriever.cs index c9f61cc..6bd1715 100644 --- a/src/Sentinel.WorkerService.Core/DeviceInformation/Interfaces/ISecurityInformationRetriever.cs +++ b/src/Mycelium.WorkerService.Core/DeviceInformation/Interfaces/ISecurityInformationRetriever.cs @@ -1,6 +1,6 @@ -using Sentinel.Common.DTO.Device; +using Mycelium.Common.DTO.Device; -namespace Sentinel.WorkerService.Core.DeviceInformation.Interfaces; +namespace Mycelium.WorkerService.Core.DeviceInformation.Interfaces; public interface ISecurityInformationRetriever { diff --git a/src/Sentinel.WorkerService.Core/DeviceInformation/Interfaces/ISoftwareInformationRetriever.cs b/src/Mycelium.WorkerService.Core/DeviceInformation/Interfaces/ISoftwareInformationRetriever.cs similarity index 50% rename from src/Sentinel.WorkerService.Core/DeviceInformation/Interfaces/ISoftwareInformationRetriever.cs rename to src/Mycelium.WorkerService.Core/DeviceInformation/Interfaces/ISoftwareInformationRetriever.cs index 07a3674..c67ca26 100644 --- a/src/Sentinel.WorkerService.Core/DeviceInformation/Interfaces/ISoftwareInformationRetriever.cs +++ b/src/Mycelium.WorkerService.Core/DeviceInformation/Interfaces/ISoftwareInformationRetriever.cs @@ -1,6 +1,6 @@ -using Sentinel.Common.DTO.Device; +using Mycelium.Common.DTO.Device; -namespace Sentinel.WorkerService.Core.DeviceInformation.Interfaces; +namespace Mycelium.WorkerService.Core.DeviceInformation.Interfaces; public interface ISoftwareInformationRetriever { diff --git a/src/Mycelium.WorkerService.Core/DeviceInformation/Interfaces/IStorageInformationRetriever.cs b/src/Mycelium.WorkerService.Core/DeviceInformation/Interfaces/IStorageInformationRetriever.cs new file mode 100644 index 0000000..37e8fc2 --- /dev/null +++ b/src/Mycelium.WorkerService.Core/DeviceInformation/Interfaces/IStorageInformationRetriever.cs @@ -0,0 +1,8 @@ +using Mycelium.Common.DTO.Device; + +namespace Mycelium.WorkerService.Core.DeviceInformation.Interfaces; + +public interface IStorageInformationRetriever +{ + public StorageInformationDto Retrieve(); +} \ No newline at end of file diff --git a/src/Sentinel.WorkerService.Core/DeviceInformation/SecurityInformationModule.cs b/src/Mycelium.WorkerService.Core/DeviceInformation/SecurityInformationModule.cs similarity index 54% rename from src/Sentinel.WorkerService.Core/DeviceInformation/SecurityInformationModule.cs rename to src/Mycelium.WorkerService.Core/DeviceInformation/SecurityInformationModule.cs index 16c45bf..9335e20 100644 --- a/src/Sentinel.WorkerService.Core/DeviceInformation/SecurityInformationModule.cs +++ b/src/Mycelium.WorkerService.Core/DeviceInformation/SecurityInformationModule.cs @@ -1,21 +1,21 @@ -using Microsoft.Extensions.Logging; -using Sentinel.WorkerService.Common.Api; -using Sentinel.WorkerService.Common.Module; -using Sentinel.WorkerService.Common.Module.Interfaces; -using Sentinel.WorkerService.Core.DeviceInformation.Interfaces; +using Microsoft.Extensions.Logging; +using Mycelium.WorkerService.Common.Api; +using Mycelium.WorkerService.Common.Module; +using Mycelium.WorkerService.Common.Module.Interfaces; +using Mycelium.WorkerService.Core.DeviceInformation.Interfaces; -namespace Sentinel.WorkerService.Core.DeviceInformation; +namespace Mycelium.WorkerService.Core.DeviceInformation; public class SecurityInformationModule( ILogger logger, IScheduledModuleConfig config, ISecurityInformationRetriever securityInformationRetriever, - SentinelApiService sentinelApiService) + MyceliumApiService MyceliumApiService) : ScheduledModuleBase(logger, config, runImmediately: true) { public override async Task Execute(CancellationToken cancellationToken) { var securityInfo = securityInformationRetriever.Retrieve(); - await sentinelApiService.UpdateSecurityInformationAsync(securityInfo); + await MyceliumApiService.UpdateSecurityInformationAsync(securityInfo); } } \ No newline at end of file diff --git a/src/Sentinel.WorkerService.Core/DeviceInformation/SoftwareInformationModule.cs b/src/Mycelium.WorkerService.Core/DeviceInformation/SoftwareInformationModule.cs similarity index 52% rename from src/Sentinel.WorkerService.Core/DeviceInformation/SoftwareInformationModule.cs rename to src/Mycelium.WorkerService.Core/DeviceInformation/SoftwareInformationModule.cs index be61949..896751c 100644 --- a/src/Sentinel.WorkerService.Core/DeviceInformation/SoftwareInformationModule.cs +++ b/src/Mycelium.WorkerService.Core/DeviceInformation/SoftwareInformationModule.cs @@ -1,21 +1,21 @@ -using Microsoft.Extensions.Logging; -using Sentinel.WorkerService.Common.Api; -using Sentinel.WorkerService.Common.Module; -using Sentinel.WorkerService.Common.Module.Interfaces; -using Sentinel.WorkerService.Core.DeviceInformation.Interfaces; +using Microsoft.Extensions.Logging; +using Mycelium.WorkerService.Common.Api; +using Mycelium.WorkerService.Common.Module; +using Mycelium.WorkerService.Common.Module.Interfaces; +using Mycelium.WorkerService.Core.DeviceInformation.Interfaces; -namespace Sentinel.WorkerService.Core.DeviceInformation; +namespace Mycelium.WorkerService.Core.DeviceInformation; public class SoftwareInformationModule( ILogger logger, IScheduledModuleConfig config, ISoftwareInformationRetriever softwareInformationRetriever, - SentinelApiService sentinelApiService) + MyceliumApiService MyceliumApiService) : ScheduledModuleBase(logger, config) { public override async Task Execute(CancellationToken cancellationToken) { var softwareInfo = softwareInformationRetriever.Retrieve(); - await sentinelApiService.UpdateSoftwareInformationAsync(softwareInfo); + await MyceliumApiService.UpdateSoftwareInformationAsync(softwareInfo); } } \ No newline at end of file diff --git a/src/Sentinel.WorkerService.Core/DeviceInformation/StorageInformationModule.cs b/src/Mycelium.WorkerService.Core/DeviceInformation/StorageInformationModule.cs similarity index 52% rename from src/Sentinel.WorkerService.Core/DeviceInformation/StorageInformationModule.cs rename to src/Mycelium.WorkerService.Core/DeviceInformation/StorageInformationModule.cs index 24c3d6e..019afe6 100644 --- a/src/Sentinel.WorkerService.Core/DeviceInformation/StorageInformationModule.cs +++ b/src/Mycelium.WorkerService.Core/DeviceInformation/StorageInformationModule.cs @@ -1,21 +1,21 @@ -using Microsoft.Extensions.Logging; -using Sentinel.WorkerService.Common.Api; -using Sentinel.WorkerService.Common.Module; -using Sentinel.WorkerService.Common.Module.Interfaces; -using Sentinel.WorkerService.Core.DeviceInformation.Interfaces; +using Microsoft.Extensions.Logging; +using Mycelium.WorkerService.Common.Api; +using Mycelium.WorkerService.Common.Module; +using Mycelium.WorkerService.Common.Module.Interfaces; +using Mycelium.WorkerService.Core.DeviceInformation.Interfaces; -namespace Sentinel.WorkerService.Core.DeviceInformation; +namespace Mycelium.WorkerService.Core.DeviceInformation; public class StorageInformationModule( ILogger logger, IScheduledModuleConfig config, IStorageInformationRetriever storageInformationRetriever, - SentinelApiService sentinelApiService) + MyceliumApiService MyceliumApiService) : ScheduledModuleBase(logger, config) { public override async Task Execute(CancellationToken cancellationToken) { var storageInfo = storageInformationRetriever.Retrieve(); - await sentinelApiService.UpdateStorageInformationAsync(storageInfo); + await MyceliumApiService.UpdateStorageInformationAsync(storageInfo); } } \ No newline at end of file diff --git a/src/Sentinel.WorkerService.Core/Sentinel.WorkerService.Core.csproj b/src/Mycelium.WorkerService.Core/Mycelium.WorkerService.Core.csproj similarity index 60% rename from src/Sentinel.WorkerService.Core/Sentinel.WorkerService.Core.csproj rename to src/Mycelium.WorkerService.Core/Mycelium.WorkerService.Core.csproj index ae18086..f8909dc 100644 --- a/src/Sentinel.WorkerService.Core/Sentinel.WorkerService.Core.csproj +++ b/src/Mycelium.WorkerService.Core/Mycelium.WorkerService.Core.csproj @@ -1,10 +1,10 @@ - + net10.0 enable enable - Sentinel.WorkerService.Core + Mycelium.WorkerService.Core @@ -13,8 +13,8 @@ - - + + diff --git a/src/Mycelium.WorkerService.Core/Ping/PingModule.cs b/src/Mycelium.WorkerService.Core/Ping/PingModule.cs new file mode 100644 index 0000000..58f0fcb --- /dev/null +++ b/src/Mycelium.WorkerService.Core/Ping/PingModule.cs @@ -0,0 +1,15 @@ +using Microsoft.Extensions.Logging; +using Mycelium.WorkerService.Common.Api; +using Mycelium.WorkerService.Common.Module; +using Mycelium.WorkerService.Common.Module.Interfaces; + +namespace Mycelium.WorkerService.Core.Ping; + +public class PingModule(ILogger logger, IScheduledModuleConfig config, MyceliumApiService MyceliumApiService) + : ScheduledModuleBase(logger, config, true) +{ + public override async Task Execute(CancellationToken cancellationToken) + { + await MyceliumApiService.PingAsync(); + } +} \ No newline at end of file diff --git a/src/Sentinel.WorkerService.Core/RestartDevice/RestartDeviceModule.cs b/src/Mycelium.WorkerService.Core/RestartDevice/RestartDeviceModule.cs similarity index 66% rename from src/Sentinel.WorkerService.Core/RestartDevice/RestartDeviceModule.cs rename to src/Mycelium.WorkerService.Core/RestartDevice/RestartDeviceModule.cs index c7de8f2..fffa550 100644 --- a/src/Sentinel.WorkerService.Core/RestartDevice/RestartDeviceModule.cs +++ b/src/Mycelium.WorkerService.Core/RestartDevice/RestartDeviceModule.cs @@ -1,9 +1,9 @@ -using Microsoft.Extensions.Logging; -using Sentinel.Common.SignalR; -using Sentinel.WorkerService.Common.Consumer; -using Sentinel.WorkerService.Common.Consumer.Interfaces; +using Microsoft.Extensions.Logging; +using Mycelium.Common.SignalR; +using Mycelium.WorkerService.Common.Consumer; +using Mycelium.WorkerService.Common.Consumer.Interfaces; -namespace Sentinel.WorkerService.Core.RestartDevice; +namespace Mycelium.WorkerService.Core.RestartDevice; public class RestartDeviceModule(IConsumerConfig config, ILogger logger) : ConsumerBase(config, logger) { diff --git a/src/Sentinel.WorkerService.Core/SecurityScan/ISecurityScanner.cs b/src/Mycelium.WorkerService.Core/SecurityScan/ISecurityScanner.cs similarity index 65% rename from src/Sentinel.WorkerService.Core/SecurityScan/ISecurityScanner.cs rename to src/Mycelium.WorkerService.Core/SecurityScan/ISecurityScanner.cs index 141ea62..48d07fb 100644 --- a/src/Sentinel.WorkerService.Core/SecurityScan/ISecurityScanner.cs +++ b/src/Mycelium.WorkerService.Core/SecurityScan/ISecurityScanner.cs @@ -1,4 +1,4 @@ -namespace Sentinel.WorkerService.Core.SecurityScan; +namespace Mycelium.WorkerService.Core.SecurityScan; public interface ISecurityScanner { diff --git a/src/Sentinel.WorkerService.Core/SecurityScan/SecurityScanModule.cs b/src/Mycelium.WorkerService.Core/SecurityScan/SecurityScanModule.cs similarity index 69% rename from src/Sentinel.WorkerService.Core/SecurityScan/SecurityScanModule.cs rename to src/Mycelium.WorkerService.Core/SecurityScan/SecurityScanModule.cs index 0a2a2e5..6d417d9 100644 --- a/src/Sentinel.WorkerService.Core/SecurityScan/SecurityScanModule.cs +++ b/src/Mycelium.WorkerService.Core/SecurityScan/SecurityScanModule.cs @@ -1,9 +1,9 @@ -using Microsoft.Extensions.Logging; -using Sentinel.Common.SignalR; -using Sentinel.WorkerService.Common.Consumer; -using Sentinel.WorkerService.Common.Consumer.Interfaces; +using Microsoft.Extensions.Logging; +using Mycelium.Common.SignalR; +using Mycelium.WorkerService.Common.Consumer; +using Mycelium.WorkerService.Common.Consumer.Interfaces; -namespace Sentinel.WorkerService.Core.SecurityScan; +namespace Mycelium.WorkerService.Core.SecurityScan; public class SecurityScanModule(IConsumerConfig config, ILogger logger, ISecurityScanner scanner) : ConsumerBase(config, logger) { diff --git a/src/Sentinel.WorkerService.Core/TimeSync/ITimeSynchronizer.cs b/src/Mycelium.WorkerService.Core/TimeSync/ITimeSynchronizer.cs similarity index 55% rename from src/Sentinel.WorkerService.Core/TimeSync/ITimeSynchronizer.cs rename to src/Mycelium.WorkerService.Core/TimeSync/ITimeSynchronizer.cs index 79c6925..cb2c478 100644 --- a/src/Sentinel.WorkerService.Core/TimeSync/ITimeSynchronizer.cs +++ b/src/Mycelium.WorkerService.Core/TimeSync/ITimeSynchronizer.cs @@ -1,4 +1,4 @@ -namespace Sentinel.WorkerService.Core.TimeSync; +namespace Mycelium.WorkerService.Core.TimeSync; public interface ITimeSynchronizer { diff --git a/src/Sentinel.WorkerService.Core/TimeSync/PlaceholderModule.cs b/src/Mycelium.WorkerService.Core/TimeSync/PlaceholderModule.cs similarity index 61% rename from src/Sentinel.WorkerService.Core/TimeSync/PlaceholderModule.cs rename to src/Mycelium.WorkerService.Core/TimeSync/PlaceholderModule.cs index 5d06c4c..1cb3dd6 100644 --- a/src/Sentinel.WorkerService.Core/TimeSync/PlaceholderModule.cs +++ b/src/Mycelium.WorkerService.Core/TimeSync/PlaceholderModule.cs @@ -1,6 +1,6 @@ -using Sentinel.WorkerService.Common.Module.Interfaces; +using Mycelium.WorkerService.Common.Module.Interfaces; -namespace Sentinel.WorkerService.Core.TimeSync; +namespace Mycelium.WorkerService.Core.TimeSync; public class PlaceholderModule : IStartupModule { diff --git a/src/Sentinel.WorkerService.Core/TimeSync/TimeSyncModule.cs b/src/Mycelium.WorkerService.Core/TimeSync/TimeSyncModule.cs similarity index 67% rename from src/Sentinel.WorkerService.Core/TimeSync/TimeSyncModule.cs rename to src/Mycelium.WorkerService.Core/TimeSync/TimeSyncModule.cs index 5c3860c..68a0007 100644 --- a/src/Sentinel.WorkerService.Core/TimeSync/TimeSyncModule.cs +++ b/src/Mycelium.WorkerService.Core/TimeSync/TimeSyncModule.cs @@ -1,7 +1,7 @@ -using Microsoft.Extensions.Logging; -using Sentinel.WorkerService.Common.Module.Interfaces; +using Microsoft.Extensions.Logging; +using Mycelium.WorkerService.Common.Module.Interfaces; -namespace Sentinel.WorkerService.Core.TimeSync; +namespace Mycelium.WorkerService.Core.TimeSync; public class TimeSyncModule(ITimeSynchronizer timeSynchronizer, ILogger logger) : IStartupModule { diff --git a/src/Sentinel.WorkerService.RemoteAccess/Models/ConnectionDetails.cs b/src/Mycelium.WorkerService.RemoteAccess/Models/ConnectionDetails.cs similarity index 58% rename from src/Sentinel.WorkerService.RemoteAccess/Models/ConnectionDetails.cs rename to src/Mycelium.WorkerService.RemoteAccess/Models/ConnectionDetails.cs index 1533c38..822b532 100644 --- a/src/Sentinel.WorkerService.RemoteAccess/Models/ConnectionDetails.cs +++ b/src/Mycelium.WorkerService.RemoteAccess/Models/ConnectionDetails.cs @@ -1,4 +1,4 @@ -namespace Sentinel.WorkerService.RemoteAccess.Models; +namespace Mycelium.WorkerService.RemoteAccess.Models; public class ConnectionDetails { diff --git a/src/Sentinel.WorkerService.RemoteAccess/Sentinel.WorkerService.RemoteAccess.csproj b/src/Mycelium.WorkerService.RemoteAccess/Mycelium.WorkerService.RemoteAccess.csproj similarity index 60% rename from src/Sentinel.WorkerService.RemoteAccess/Sentinel.WorkerService.RemoteAccess.csproj rename to src/Mycelium.WorkerService.RemoteAccess/Mycelium.WorkerService.RemoteAccess.csproj index a68597b..ed4d00b 100644 --- a/src/Sentinel.WorkerService.RemoteAccess/Sentinel.WorkerService.RemoteAccess.csproj +++ b/src/Mycelium.WorkerService.RemoteAccess/Mycelium.WorkerService.RemoteAccess.csproj @@ -1,4 +1,4 @@ - + net10.0 @@ -11,8 +11,8 @@ - - + + diff --git a/src/Sentinel.WorkerService.RemoteAccess/RemoteAccessModule.cs b/src/Mycelium.WorkerService.RemoteAccess/RemoteAccessModule.cs similarity index 70% rename from src/Sentinel.WorkerService.RemoteAccess/RemoteAccessModule.cs rename to src/Mycelium.WorkerService.RemoteAccess/RemoteAccessModule.cs index 45b652f..c8b5c9b 100644 --- a/src/Sentinel.WorkerService.RemoteAccess/RemoteAccessModule.cs +++ b/src/Mycelium.WorkerService.RemoteAccess/RemoteAccessModule.cs @@ -1,10 +1,10 @@ -using Microsoft.Extensions.Logging; -using Sentinel.Common.SignalR; -using Sentinel.WorkerService.Common.Consumer; -using Sentinel.WorkerService.Common.Consumer.Interfaces; -using Sentinel.WorkerService.RemoteAccess.Services.Interfaces; +using Microsoft.Extensions.Logging; +using Mycelium.Common.SignalR; +using Mycelium.WorkerService.Common.Consumer; +using Mycelium.WorkerService.Common.Consumer.Interfaces; +using Mycelium.WorkerService.RemoteAccess.Services.Interfaces; -namespace Sentinel.WorkerService.RemoteAccess; +namespace Mycelium.WorkerService.RemoteAccess; public class RemoteAccessModule(IConsumerConfig config, ILogger logger, IRemoteAccessService remoteAccessService) : ConsumerBase(config, logger) { diff --git a/src/Sentinel.WorkerService.RemoteAccess/Services/AnyDeskService.cs b/src/Mycelium.WorkerService.RemoteAccess/Services/AnyDeskService.cs similarity index 86% rename from src/Sentinel.WorkerService.RemoteAccess/Services/AnyDeskService.cs rename to src/Mycelium.WorkerService.RemoteAccess/Services/AnyDeskService.cs index 2ce47d8..3e5f7ef 100644 --- a/src/Sentinel.WorkerService.RemoteAccess/Services/AnyDeskService.cs +++ b/src/Mycelium.WorkerService.RemoteAccess/Services/AnyDeskService.cs @@ -1,9 +1,9 @@ -using System.ServiceProcess; -using Sentinel.WorkerService.Common.Helpers; -using Sentinel.WorkerService.RemoteAccess.Models; -using Sentinel.WorkerService.RemoteAccess.Services.Interfaces; +using System.ServiceProcess; +using Mycelium.WorkerService.Common.Helpers; +using Mycelium.WorkerService.RemoteAccess.Models; +using Mycelium.WorkerService.RemoteAccess.Services.Interfaces; -namespace Sentinel.WorkerService.RemoteAccess.Services; +namespace Mycelium.WorkerService.RemoteAccess.Services; #pragma warning disable CA1416 public class AnyDeskService : IRemoteAccessService diff --git a/src/Sentinel.WorkerService.RemoteAccess/Services/Interfaces/IRemoteAccessService.cs b/src/Mycelium.WorkerService.RemoteAccess/Services/Interfaces/IRemoteAccessService.cs similarity index 55% rename from src/Sentinel.WorkerService.RemoteAccess/Services/Interfaces/IRemoteAccessService.cs rename to src/Mycelium.WorkerService.RemoteAccess/Services/Interfaces/IRemoteAccessService.cs index b066e5a..5ea2ea5 100644 --- a/src/Sentinel.WorkerService.RemoteAccess/Services/Interfaces/IRemoteAccessService.cs +++ b/src/Mycelium.WorkerService.RemoteAccess/Services/Interfaces/IRemoteAccessService.cs @@ -1,6 +1,6 @@ -using Sentinel.WorkerService.RemoteAccess.Models; +using Mycelium.WorkerService.RemoteAccess.Models; -namespace Sentinel.WorkerService.RemoteAccess.Services.Interfaces; +namespace Mycelium.WorkerService.RemoteAccess.Services.Interfaces; public interface IRemoteAccessService { diff --git a/src/Sentinel.WorkerService.RemoteAccess/Services/LinuxRemoteAccess.cs b/src/Mycelium.WorkerService.RemoteAccess/Services/LinuxRemoteAccess.cs similarity index 61% rename from src/Sentinel.WorkerService.RemoteAccess/Services/LinuxRemoteAccess.cs rename to src/Mycelium.WorkerService.RemoteAccess/Services/LinuxRemoteAccess.cs index 19600a2..dafab59 100644 --- a/src/Sentinel.WorkerService.RemoteAccess/Services/LinuxRemoteAccess.cs +++ b/src/Mycelium.WorkerService.RemoteAccess/Services/LinuxRemoteAccess.cs @@ -1,7 +1,7 @@ -using Sentinel.WorkerService.RemoteAccess.Models; -using Sentinel.WorkerService.RemoteAccess.Services.Interfaces; +using Mycelium.WorkerService.RemoteAccess.Models; +using Mycelium.WorkerService.RemoteAccess.Services.Interfaces; -namespace Sentinel.WorkerService.RemoteAccess.Services; +namespace Mycelium.WorkerService.RemoteAccess.Services; public class LinuxRemoteAccess : IRemoteAccessService { diff --git a/src/Sentinel.WorkerService/Extensions/HostExtensions.cs b/src/Mycelium.WorkerService/Extensions/HostExtensions.cs similarity index 84% rename from src/Sentinel.WorkerService/Extensions/HostExtensions.cs rename to src/Mycelium.WorkerService/Extensions/HostExtensions.cs index c8ae819..f1ba45f 100644 --- a/src/Sentinel.WorkerService/Extensions/HostExtensions.cs +++ b/src/Mycelium.WorkerService/Extensions/HostExtensions.cs @@ -1,7 +1,7 @@ - -using Sentinel.WorkerService.Common.Module.Interfaces; -namespace Sentinel.WorkerService.Extensions; +using Mycelium.WorkerService.Common.Module.Interfaces; + +namespace Mycelium.WorkerService.Extensions; public static class HostExtensions { diff --git a/src/Sentinel.WorkerService/Extensions/SerilogExtensions.cs b/src/Mycelium.WorkerService/Extensions/SerilogExtensions.cs similarity index 85% rename from src/Sentinel.WorkerService/Extensions/SerilogExtensions.cs rename to src/Mycelium.WorkerService/Extensions/SerilogExtensions.cs index 86f74ac..14def7c 100644 --- a/src/Sentinel.WorkerService/Extensions/SerilogExtensions.cs +++ b/src/Mycelium.WorkerService/Extensions/SerilogExtensions.cs @@ -1,7 +1,7 @@ -using Serilog; +using Serilog; using Serilog.Events; -namespace Sentinel.WorkerService.Extensions; +namespace Mycelium.WorkerService.Extensions; public static class SerilogExtensions { @@ -22,7 +22,7 @@ public static void AddSerilogEventLog() .MinimumLevel.Information() .MinimumLevel.Override("Microsoft", LogEventLevel.Information) .Enrich.FromLogContext() - .WriteTo.EventLog("Sentinel workerservice") + .WriteTo.EventLog("Mycelium workerservice") .CreateLogger(); #pragma warning restore CA1416 } diff --git a/src/Sentinel.WorkerService/Extensions/ServiceCollectionExtensions.cs b/src/Mycelium.WorkerService/Extensions/ServiceCollectionExtensions.cs similarity index 83% rename from src/Sentinel.WorkerService/Extensions/ServiceCollectionExtensions.cs rename to src/Mycelium.WorkerService/Extensions/ServiceCollectionExtensions.cs index acf247b..7befe8a 100644 --- a/src/Sentinel.WorkerService/Extensions/ServiceCollectionExtensions.cs +++ b/src/Mycelium.WorkerService/Extensions/ServiceCollectionExtensions.cs @@ -1,20 +1,20 @@ -using Microsoft.AspNetCore.SignalR.Client; -using Sentinel.Common.SignalR; -using Sentinel.WorkerService.Common.Consumer; -using Sentinel.WorkerService.Common.Consumer.Interfaces; -using Sentinel.WorkerService.Common.Module; -using Sentinel.WorkerService.Common.Module.Interfaces; -using Sentinel.WorkerService.Core.DeviceInformation; -using Sentinel.WorkerService.Core.Linux; -using Sentinel.WorkerService.Core.Ping; -using Sentinel.WorkerService.Core.RestartDevice; -using Sentinel.WorkerService.Core.SecurityScan; -using Sentinel.WorkerService.Core.TimeSync; -using Sentinel.WorkerService.Core.Windows; -using Sentinel.WorkerService.RemoteAccess; -using Sentinel.WorkerService.Services; - -namespace Sentinel.WorkerService.Extensions; +using Microsoft.AspNetCore.SignalR.Client; +using Mycelium.Common.SignalR; +using Mycelium.WorkerService.Common.Consumer; +using Mycelium.WorkerService.Common.Consumer.Interfaces; +using Mycelium.WorkerService.Common.Module; +using Mycelium.WorkerService.Common.Module.Interfaces; +using Mycelium.WorkerService.Core.DeviceInformation; +using Mycelium.WorkerService.Core.Linux; +using Mycelium.WorkerService.Core.Ping; +using Mycelium.WorkerService.Core.RestartDevice; +using Mycelium.WorkerService.Core.SecurityScan; +using Mycelium.WorkerService.Core.TimeSync; +using Mycelium.WorkerService.Core.Windows; +using Mycelium.WorkerService.RemoteAccess; +using Mycelium.WorkerService.Services; + +namespace Mycelium.WorkerService.Extensions; public static class ServiceCollectionExtensions { diff --git a/src/Sentinel.WorkerService/Modules.config b/src/Mycelium.WorkerService/Modules.config similarity index 100% rename from src/Sentinel.WorkerService/Modules.config rename to src/Mycelium.WorkerService/Modules.config diff --git a/src/Sentinel.WorkerService/Sentinel.WorkerService.csproj b/src/Mycelium.WorkerService/Mycelium.WorkerService.csproj similarity index 51% rename from src/Sentinel.WorkerService/Sentinel.WorkerService.csproj rename to src/Mycelium.WorkerService/Mycelium.WorkerService.csproj index dd0a7e1..8201699 100644 --- a/src/Sentinel.WorkerService/Sentinel.WorkerService.csproj +++ b/src/Mycelium.WorkerService/Mycelium.WorkerService.csproj @@ -1,10 +1,10 @@ - + net10.0 enable enable - dotnet-Sentinel.WorkerService-f5d58aa8-4363-49bb-b403-7e4ed6f56b92 + dotnet-Mycelium.WorkerService-f5d58aa8-4363-49bb-b403-7e4ed6f56b92 Linux @@ -14,12 +14,12 @@ - - - - - - + + + + + + diff --git a/src/Sentinel.WorkerService/Program.cs b/src/Mycelium.WorkerService/Program.cs similarity index 85% rename from src/Sentinel.WorkerService/Program.cs rename to src/Mycelium.WorkerService/Program.cs index 312d769..6530925 100644 --- a/src/Sentinel.WorkerService/Program.cs +++ b/src/Mycelium.WorkerService/Program.cs @@ -1,11 +1,11 @@ using Serilog; using System.Net.Http.Headers; -using Sentinel.WorkerService.Common.Api; -using Sentinel.WorkerService.Common.Api.Interfaces; -using Sentinel.WorkerService.Common.Services; -using Sentinel.WorkerService.Common.Services.Interfaces; -using Sentinel.WorkerService.Extensions; -using Sentinel.WorkerService.Services; +using Mycelium.WorkerService.Common.Api; +using Mycelium.WorkerService.Common.Api.Interfaces; +using Mycelium.WorkerService.Common.Services; +using Mycelium.WorkerService.Common.Services.Interfaces; +using Mycelium.WorkerService.Extensions; +using Mycelium.WorkerService.Services; try { @@ -24,7 +24,7 @@ services.AddTransient(); // Add HttpClient - services.AddHttpClient(client => + services.AddHttpClient(client => { client.BaseAddress = new Uri(hostContext.Configuration.GetConnectionString("Api") ?? throw new Exception("Api configuration not found.")); client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json")); diff --git a/src/Sentinel.WorkerService/Services/HubManager.cs b/src/Mycelium.WorkerService/Services/HubManager.cs similarity index 94% rename from src/Sentinel.WorkerService/Services/HubManager.cs rename to src/Mycelium.WorkerService/Services/HubManager.cs index 8558e5c..7ff40b0 100644 --- a/src/Sentinel.WorkerService/Services/HubManager.cs +++ b/src/Mycelium.WorkerService/Services/HubManager.cs @@ -1,6 +1,6 @@ -using Microsoft.AspNetCore.SignalR.Client; +using Microsoft.AspNetCore.SignalR.Client; -namespace Sentinel.WorkerService.Services; +namespace Mycelium.WorkerService.Services; public static class HubManager { diff --git a/src/Sentinel.WorkerService/Services/LicenseManager.cs b/src/Mycelium.WorkerService/Services/LicenseManager.cs similarity index 88% rename from src/Sentinel.WorkerService/Services/LicenseManager.cs rename to src/Mycelium.WorkerService/Services/LicenseManager.cs index f509ff0..18af04d 100644 --- a/src/Sentinel.WorkerService/Services/LicenseManager.cs +++ b/src/Mycelium.WorkerService/Services/LicenseManager.cs @@ -1,7 +1,7 @@ -using System.Xml; -using Sentinel.WorkerService.Common.Module.Interfaces; +using System.Xml; +using Mycelium.WorkerService.Common.Module.Interfaces; -namespace Sentinel.WorkerService.Services; +namespace Mycelium.WorkerService.Services; public static class LicenseManager { diff --git a/src/Sentinel.WorkerService/appsettings.json b/src/Mycelium.WorkerService/appsettings.json similarity index 100% rename from src/Sentinel.WorkerService/appsettings.json rename to src/Mycelium.WorkerService/appsettings.json diff --git a/src/Sentinel.Api.Application/Commands/Devices/Update/StorageInformation/UpdateStorageInformationCommand.cs b/src/Sentinel.Api.Application/Commands/Devices/Update/StorageInformation/UpdateStorageInformationCommand.cs deleted file mode 100644 index 8baefea..0000000 --- a/src/Sentinel.Api.Application/Commands/Devices/Update/StorageInformation/UpdateStorageInformationCommand.cs +++ /dev/null @@ -1,5 +0,0 @@ -using Mediator; - -namespace Sentinel.Api.Application.Commands.Devices.Update.StorageInformation; - -public record UpdateStorageInformationCommand(int DeviceId, Sentinel.Common.DTO.Device.StorageInformationDto StorageInfo) : IRequest; diff --git a/src/Sentinel.Api.Application/Interfaces/IUserRepository.cs b/src/Sentinel.Api.Application/Interfaces/IUserRepository.cs deleted file mode 100644 index af46eb2..0000000 --- a/src/Sentinel.Api.Application/Interfaces/IUserRepository.cs +++ /dev/null @@ -1,8 +0,0 @@ -using Sentinel.Api.Application.DTO.User; - -namespace Sentinel.Api.Application.Interfaces; - -public interface IUserRepository -{ - Task Register(RegisterUserDto user); -} \ No newline at end of file diff --git a/src/Sentinel.Api.Application/Queries/Devices/Devices/DevicesQuery.cs b/src/Sentinel.Api.Application/Queries/Devices/Devices/DevicesQuery.cs deleted file mode 100644 index 069f82e..0000000 --- a/src/Sentinel.Api.Application/Queries/Devices/Devices/DevicesQuery.cs +++ /dev/null @@ -1,6 +0,0 @@ -using Mediator; -using Sentinel.Api.Application.DTO.Device; - -namespace Sentinel.Api.Application.Queries.Devices.Devices; - -public record DevicesQuery(int UserId) : IRequest; diff --git a/src/Sentinel.Api.Application/Queries/Organisations/OrganisationsQuery.cs b/src/Sentinel.Api.Application/Queries/Organisations/OrganisationsQuery.cs deleted file mode 100644 index 5dd3e20..0000000 --- a/src/Sentinel.Api.Application/Queries/Organisations/OrganisationsQuery.cs +++ /dev/null @@ -1,6 +0,0 @@ -using Mediator; -using Sentinel.Api.Domain.Entities; - -namespace Sentinel.Api.Application.Queries.Organisations; - -public record OrganisationsQuery : IRequest>; diff --git a/src/Sentinel.Api/Dockerfile b/src/Sentinel.Api/Dockerfile deleted file mode 100644 index 324ef96..0000000 --- a/src/Sentinel.Api/Dockerfile +++ /dev/null @@ -1,26 +0,0 @@ -FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base -USER $APP_UID -WORKDIR /app -EXPOSE 8080 - -FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build -ARG BUILD_CONFIGURATION=Release -WORKDIR /src -COPY ["Sentinel.Api/Sentinel.Api.csproj", "Sentinel.Api/"] -COPY ["Sentinel.Api.Application/Sentinel.Api.Application.csproj", "Sentinel.Api.Application/"] -COPY ["Sentinel.Api.Domain/Sentinel.Api.Domain.csproj", "Sentinel.Api.Domain/"] -COPY ["Sentinel.Common/Sentinel.Common.csproj", "Sentinel.Common/"] -COPY ["Sentinel.Api.Infrastructure/Sentinel.Api.Infrastructure.csproj", "Sentinel.Api.Infrastructure/"] -RUN dotnet restore "Sentinel.Api/Sentinel.Api.csproj" -COPY . . -WORKDIR "/src/Sentinel.Api" -RUN dotnet build "Sentinel.Api.csproj" -c $BUILD_CONFIGURATION -o /app/build - -FROM build AS publish -ARG BUILD_CONFIGURATION=Release -RUN dotnet publish "Sentinel.Api.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false - -FROM base AS final -WORKDIR /app -COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "Sentinel.Api.dll"] \ No newline at end of file diff --git a/src/Sentinel.WorkerService.Common/Module/Interfaces/IModule.cs b/src/Sentinel.WorkerService.Common/Module/Interfaces/IModule.cs deleted file mode 100644 index 6787710..0000000 --- a/src/Sentinel.WorkerService.Common/Module/Interfaces/IModule.cs +++ /dev/null @@ -1,3 +0,0 @@ -namespace Sentinel.WorkerService.Common.Module.Interfaces; - -public interface IModule; \ No newline at end of file diff --git a/src/Sentinel.WorkerService.Core.Linux/Sentinel.WorkerService.Core.Linux.csproj b/src/Sentinel.WorkerService.Core.Linux/Sentinel.WorkerService.Core.Linux.csproj deleted file mode 100644 index a684f62..0000000 --- a/src/Sentinel.WorkerService.Core.Linux/Sentinel.WorkerService.Core.Linux.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - net10.0 - enable - enable - Sentinel.WorkerService.Core.Linux - - - - - - - diff --git a/src/Sentinel.WorkerService.Core.Linux/ServiceCollectionExtensions.cs b/src/Sentinel.WorkerService.Core.Linux/ServiceCollectionExtensions.cs deleted file mode 100644 index 2cff93a..0000000 --- a/src/Sentinel.WorkerService.Core.Linux/ServiceCollectionExtensions.cs +++ /dev/null @@ -1,20 +0,0 @@ -using Microsoft.Extensions.DependencyInjection; -using Sentinel.WorkerService.Core.Linux.SecurityScan; -using Sentinel.WorkerService.Core.Linux.TimeSync; -using Sentinel.WorkerService.Core.SecurityScan; -using Sentinel.WorkerService.Core.TimeSync; -using Sentinel.WorkerService.RemoteAccess.Services; -using Sentinel.WorkerService.RemoteAccess.Services.Interfaces; - -namespace Sentinel.WorkerService.Core.Linux; - -public static class ServiceCollectionExtensions -{ - public static void AddLinuxCoreDependencies(this IServiceCollection services) - { - services.AddSingleton(); - services.AddSingleton(); - services.AddSingleton(); - - } -} \ No newline at end of file diff --git a/src/Sentinel.WorkerService.Core.Windows/Sentinel.WorkerService.Core.Windows.csproj b/src/Sentinel.WorkerService.Core.Windows/Sentinel.WorkerService.Core.Windows.csproj deleted file mode 100644 index f492ddd..0000000 --- a/src/Sentinel.WorkerService.Core.Windows/Sentinel.WorkerService.Core.Windows.csproj +++ /dev/null @@ -1,14 +0,0 @@ - - - - net10.0 - enable - enable - Sentinel.WorkerService.Core.Windows - - - - - - - diff --git a/src/Sentinel.WorkerService.Core/DeviceInformation/Interfaces/IDeviceInformationRetriever.cs b/src/Sentinel.WorkerService.Core/DeviceInformation/Interfaces/IDeviceInformationRetriever.cs deleted file mode 100644 index ce72bc9..0000000 --- a/src/Sentinel.WorkerService.Core/DeviceInformation/Interfaces/IDeviceInformationRetriever.cs +++ /dev/null @@ -1,8 +0,0 @@ -using Sentinel.Common.DTO.Device.Information; - -namespace Sentinel.WorkerService.Core.DeviceInformation.Interfaces; - -public interface IDeviceInformationRetriever -{ - public GetDeviceInformationDto Retrieve(); -} \ No newline at end of file diff --git a/src/Sentinel.WorkerService.Core/DeviceInformation/Interfaces/IStorageInformationRetriever.cs b/src/Sentinel.WorkerService.Core/DeviceInformation/Interfaces/IStorageInformationRetriever.cs deleted file mode 100644 index 9bfc17e..0000000 --- a/src/Sentinel.WorkerService.Core/DeviceInformation/Interfaces/IStorageInformationRetriever.cs +++ /dev/null @@ -1,8 +0,0 @@ -using Sentinel.Common.DTO.Device; - -namespace Sentinel.WorkerService.Core.DeviceInformation.Interfaces; - -public interface IStorageInformationRetriever -{ - public StorageInformationDto Retrieve(); -} \ No newline at end of file diff --git a/src/Sentinel.WorkerService.Core/Ping/PingModule.cs b/src/Sentinel.WorkerService.Core/Ping/PingModule.cs deleted file mode 100644 index 79558ba..0000000 --- a/src/Sentinel.WorkerService.Core/Ping/PingModule.cs +++ /dev/null @@ -1,15 +0,0 @@ -using Microsoft.Extensions.Logging; -using Sentinel.WorkerService.Common.Api; -using Sentinel.WorkerService.Common.Module; -using Sentinel.WorkerService.Common.Module.Interfaces; - -namespace Sentinel.WorkerService.Core.Ping; - -public class PingModule(ILogger logger, IScheduledModuleConfig config, SentinelApiService sentinelApiService) - : ScheduledModuleBase(logger, config, true) -{ - public override async Task Execute(CancellationToken cancellationToken) - { - await sentinelApiService.PingAsync(); - } -} \ No newline at end of file diff --git a/tests/Sentinel.Api.Integration.Tests/Common/ApiFixture.cs b/tests/Mycelium.Api.Integration.Tests/Common/ApiFixture.cs similarity index 80% rename from tests/Sentinel.Api.Integration.Tests/Common/ApiFixture.cs rename to tests/Mycelium.Api.Integration.Tests/Common/ApiFixture.cs index 924c1aa..d341116 100644 --- a/tests/Sentinel.Api.Integration.Tests/Common/ApiFixture.cs +++ b/tests/Mycelium.Api.Integration.Tests/Common/ApiFixture.cs @@ -1,13 +1,13 @@ -using Microsoft.AspNetCore.Mvc.Testing; +using Microsoft.AspNetCore.Mvc.Testing; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.DependencyInjection.Extensions; using Microsoft.Extensions.Hosting; -using Sentinel.Api.Infrastructure.Persistence; +using Mycelium.Api.Infrastructure.Persistence; -namespace Sentinel.Api.Integration.Tests.Common; +namespace Mycelium.Api.Integration.Tests.Common; public class ApiFixture : WebApplicationFactory { @@ -22,7 +22,7 @@ protected override IHost CreateHost(IHostBuilder builder) services.RemoveAll>(); services.AddDbContext(options => - options.UseInMemoryDatabase("SentinelDatabase", root)); + options.UseInMemoryDatabase("MyceliumDatabase", root)); }); return base.CreateHost(builder); } diff --git a/tests/Sentinel.Api.Integration.Tests/Common/ApiFixtureExtensions.cs b/tests/Mycelium.Api.Integration.Tests/Common/ApiFixtureExtensions.cs similarity index 88% rename from tests/Sentinel.Api.Integration.Tests/Common/ApiFixtureExtensions.cs rename to tests/Mycelium.Api.Integration.Tests/Common/ApiFixtureExtensions.cs index b90ffd5..dae7f5b 100644 --- a/tests/Sentinel.Api.Integration.Tests/Common/ApiFixtureExtensions.cs +++ b/tests/Mycelium.Api.Integration.Tests/Common/ApiFixtureExtensions.cs @@ -1,9 +1,9 @@ -using Microsoft.Extensions.DependencyInjection; -using Sentinel.Api.Application.DTO.Device; -using Sentinel.Api.Application.DTO.User; -using Sentinel.Api.Infrastructure.Persistence; +using Microsoft.Extensions.DependencyInjection; +using Mycelium.Api.Application.DTO.Device; +using Mycelium.Api.Application.DTO.User; +using Mycelium.Api.Infrastructure.Persistence; -namespace Sentinel.Api.Integration.Tests.Common; +namespace Mycelium.Api.Integration.Tests.Common; public static class ApiFixtureExtensions { diff --git a/tests/Sentinel.Api.Integration.Tests/Common/HttpHelpers.cs b/tests/Mycelium.Api.Integration.Tests/Common/HttpHelpers.cs similarity index 96% rename from tests/Sentinel.Api.Integration.Tests/Common/HttpHelpers.cs rename to tests/Mycelium.Api.Integration.Tests/Common/HttpHelpers.cs index 26b0c2f..ac2b92c 100644 --- a/tests/Sentinel.Api.Integration.Tests/Common/HttpHelpers.cs +++ b/tests/Mycelium.Api.Integration.Tests/Common/HttpHelpers.cs @@ -2,7 +2,7 @@ using System.Text; using System.Text.Json; -namespace Sentinel.Api.Integration.Tests.Common; +namespace Mycelium.Api.Integration.Tests.Common; public static class HttpClientExtensions { diff --git a/tests/Sentinel.Api.Integration.Tests/Common/TestAssertions.cs b/tests/Mycelium.Api.Integration.Tests/Common/TestAssertions.cs similarity index 96% rename from tests/Sentinel.Api.Integration.Tests/Common/TestAssertions.cs rename to tests/Mycelium.Api.Integration.Tests/Common/TestAssertions.cs index 1e0bfe3..0720242 100644 --- a/tests/Sentinel.Api.Integration.Tests/Common/TestAssertions.cs +++ b/tests/Mycelium.Api.Integration.Tests/Common/TestAssertions.cs @@ -1,7 +1,7 @@ using System.Net; using NUnit.Framework; -namespace Sentinel.Api.Integration.Tests.Common; +namespace Mycelium.Api.Integration.Tests.Common; public static class HttpResponseAssertions { diff --git a/tests/Sentinel.Api.Integration.Tests/Common/TestScope.cs b/tests/Mycelium.Api.Integration.Tests/Common/TestScope.cs similarity index 95% rename from tests/Sentinel.Api.Integration.Tests/Common/TestScope.cs rename to tests/Mycelium.Api.Integration.Tests/Common/TestScope.cs index b199b0d..c34ee16 100644 --- a/tests/Sentinel.Api.Integration.Tests/Common/TestScope.cs +++ b/tests/Mycelium.Api.Integration.Tests/Common/TestScope.cs @@ -2,12 +2,12 @@ using Microsoft.EntityFrameworkCore; using Microsoft.Extensions.DependencyInjection; using OtpNet; -using Sentinel.Api.Application.DTO.Device; -using Sentinel.Api.Application.DTO.Token; -using Sentinel.Api.Application.DTO.User; -using Sentinel.Api.Infrastructure.Persistence; +using Mycelium.Api.Application.DTO.Device; +using Mycelium.Api.Application.DTO.Token; +using Mycelium.Api.Application.DTO.User; +using Mycelium.Api.Infrastructure.Persistence; -namespace Sentinel.Api.Integration.Tests.Common; +namespace Mycelium.Api.Integration.Tests.Common; public sealed class TestScope : IAsyncDisposable { diff --git a/tests/Sentinel.Api.Integration.Tests/Device/Authentication/RegisterTests.cs b/tests/Mycelium.Api.Integration.Tests/Device/Authentication/RegisterTests.cs similarity index 83% rename from tests/Sentinel.Api.Integration.Tests/Device/Authentication/RegisterTests.cs rename to tests/Mycelium.Api.Integration.Tests/Device/Authentication/RegisterTests.cs index e46fe3e..c2a0490 100644 --- a/tests/Sentinel.Api.Integration.Tests/Device/Authentication/RegisterTests.cs +++ b/tests/Mycelium.Api.Integration.Tests/Device/Authentication/RegisterTests.cs @@ -1,8 +1,8 @@ -using NUnit.Framework; -using Sentinel.Api.Application.DTO.Device; -using Sentinel.Api.Integration.Tests.Common; +using NUnit.Framework; +using Mycelium.Api.Application.DTO.Device; +using Mycelium.Api.Integration.Tests.Common; -namespace Sentinel.Api.Integration.Tests.Device.Authentication; +namespace Mycelium.Api.Integration.Tests.Device.Authentication; public class RegisterTests { diff --git a/tests/Sentinel.Api.Integration.Tests/Device/Management/DeviceRetrievalTests.cs b/tests/Mycelium.Api.Integration.Tests/Device/Management/DeviceRetrievalTests.cs similarity index 90% rename from tests/Sentinel.Api.Integration.Tests/Device/Management/DeviceRetrievalTests.cs rename to tests/Mycelium.Api.Integration.Tests/Device/Management/DeviceRetrievalTests.cs index f0e6b05..3d81ff3 100644 --- a/tests/Sentinel.Api.Integration.Tests/Device/Management/DeviceRetrievalTests.cs +++ b/tests/Mycelium.Api.Integration.Tests/Device/Management/DeviceRetrievalTests.cs @@ -1,8 +1,8 @@ -using NUnit.Framework; -using Sentinel.Api.Application.DTO.Device; -using Sentinel.Api.Integration.Tests.Common; +using NUnit.Framework; +using Mycelium.Api.Application.DTO.Device; +using Mycelium.Api.Integration.Tests.Common; -namespace Sentinel.Api.Integration.Tests.Device.Management; +namespace Mycelium.Api.Integration.Tests.Device.Management; public class DeviceRetrievalTests { diff --git a/tests/Sentinel.Api.Integration.Tests/Device/Updates/UpdateDeviceInformationTests.cs b/tests/Mycelium.Api.Integration.Tests/Device/Updates/UpdateDeviceInformationTests.cs similarity index 91% rename from tests/Sentinel.Api.Integration.Tests/Device/Updates/UpdateDeviceInformationTests.cs rename to tests/Mycelium.Api.Integration.Tests/Device/Updates/UpdateDeviceInformationTests.cs index 978365b..a122d53 100644 --- a/tests/Sentinel.Api.Integration.Tests/Device/Updates/UpdateDeviceInformationTests.cs +++ b/tests/Mycelium.Api.Integration.Tests/Device/Updates/UpdateDeviceInformationTests.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Sentinel.Api.Integration.Tests.Common; -using Sentinel.Common.DTO.Device.Information; +using Mycelium.Api.Integration.Tests.Common; +using Mycelium.Common.DTO.Device.Information; -namespace Sentinel.Api.Integration.Tests.Device.Updates; +namespace Mycelium.Api.Integration.Tests.Device.Updates; public class UpdateDeviceInformationTests { diff --git a/tests/Sentinel.Api.Integration.Tests/Device/Updates/UpdateSecurityInformationTests.cs b/tests/Mycelium.Api.Integration.Tests/Device/Updates/UpdateSecurityInformationTests.cs similarity index 93% rename from tests/Sentinel.Api.Integration.Tests/Device/Updates/UpdateSecurityInformationTests.cs rename to tests/Mycelium.Api.Integration.Tests/Device/Updates/UpdateSecurityInformationTests.cs index be47ad7..ab39f72 100644 --- a/tests/Sentinel.Api.Integration.Tests/Device/Updates/UpdateSecurityInformationTests.cs +++ b/tests/Mycelium.Api.Integration.Tests/Device/Updates/UpdateSecurityInformationTests.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Sentinel.Api.Integration.Tests.Common; -using Sentinel.Common.DTO.Device; +using Mycelium.Api.Integration.Tests.Common; +using Mycelium.Common.DTO.Device; -namespace Sentinel.Api.Integration.Tests.Device.Updates; +namespace Mycelium.Api.Integration.Tests.Device.Updates; public class UpdateSecurityInformationTests { diff --git a/tests/Sentinel.Api.Integration.Tests/Device/Updates/UpdateSoftwareInformationTests.cs b/tests/Mycelium.Api.Integration.Tests/Device/Updates/UpdateSoftwareInformationTests.cs similarity index 90% rename from tests/Sentinel.Api.Integration.Tests/Device/Updates/UpdateSoftwareInformationTests.cs rename to tests/Mycelium.Api.Integration.Tests/Device/Updates/UpdateSoftwareInformationTests.cs index c70ca13..aff2089 100644 --- a/tests/Sentinel.Api.Integration.Tests/Device/Updates/UpdateSoftwareInformationTests.cs +++ b/tests/Mycelium.Api.Integration.Tests/Device/Updates/UpdateSoftwareInformationTests.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Sentinel.Api.Integration.Tests.Common; -using Sentinel.Common.DTO.Device; +using Mycelium.Api.Integration.Tests.Common; +using Mycelium.Common.DTO.Device; -namespace Sentinel.Api.Integration.Tests.Device.Updates; +namespace Mycelium.Api.Integration.Tests.Device.Updates; public class UpdateSoftwareInformationTests { diff --git a/tests/Sentinel.Api.Integration.Tests/Device/Updates/UpdateStorageInformationTests.cs b/tests/Mycelium.Api.Integration.Tests/Device/Updates/UpdateStorageInformationTests.cs similarity index 91% rename from tests/Sentinel.Api.Integration.Tests/Device/Updates/UpdateStorageInformationTests.cs rename to tests/Mycelium.Api.Integration.Tests/Device/Updates/UpdateStorageInformationTests.cs index 2ad23ba..e011d44 100644 --- a/tests/Sentinel.Api.Integration.Tests/Device/Updates/UpdateStorageInformationTests.cs +++ b/tests/Mycelium.Api.Integration.Tests/Device/Updates/UpdateStorageInformationTests.cs @@ -1,8 +1,8 @@ using NUnit.Framework; -using Sentinel.Api.Integration.Tests.Common; -using Sentinel.Common.DTO.Device; +using Mycelium.Api.Integration.Tests.Common; +using Mycelium.Common.DTO.Device; -namespace Sentinel.Api.Integration.Tests.Device.Updates; +namespace Mycelium.Api.Integration.Tests.Device.Updates; public class UpdateStorageInformationTests { diff --git a/tests/Sentinel.Api.Integration.Tests/Device/Worker/PingTaskTests.cs b/tests/Mycelium.Api.Integration.Tests/Device/Worker/PingTaskTests.cs similarity index 84% rename from tests/Sentinel.Api.Integration.Tests/Device/Worker/PingTaskTests.cs rename to tests/Mycelium.Api.Integration.Tests/Device/Worker/PingTaskTests.cs index 3b5732f..1556ec6 100644 --- a/tests/Sentinel.Api.Integration.Tests/Device/Worker/PingTaskTests.cs +++ b/tests/Mycelium.Api.Integration.Tests/Device/Worker/PingTaskTests.cs @@ -1,7 +1,7 @@ -using NUnit.Framework; -using Sentinel.Api.Integration.Tests.Common; +using NUnit.Framework; +using Mycelium.Api.Integration.Tests.Common; -namespace Sentinel.Api.Integration.Tests.Device.Worker; +namespace Mycelium.Api.Integration.Tests.Device.Worker; public class PingTaskTests { diff --git a/tests/Sentinel.Api.Integration.Tests/Sentinel.Api.Integration.Tests.csproj b/tests/Mycelium.Api.Integration.Tests/Mycelium.Api.Integration.Tests.csproj similarity index 89% rename from tests/Sentinel.Api.Integration.Tests/Sentinel.Api.Integration.Tests.csproj rename to tests/Mycelium.Api.Integration.Tests/Mycelium.Api.Integration.Tests.csproj index d3af567..8896eda 100644 --- a/tests/Sentinel.Api.Integration.Tests/Sentinel.Api.Integration.Tests.csproj +++ b/tests/Mycelium.Api.Integration.Tests/Mycelium.Api.Integration.Tests.csproj @@ -1,4 +1,4 @@ - + net10.0 @@ -20,7 +20,7 @@ - + diff --git a/tests/Sentinel.Api.Integration.Tests/Organisation/OrganisationTests.cs b/tests/Mycelium.Api.Integration.Tests/Organisation/OrganisationTests.cs similarity index 81% rename from tests/Sentinel.Api.Integration.Tests/Organisation/OrganisationTests.cs rename to tests/Mycelium.Api.Integration.Tests/Organisation/OrganisationTests.cs index c9de031..fcfba06 100644 --- a/tests/Sentinel.Api.Integration.Tests/Organisation/OrganisationTests.cs +++ b/tests/Mycelium.Api.Integration.Tests/Organisation/OrganisationTests.cs @@ -1,7 +1,7 @@ -using NUnit.Framework; -using Sentinel.Api.Integration.Tests.Common; +using NUnit.Framework; +using Mycelium.Api.Integration.Tests.Common; -namespace Sentinel.Api.Integration.Tests.Organisation; +namespace Mycelium.Api.Integration.Tests.Organisation; public class OrganisationTests { diff --git a/tests/Sentinel.Api.Integration.Tests/User/Authentication/RefreshTokenTests.cs b/tests/Mycelium.Api.Integration.Tests/User/Authentication/RefreshTokenTests.cs similarity index 92% rename from tests/Sentinel.Api.Integration.Tests/User/Authentication/RefreshTokenTests.cs rename to tests/Mycelium.Api.Integration.Tests/User/Authentication/RefreshTokenTests.cs index 3707a43..b453392 100644 --- a/tests/Sentinel.Api.Integration.Tests/User/Authentication/RefreshTokenTests.cs +++ b/tests/Mycelium.Api.Integration.Tests/User/Authentication/RefreshTokenTests.cs @@ -1,11 +1,11 @@ using NUnit.Framework; using OtpNet; -using Sentinel.Api.Application.Commands.Auth.RefreshToken; -using Sentinel.Api.Application.DTO.Token; -using Sentinel.Api.Application.DTO.User; -using Sentinel.Api.Integration.Tests.Common; +using Mycelium.Api.Application.Commands.Auth.RefreshToken; +using Mycelium.Api.Application.DTO.Token; +using Mycelium.Api.Application.DTO.User; +using Mycelium.Api.Integration.Tests.Common; -namespace Sentinel.Api.Integration.Tests.User.Authentication; +namespace Mycelium.Api.Integration.Tests.User.Authentication; public class RefreshTokenTests { diff --git a/tests/Sentinel.Api.Integration.Tests/User/Authentication/RegisterTests.cs b/tests/Mycelium.Api.Integration.Tests/User/Authentication/RegisterTests.cs similarity index 83% rename from tests/Sentinel.Api.Integration.Tests/User/Authentication/RegisterTests.cs rename to tests/Mycelium.Api.Integration.Tests/User/Authentication/RegisterTests.cs index dfabbf4..8257481 100644 --- a/tests/Sentinel.Api.Integration.Tests/User/Authentication/RegisterTests.cs +++ b/tests/Mycelium.Api.Integration.Tests/User/Authentication/RegisterTests.cs @@ -1,8 +1,8 @@ -using NUnit.Framework; -using Sentinel.Api.Application.DTO.User; -using Sentinel.Api.Integration.Tests.Common; +using NUnit.Framework; +using Mycelium.Api.Application.DTO.User; +using Mycelium.Api.Integration.Tests.Common; -namespace Sentinel.Api.Integration.Tests.User.Authentication; +namespace Mycelium.Api.Integration.Tests.User.Authentication; public class RegisterTests { diff --git a/tests/Sentinel.Api.Integration.Tests/User/Authentication/SignInTests.cs b/tests/Mycelium.Api.Integration.Tests/User/Authentication/SignInTests.cs similarity index 89% rename from tests/Sentinel.Api.Integration.Tests/User/Authentication/SignInTests.cs rename to tests/Mycelium.Api.Integration.Tests/User/Authentication/SignInTests.cs index 151aec6..5af9e54 100644 --- a/tests/Sentinel.Api.Integration.Tests/User/Authentication/SignInTests.cs +++ b/tests/Mycelium.Api.Integration.Tests/User/Authentication/SignInTests.cs @@ -1,8 +1,8 @@ -using NUnit.Framework; -using Sentinel.Api.Application.DTO.User; -using Sentinel.Api.Integration.Tests.Common; +using NUnit.Framework; +using Mycelium.Api.Application.DTO.User; +using Mycelium.Api.Integration.Tests.Common; -namespace Sentinel.Api.Integration.Tests.User.Authentication; +namespace Mycelium.Api.Integration.Tests.User.Authentication; public class SignInTests { diff --git a/tests/Sentinel.Api.Integration.Tests/User/Authentication/VerificationTests.cs b/tests/Mycelium.Api.Integration.Tests/User/Authentication/VerificationTests.cs similarity index 86% rename from tests/Sentinel.Api.Integration.Tests/User/Authentication/VerificationTests.cs rename to tests/Mycelium.Api.Integration.Tests/User/Authentication/VerificationTests.cs index 9a667ae..ec10ef9 100644 --- a/tests/Sentinel.Api.Integration.Tests/User/Authentication/VerificationTests.cs +++ b/tests/Mycelium.Api.Integration.Tests/User/Authentication/VerificationTests.cs @@ -1,9 +1,9 @@ -using NUnit.Framework; +using NUnit.Framework; using OtpNet; -using Sentinel.Api.Application.DTO.User; -using Sentinel.Api.Integration.Tests.Common; +using Mycelium.Api.Application.DTO.User; +using Mycelium.Api.Integration.Tests.Common; -namespace Sentinel.Api.Integration.Tests.User.Authentication; +namespace Mycelium.Api.Integration.Tests.User.Authentication; public class VerificationTests { diff --git a/tests/Sentinel.Api.Integration.Tests/User/Modification/UpdateUserTests.cs b/tests/Mycelium.Api.Integration.Tests/User/Modification/UpdateUserTests.cs similarity index 63% rename from tests/Sentinel.Api.Integration.Tests/User/Modification/UpdateUserTests.cs rename to tests/Mycelium.Api.Integration.Tests/User/Modification/UpdateUserTests.cs index 1944a25..cc91e9b 100644 --- a/tests/Sentinel.Api.Integration.Tests/User/Modification/UpdateUserTests.cs +++ b/tests/Mycelium.Api.Integration.Tests/User/Modification/UpdateUserTests.cs @@ -1,6 +1,6 @@ -using NUnit.Framework; +using NUnit.Framework; -namespace Sentinel.Api.Integration.Tests.User.Modification; +namespace Mycelium.Api.Integration.Tests.User.Modification; public class UpdateUserTests { From 39798ae421b95e1560c12312af1bb9f39163dbf8 Mon Sep 17 00:00:00 2001 From: Jelle Buning Date: Fri, 24 Apr 2026 09:37:50 +0200 Subject: [PATCH 2/3] fix: match casing for remaining sentinel references - appsettings.json: database name sentinel -> mycelium - Modules.config: applicationKey Sentinel.* -> Mycelium.* Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/Mycelium.Api/appsettings.json | 2 +- src/Mycelium.WorkerService/Modules.config | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Mycelium.Api/appsettings.json b/src/Mycelium.Api/appsettings.json index 7361667..f946148 100644 --- a/src/Mycelium.Api/appsettings.json +++ b/src/Mycelium.Api/appsettings.json @@ -12,6 +12,6 @@ "Audience": "User" }, "ConnectionStrings": { - "Database": "Server=(localdb)\\MSSQLLocalDB;Database=sentinel;Trusted_Connection=True;MultipleActiveResultSets=true" + "Database": "Server=(localdb)\\MSSQLLocalDB;Database=mycelium;Trusted_Connection=True;MultipleActiveResultSets=true" } } \ No newline at end of file diff --git a/src/Mycelium.WorkerService/Modules.config b/src/Mycelium.WorkerService/Modules.config index f82893d..e2b9009 100644 --- a/src/Mycelium.WorkerService/Modules.config +++ b/src/Mycelium.WorkerService/Modules.config @@ -1,6 +1,6 @@  - - - + + + From 94462ddb8dfa4e4d820c52399b3b056b29136a62 Mon Sep 17 00:00:00 2001 From: Jelle Buning Date: Fri, 24 Apr 2026 09:48:12 +0200 Subject: [PATCH 3/3] fix: correct lowercase casing for identifiers and URLs Match original sentinel (lowercase) casing for: - README: h1 title, demo/wiki/shield URLs, docker-compose example (name, service, container, image) - docker-compose.yml: name, service name, container names, network names Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/README.md | 34 ++++++++++++++--------------- src/Mycelium.Api/docker-compose.yml | 14 ++++++------ 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/.github/README.md b/.github/README.md index 7b519b0..7a77aca 100644 --- a/.github/README.md +++ b/.github/README.md @@ -21,14 +21,14 @@
-

Mycelium

+

mycelium

Remote Monitoring and Management (RMM) Software.
- Demo + Demo · - Explore the docs + Explore the docs

@@ -97,11 +97,11 @@ This installation method utilizes Docker Compose for a streamlined setup. Ensure ```yaml version: '3.4' - name: Mycelium + name: mycelium services: - Mycelium-api: - container_name: "Mycelium-api" - image: ghcr.io/jellebuning/Mycelium-api + mycelium-api: + container_name: "mycelium-api" + image: ghcr.io/jellebuning/mycelium-api ports: - "7000:8080" environment: @@ -154,13 +154,13 @@ Distributed under the GNU Affero General Public License v3.0 License. See `LICEN -[contributors-shield]: https://img.shields.io/github/contributors/JelleBuning/Mycelium.svg?style=for-the-badge -[contributors-url]: https://github.com/JelleBuning/Mycelium/graphs/contributors -[forks-shield]: https://img.shields.io/github/forks/JelleBuning/Mycelium.svg?style=for-the-badge -[forks-url]: https://github.com/JelleBuning/Mycelium/network/members -[stars-shield]: https://img.shields.io/github/stars/JelleBuning/Mycelium.svg?style=for-the-badge -[stars-url]: https://github.com/JelleBuning/Mycelium/stargazers -[issues-shield]: https://img.shields.io/github/issues/JelleBuning/Mycelium.svg?style=for-the-badge -[issues-url]: https://github.com/JelleBuning/Mycelium/issues -[license-shield]: https://img.shields.io/github/license/JelleBuning/Mycelium.svg?style=for-the-badge -[license-url]: https://github.com/JelleBuning/Mycelium/blob/master/LICENSE +[contributors-shield]: https://img.shields.io/github/contributors/JelleBuning/mycelium.svg?style=for-the-badge +[contributors-url]: https://github.com/JelleBuning/mycelium/graphs/contributors +[forks-shield]: https://img.shields.io/github/forks/JelleBuning/mycelium.svg?style=for-the-badge +[forks-url]: https://github.com/JelleBuning/mycelium/network/members +[stars-shield]: https://img.shields.io/github/stars/JelleBuning/mycelium.svg?style=for-the-badge +[stars-url]: https://github.com/JelleBuning/mycelium/stargazers +[issues-shield]: https://img.shields.io/github/issues/JelleBuning/mycelium.svg?style=for-the-badge +[issues-url]: https://github.com/JelleBuning/mycelium/issues +[license-shield]: https://img.shields.io/github/license/JelleBuning/mycelium.svg?style=for-the-badge +[license-url]: https://github.com/JelleBuning/mycelium/blob/master/LICENSE diff --git a/src/Mycelium.Api/docker-compose.yml b/src/Mycelium.Api/docker-compose.yml index 4531305..e87dda1 100644 --- a/src/Mycelium.Api/docker-compose.yml +++ b/src/Mycelium.Api/docker-compose.yml @@ -1,9 +1,9 @@ -name: Mycelium +name: mycelium services: - Mycelium.api: - container_name: "Mycelium.api" + mycelium.api: + container_name: "mycelium.api" networks: - - Mycelium_network + - mycelium_network build: context: . dockerfile: Dockerfile @@ -27,12 +27,12 @@ services: timeout: 3s retries: 10 start_period: 10s - container_name: "Mycelium.db" + container_name: "mycelium.db" networks: - - Mycelium_network + - mycelium_network ports: - "1433:1433" networks: - Mycelium_network: + mycelium_network: driver: bridge \ No newline at end of file