From d8545c54665b8560bf5409b5ce2d1e4522d412e0 Mon Sep 17 00:00:00 2001 From: Mirko Da Corte Date: Mon, 2 Dec 2024 18:13:02 +0100 Subject: [PATCH] Refactor project: rename from BeehiveManager to Beehive --- .github/workflows/stable-release.yml | 2 +- .github/workflows/unstable-release.yml | 2 +- .../.idea/.gitignore | 0 .idea/.idea.Beehive/.idea/.name | 1 + .../.idea/encodings.xml | 0 .../.idea/indexLayout.xml | 0 .../.idea/vcs.xml | 0 .idea/.idea.BeehiveManager/.idea/.name | 1 - BeehiveManager.sln => Beehive.sln | 10 ++-- ...sln.DotSettings => Beehive.sln.DotSettings | 8 +-- Dockerfile | 10 ++-- README.md | 8 +-- samples/docker-beehive-sample/README.md | 4 +- .../docker-beehive-sample/docker-compose.yml | 6 +- .../Beehive.Domain.csproj} | 2 +- .../Events/SetBeeNodeAddressesEvent.cs | 12 ++-- .../IBeehiveDbContext.cs | 12 ++-- .../Models/BeeNode.cs | 10 ++-- .../Models/EntityModelBase.cs | 10 ++-- .../Models/ModelBase.cs | 10 ++-- .../Properties/AssemblyInfo.cs | 10 ++-- .../Beehive.Persistence.csproj} | 4 +- .../BeehiveDbContext.cs} | 22 +++---- .../IEventDispatcherDbContext.cs | 15 ++--- .../ModelMaps/BeeNodeMap.cs | 12 ++-- .../ModelMaps/ModelBaseMap.cs | 12 ++-- .../Properties/AssemblyInfo.cs | 8 +-- .../Repositories/DomainRepository.cs | 13 ++--- .../Beehive.Services.csproj} | 4 +- src/Beehive.Services/Domain/BeeNodeService.cs | 37 ++++++++++++ .../Domain/IBeeNodeService.cs | 12 ++-- ...nBeeNodeCreatedThenAddNodeStatusHandler.cs | 14 ++--- ...eNodeDeletedThenRemoveNodeStatusHandler.cs | 14 ++--- .../Extensions/IEnumerableExtensions.cs | 10 ++-- .../Extensions/LoggerExtensions.cs | 10 ++-- .../Properties/AssemblyInfo.cs | 8 +-- .../ServiceCollectionExtensions.cs | 17 +++--- .../CashoutAllNodesChequesSettings.cs | 10 ++-- .../NodesAddressMaintainerSettings.cs | 10 ++-- .../NodesChequebookMaintainerSettings.cs | 10 ++-- .../Tasks/CashoutAllNodesChequesTask.cs | 16 +++--- .../Tasks/ICashoutAllNodesChequesTask.cs | 10 ++-- .../Tasks/INodesAddressMaintainerTask.cs | 10 ++-- .../Tasks/INodesChequebookMaintainerTask.cs | 10 ++-- .../Tasks/IPinContentInNodeTask.cs | 10 ++-- .../Tasks/NodesAddressMaintainerTask.cs | 16 +++--- .../Tasks/NodesChequebookMaintainerTask.cs | 17 +++--- .../Tasks/PinContentInNodeTask.cs | 12 ++-- .../Tasks/Queues.cs | 10 ++-- .../Utilities/BeeNodeLiveManager.cs | 20 +++---- .../Utilities/IBeeNodeLiveManager.cs | 16 +++--- .../Utilities/Models/BeeNodeAddresses.cs | 10 ++-- .../Utilities/Models/BeeNodeLiveInstance.cs | 13 ++--- .../Utilities/Models/BeeNodeSelectionMode.cs | 10 ++-- .../Utilities/Models/BeeNodeStatus.cs | 10 ++-- .../Utilities/Models/ChainState.cs | 10 ++-- .../Areas/Api/ApiHostingStartup.cs | 12 ++-- .../Areas/Api/Controllers/ChainController.cs | 16 +++--- .../Api/Controllers/LoadBalancerController.cs | 17 +++--- .../Areas/Api/Controllers/NodesController.cs | 18 +++--- .../Api/Controllers/PinningController.cs | 16 +++--- .../Api/Controllers/PostageController.cs | 16 +++--- .../Areas/Api/DtoModels/BeeNodeDto.cs | 12 ++-- .../Areas/Api/DtoModels/BeeNodeStatusDto.cs | 12 ++-- .../Areas/Api/DtoModels/ChainStateDto.cs | 12 ++-- .../Areas/Api/DtoModels/PinnedResourceDto.cs | 10 ++-- .../Areas/Api/DtoModels/PostageBatchDto.cs | 10 ++-- .../Areas/Api/DtoModels/PostageBatchRefDto.cs | 10 ++-- .../Areas/Api/InputModels/BeeNodeInput.cs | 10 ++-- .../Api/InputModels/UpdateNodeConfigInput.cs | 10 ++-- .../Api/Services/ChainControllerService.cs | 14 ++--- .../Api/Services/IChainControllerService.cs | 12 ++-- .../ILoadBalancerControllerService.cs | 12 ++-- .../Api/Services/INodesControllerService.cs | 14 ++--- .../Api/Services/IPinningControllerService.cs | 12 ++-- .../Api/Services/IPostageControllerService.cs | 12 ++-- .../Services/LoadBalancerControllerService.cs | 18 +++--- .../Api/Services/NodesControllerService.cs | 22 +++---- .../Api/Services/PinningControllerService.cs | 22 +++---- .../Api/Services/PostageControllerService.cs | 16 +++--- .../SimpleExceptionFilterAttribute.cs | 10 ++-- .../SwarmResourceValidationAttribute.cs | 10 ++-- .../Beehive.csproj} | 8 +-- .../Configs/CommonConsts.cs | 10 ++-- .../Configs/Hangfire/AllowAllFilter.cs | 10 ++-- .../Configs/MongODM/AllowAllFilter.cs | 10 ++-- .../Swagger/ConfigureSwaggerOptions.cs | 14 ++--- .../Configs/Swagger/SwaggerDefaultValues.cs | 10 ++-- .../Configs/SystemStore/XmlRepository.cs | 10 ++-- .../ServiceConfigurationException.cs | 10 ++-- .../ApplicationBuilderExtensions.cs | 12 ++-- .../DataProtectionBuilderExtensions.cs | 12 ++-- .../Pages/Index.cshtml | 2 +- .../Pages/Index.cshtml.cs | 10 ++-- .../Pages/Shared/_Layout.cshtml | 6 +- .../Pages/Shared/_Layout.cshtml.css | 0 .../Shared/_ValidationScriptsPartial.cshtml | 0 src/Beehive/Pages/_ViewImports.cshtml | 3 + .../Pages/_ViewStart.cshtml | 0 src/{BeehiveManager => Beehive}/Program.cs | 54 +++++++++--------- .../Properties/AssemblyInfo.cs | 8 +-- .../Properties/GlobalSuppressions.cs | 10 ++-- .../Properties/launchSettings.json | 2 +- .../Settings/SeedDbSettings.cs | 10 ++-- .../appsettings.Development.json | 6 +- .../appsettings.Production.json | 0 .../appsettings.json | 0 .../wwwroot/css/site.css | 0 .../wwwroot/favicon.ico | Bin .../wwwroot/js/site.js | 0 .../wwwroot/lib/bootstrap/LICENSE | 0 .../lib/bootstrap/dist/css/bootstrap-grid.css | 0 .../bootstrap/dist/css/bootstrap-grid.css.map | 0 .../bootstrap/dist/css/bootstrap-grid.min.css | 0 .../dist/css/bootstrap-grid.min.css.map | 0 .../bootstrap/dist/css/bootstrap-grid.rtl.css | 0 .../dist/css/bootstrap-grid.rtl.css.map | 0 .../dist/css/bootstrap-grid.rtl.min.css | 0 .../dist/css/bootstrap-grid.rtl.min.css.map | 0 .../bootstrap/dist/css/bootstrap-reboot.css | 0 .../dist/css/bootstrap-reboot.css.map | 0 .../dist/css/bootstrap-reboot.min.css | 0 .../dist/css/bootstrap-reboot.min.css.map | 0 .../dist/css/bootstrap-reboot.rtl.css | 0 .../dist/css/bootstrap-reboot.rtl.css.map | 0 .../dist/css/bootstrap-reboot.rtl.min.css | 0 .../dist/css/bootstrap-reboot.rtl.min.css.map | 0 .../dist/css/bootstrap-utilities.css | 0 .../dist/css/bootstrap-utilities.css.map | 0 .../dist/css/bootstrap-utilities.min.css | 0 .../dist/css/bootstrap-utilities.min.css.map | 0 .../dist/css/bootstrap-utilities.rtl.css | 0 .../dist/css/bootstrap-utilities.rtl.css.map | 0 .../dist/css/bootstrap-utilities.rtl.min.css | 0 .../css/bootstrap-utilities.rtl.min.css.map | 0 .../lib/bootstrap/dist/css/bootstrap.css | 0 .../lib/bootstrap/dist/css/bootstrap.css.map | 0 .../lib/bootstrap/dist/css/bootstrap.min.css | 0 .../bootstrap/dist/css/bootstrap.min.css.map | 0 .../lib/bootstrap/dist/css/bootstrap.rtl.css | 0 .../bootstrap/dist/css/bootstrap.rtl.css.map | 0 .../bootstrap/dist/css/bootstrap.rtl.min.css | 0 .../dist/css/bootstrap.rtl.min.css.map | 0 .../lib/bootstrap/dist/js/bootstrap.bundle.js | 0 .../bootstrap/dist/js/bootstrap.bundle.js.map | 0 .../bootstrap/dist/js/bootstrap.bundle.min.js | 0 .../dist/js/bootstrap.bundle.min.js.map | 0 .../lib/bootstrap/dist/js/bootstrap.esm.js | 0 .../bootstrap/dist/js/bootstrap.esm.js.map | 0 .../bootstrap/dist/js/bootstrap.esm.min.js | 0 .../dist/js/bootstrap.esm.min.js.map | 0 .../lib/bootstrap/dist/js/bootstrap.js | 0 .../lib/bootstrap/dist/js/bootstrap.js.map | 0 .../lib/bootstrap/dist/js/bootstrap.min.js | 0 .../bootstrap/dist/js/bootstrap.min.js.map | 0 .../jquery-validation-unobtrusive/LICENSE.txt | 0 .../jquery.validate.unobtrusive.js | 0 .../jquery.validate.unobtrusive.min.js | 0 .../wwwroot/lib/jquery-validation/LICENSE.md | 0 .../dist/additional-methods.js | 0 .../dist/additional-methods.min.js | 0 .../jquery-validation/dist/jquery.validate.js | 0 .../dist/jquery.validate.min.js | 0 .../wwwroot/lib/jquery/LICENSE.txt | 0 .../wwwroot/lib/jquery/dist/jquery.js | 0 .../wwwroot/lib/jquery/dist/jquery.min.js | 0 .../wwwroot/lib/jquery/dist/jquery.min.map | 0 .../Domain/BeeNodeService.cs | 47 --------------- src/BeehiveManager/Pages/_ViewImports.cshtml | 3 - .../Beehive.Persistence.Tests.csproj} | 4 +- .../Helpers/DbContextMockHelper.cs | 10 ++-- .../Helpers/DeserializationTestElement.cs | 12 ++-- .../BeehiveDbContextDeserializationTest.cs | 26 ++++----- .../Properties/AssemblyInfo.cs | 8 +-- 174 files changed, 611 insertions(+), 631 deletions(-) rename .idea/{.idea.BeehiveManager => .idea.Beehive}/.idea/.gitignore (100%) create mode 100644 .idea/.idea.Beehive/.idea/.name rename .idea/{.idea.BeehiveManager => .idea.Beehive}/.idea/encodings.xml (100%) rename .idea/{.idea.BeehiveManager => .idea.Beehive}/.idea/indexLayout.xml (100%) rename .idea/{.idea.BeehiveManager => .idea.Beehive}/.idea/vcs.xml (100%) delete mode 100644 .idea/.idea.BeehiveManager/.idea/.name rename BeehiveManager.sln => Beehive.sln (82%) rename BeehiveManager.sln.DotSettings => Beehive.sln.DotSettings (81%) rename src/{BeehiveManager.Domain/BeehiveManager.Domain.csproj => Beehive.Domain/Beehive.Domain.csproj} (90%) rename src/{BeehiveManager.Domain => Beehive.Domain}/Events/SetBeeNodeAddressesEvent.cs (66%) rename src/{BeehiveManager.Domain => Beehive.Domain}/IBeehiveDbContext.cs (67%) rename src/{BeehiveManager.Domain => Beehive.Domain}/Models/BeeNode.cs (85%) rename src/{BeehiveManager.Domain => Beehive.Domain}/Models/EntityModelBase.cs (87%) rename src/{BeehiveManager.Domain => Beehive.Domain}/Models/ModelBase.cs (73%) rename src/{BeehiveManager.Domain => Beehive.Domain}/Properties/AssemblyInfo.cs (65%) rename src/{BeehiveManager.Persistence/BeehiveManager.Persistence.csproj => Beehive.Persistence/Beehive.Persistence.csproj} (71%) rename src/{BeehiveManager.Persistence/BeehiveManagerDbContext.cs => Beehive.Persistence/BeehiveDbContext.cs} (81%) rename src/{BeehiveManager.Persistence => Beehive.Persistence}/IEventDispatcherDbContext.cs (60%) rename src/{BeehiveManager.Persistence => Beehive.Persistence}/ModelMaps/BeeNodeMap.cs (89%) rename src/{BeehiveManager.Persistence => Beehive.Persistence}/ModelMaps/ModelBaseMap.cs (79%) rename src/{BeehiveManager => Beehive.Persistence}/Properties/AssemblyInfo.cs (65%) rename src/{BeehiveManager.Persistence => Beehive.Persistence}/Repositories/DomainRepository.cs (89%) rename src/{BeehiveManager.Services/BeehiveManager.Services.csproj => Beehive.Services/Beehive.Services.csproj} (84%) create mode 100644 src/Beehive.Services/Domain/BeeNodeService.cs rename src/{BeehiveManager.Services => Beehive.Services}/Domain/IBeeNodeService.cs (62%) rename src/{BeehiveManager.Services => Beehive.Services}/EventHandlers/OnBeeNodeCreatedThenAddNodeStatusHandler.cs (69%) rename src/{BeehiveManager.Services => Beehive.Services}/EventHandlers/OnBeeNodeDeletedThenRemoveNodeStatusHandler.cs (69%) rename src/{BeehiveManager.Services => Beehive.Services}/Extensions/IEnumerableExtensions.cs (80%) rename src/{BeehiveManager.Services => Beehive.Services}/Extensions/LoggerExtensions.cs (96%) rename src/{BeehiveManager.Persistence => Beehive.Services}/Properties/AssemblyInfo.cs (65%) rename src/{BeehiveManager.Services => Beehive.Services}/ServiceCollectionExtensions.cs (82%) rename src/{BeehiveManager.Services => Beehive.Services}/Settings/CashoutAllNodesChequesSettings.cs (69%) rename src/{BeehiveManager.Services => Beehive.Services}/Settings/NodesAddressMaintainerSettings.cs (83%) rename src/{BeehiveManager.Services => Beehive.Services}/Settings/NodesChequebookMaintainerSettings.cs (75%) rename src/{BeehiveManager.Services => Beehive.Services}/Tasks/CashoutAllNodesChequesTask.cs (86%) rename src/{BeehiveManager.Services => Beehive.Services}/Tasks/ICashoutAllNodesChequesTask.cs (71%) rename src/{BeehiveManager.Services => Beehive.Services}/Tasks/INodesAddressMaintainerTask.cs (70%) rename src/{BeehiveManager.Services => Beehive.Services}/Tasks/INodesChequebookMaintainerTask.cs (71%) rename src/{BeehiveManager.Services => Beehive.Services}/Tasks/IPinContentInNodeTask.cs (67%) rename src/{BeehiveManager.Services => Beehive.Services}/Tasks/NodesAddressMaintainerTask.cs (94%) rename src/{BeehiveManager.Services => Beehive.Services}/Tasks/NodesChequebookMaintainerTask.cs (88%) rename src/{BeehiveManager.Services => Beehive.Services}/Tasks/PinContentInNodeTask.cs (79%) rename src/{BeehiveManager.Services => Beehive.Services}/Tasks/Queues.cs (69%) rename src/{BeehiveManager.Services => Beehive.Services}/Utilities/BeeNodeLiveManager.cs (93%) rename src/{BeehiveManager.Services => Beehive.Services}/Utilities/IBeeNodeLiveManager.cs (75%) rename src/{BeehiveManager.Services => Beehive.Services}/Utilities/Models/BeeNodeAddresses.cs (81%) rename src/{BeehiveManager.Services => Beehive.Services}/Utilities/Models/BeeNodeLiveInstance.cs (94%) rename src/{BeehiveManager.Services => Beehive.Services}/Utilities/Models/BeeNodeSelectionMode.cs (63%) rename src/{BeehiveManager.Services => Beehive.Services}/Utilities/Models/BeeNodeStatus.cs (92%) rename src/{BeehiveManager.Services => Beehive.Services}/Utilities/Models/ChainState.cs (78%) rename src/{BeehiveManager => Beehive}/Areas/Api/ApiHostingStartup.cs (81%) rename src/{BeehiveManager => Beehive}/Areas/Api/Controllers/ChainController.cs (70%) rename src/{BeehiveManager => Beehive}/Areas/Api/Controllers/LoadBalancerController.cs (87%) rename src/{BeehiveManager => Beehive}/Areas/Api/Controllers/NodesController.cs (95%) rename src/{BeehiveManager => Beehive}/Areas/Api/Controllers/PinningController.cs (87%) rename src/{BeehiveManager => Beehive}/Areas/Api/Controllers/PostageController.cs (87%) rename src/{BeehiveManager => Beehive}/Areas/Api/DtoModels/BeeNodeDto.cs (76%) rename src/{BeehiveManager => Beehive}/Areas/Api/DtoModels/BeeNodeStatusDto.cs (82%) rename src/{BeehiveManager => Beehive}/Areas/Api/DtoModels/ChainStateDto.cs (75%) rename src/{BeehiveManager => Beehive}/Areas/Api/DtoModels/PinnedResourceDto.cs (73%) rename src/{BeehiveManager => Beehive}/Areas/Api/DtoModels/PostageBatchDto.cs (84%) rename src/{BeehiveManager => Beehive}/Areas/Api/DtoModels/PostageBatchRefDto.cs (68%) rename src/{BeehiveManager => Beehive}/Areas/Api/InputModels/BeeNodeInput.cs (72%) rename src/{BeehiveManager => Beehive}/Areas/Api/InputModels/UpdateNodeConfigInput.cs (71%) rename src/{BeehiveManager => Beehive}/Areas/Api/Services/ChainControllerService.cs (64%) rename src/{BeehiveManager => Beehive}/Areas/Api/Services/IChainControllerService.cs (60%) rename src/{BeehiveManager => Beehive}/Areas/Api/Services/ILoadBalancerControllerService.cs (67%) rename src/{BeehiveManager => Beehive}/Areas/Api/Services/INodesControllerService.cs (80%) rename src/{BeehiveManager => Beehive}/Areas/Api/Services/IPinningControllerService.cs (67%) rename src/{BeehiveManager => Beehive}/Areas/Api/Services/IPostageControllerService.cs (72%) rename src/{BeehiveManager => Beehive}/Areas/Api/Services/LoadBalancerControllerService.cs (85%) rename src/{BeehiveManager => Beehive}/Areas/Api/Services/NodesControllerService.cs (92%) rename src/{BeehiveManager => Beehive}/Areas/Api/Services/PinningControllerService.cs (83%) rename src/{BeehiveManager => Beehive}/Areas/Api/Services/PostageControllerService.cs (86%) rename src/{BeehiveManager => Beehive}/Attributes/SimpleExceptionFilterAttribute.cs (85%) rename src/{BeehiveManager => Beehive}/Attributes/SwarmResourceValidationAttribute.cs (77%) rename src/{BeehiveManager/BeehiveManager.csproj => Beehive/Beehive.csproj} (83%) rename src/{BeehiveManager => Beehive}/Configs/CommonConsts.cs (69%) rename src/{BeehiveManager => Beehive}/Configs/Hangfire/AllowAllFilter.cs (68%) rename src/{BeehiveManager => Beehive}/Configs/MongODM/AllowAllFilter.cs (69%) rename src/{BeehiveManager => Beehive}/Configs/Swagger/ConfigureSwaggerOptions.cs (85%) rename src/{BeehiveManager => Beehive}/Configs/Swagger/SwaggerDefaultValues.cs (88%) rename src/{BeehiveManager => Beehive}/Configs/SystemStore/XmlRepository.cs (88%) rename src/{BeehiveManager => Beehive}/Exceptions/ServiceConfigurationException.cs (72%) rename src/{BeehiveManager => Beehive}/Extensions/ApplicationBuilderExtensions.cs (74%) rename src/{BeehiveManager => Beehive}/Extensions/DataProtectionBuilderExtensions.cs (81%) rename src/{BeehiveManager => Beehive}/Pages/Index.cshtml (92%) rename src/{BeehiveManager => Beehive}/Pages/Index.cshtml.cs (66%) rename src/{BeehiveManager => Beehive}/Pages/Shared/_Layout.cshtml (90%) rename src/{BeehiveManager => Beehive}/Pages/Shared/_Layout.cshtml.css (100%) rename src/{BeehiveManager => Beehive}/Pages/Shared/_ValidationScriptsPartial.cshtml (100%) create mode 100644 src/Beehive/Pages/_ViewImports.cshtml rename src/{BeehiveManager => Beehive}/Pages/_ViewStart.cshtml (100%) rename src/{BeehiveManager => Beehive}/Program.cs (88%) rename src/{BeehiveManager.Services => Beehive}/Properties/AssemblyInfo.cs (65%) rename src/{BeehiveManager => Beehive}/Properties/GlobalSuppressions.cs (75%) rename src/{BeehiveManager => Beehive}/Properties/launchSettings.json (95%) rename src/{BeehiveManager => Beehive}/Settings/SeedDbSettings.cs (80%) rename src/{BeehiveManager => Beehive}/appsettings.Development.json (88%) rename src/{BeehiveManager => Beehive}/appsettings.Production.json (100%) rename src/{BeehiveManager => Beehive}/appsettings.json (100%) rename src/{BeehiveManager => Beehive}/wwwroot/css/site.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/favicon.ico (100%) rename src/{BeehiveManager => Beehive}/wwwroot/js/site.js (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/LICENSE (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.min.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-grid.rtl.min.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-reboot.rtl.min.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.min.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap-utilities.rtl.min.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap.min.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/css/bootstrap.rtl.min.css.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.js.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.js.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/js/bootstrap.esm.min.js.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/js/bootstrap.js (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/js/bootstrap.js.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/bootstrap/dist/js/bootstrap.min.js.map (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/jquery-validation/LICENSE.md (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/jquery-validation/dist/additional-methods.js (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/jquery-validation/dist/additional-methods.min.js (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/jquery-validation/dist/jquery.validate.js (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/jquery-validation/dist/jquery.validate.min.js (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/jquery/LICENSE.txt (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/jquery/dist/jquery.js (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/jquery/dist/jquery.min.js (100%) rename src/{BeehiveManager => Beehive}/wwwroot/lib/jquery/dist/jquery.min.map (100%) delete mode 100644 src/BeehiveManager.Services/Domain/BeeNodeService.cs delete mode 100644 src/BeehiveManager/Pages/_ViewImports.cshtml rename test/{BeehiveManager.Persistence.Tests/BeehiveManager.Persistence.Tests.csproj => Beehive.Persistence.Tests/Beehive.Persistence.Tests.csproj} (84%) rename test/{BeehiveManager.Persistence.Tests => Beehive.Persistence.Tests}/Helpers/DbContextMockHelper.cs (94%) rename test/{BeehiveManager.Persistence.Tests => Beehive.Persistence.Tests}/Helpers/DeserializationTestElement.cs (75%) rename test/{BeehiveManager.Persistence.Tests => Beehive.Persistence.Tests}/ModelMaps/BeehiveDbContextDeserializationTest.cs (89%) rename test/{BeehiveManager.Persistence.Tests => Beehive.Persistence.Tests}/Properties/AssemblyInfo.cs (65%) diff --git a/.github/workflows/stable-release.yml b/.github/workflows/stable-release.yml index 997bcbf..87ff34d 100644 --- a/.github/workflows/stable-release.yml +++ b/.github/workflows/stable-release.yml @@ -19,7 +19,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: etherna/beehive-manager + images: etherna/beehive tags: | type=semver,pattern=v{{major}} type=semver,pattern=v{{major}}.{{minor}} diff --git a/.github/workflows/unstable-release.yml b/.github/workflows/unstable-release.yml index ac005f7..261be13 100644 --- a/.github/workflows/unstable-release.yml +++ b/.github/workflows/unstable-release.yml @@ -19,7 +19,7 @@ jobs: id: meta uses: docker/metadata-action@v5 with: - images: etherna/beehive-manager + images: etherna/beehive tags: | type=ref,event=branch diff --git a/.idea/.idea.BeehiveManager/.idea/.gitignore b/.idea/.idea.Beehive/.idea/.gitignore similarity index 100% rename from .idea/.idea.BeehiveManager/.idea/.gitignore rename to .idea/.idea.Beehive/.idea/.gitignore diff --git a/.idea/.idea.Beehive/.idea/.name b/.idea/.idea.Beehive/.idea/.name new file mode 100644 index 0000000..5f1cc78 --- /dev/null +++ b/.idea/.idea.Beehive/.idea/.name @@ -0,0 +1 @@ +Beehive \ No newline at end of file diff --git a/.idea/.idea.BeehiveManager/.idea/encodings.xml b/.idea/.idea.Beehive/.idea/encodings.xml similarity index 100% rename from .idea/.idea.BeehiveManager/.idea/encodings.xml rename to .idea/.idea.Beehive/.idea/encodings.xml diff --git a/.idea/.idea.BeehiveManager/.idea/indexLayout.xml b/.idea/.idea.Beehive/.idea/indexLayout.xml similarity index 100% rename from .idea/.idea.BeehiveManager/.idea/indexLayout.xml rename to .idea/.idea.Beehive/.idea/indexLayout.xml diff --git a/.idea/.idea.BeehiveManager/.idea/vcs.xml b/.idea/.idea.Beehive/.idea/vcs.xml similarity index 100% rename from .idea/.idea.BeehiveManager/.idea/vcs.xml rename to .idea/.idea.Beehive/.idea/vcs.xml diff --git a/.idea/.idea.BeehiveManager/.idea/.name b/.idea/.idea.BeehiveManager/.idea/.name deleted file mode 100644 index 3168717..0000000 --- a/.idea/.idea.BeehiveManager/.idea/.name +++ /dev/null @@ -1 +0,0 @@ -BeehiveManager \ No newline at end of file diff --git a/BeehiveManager.sln b/Beehive.sln similarity index 82% rename from BeehiveManager.sln rename to Beehive.sln index ddb8b4f..14d1892 100644 --- a/BeehiveManager.sln +++ b/Beehive.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.3.32819.101 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BeehiveManager", "src\BeehiveManager\BeehiveManager.csproj", "{E14D105A-A294-4F67-BC95-58C5178E2818}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Beehive", "src\Beehive\Beehive.csproj", "{E14D105A-A294-4F67-BC95-58C5178E2818}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{61C3814F-A839-44D7-8335-0F365D3FFA8C}" ProjectSection(SolutionItems) = preProject @@ -17,11 +17,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{1CD13F83-9A79-4873-A8E3-77A2D432D706}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BeehiveManager.Domain", "src\BeehiveManager.Domain\BeehiveManager.Domain.csproj", "{125AB1B7-31FD-4BA5-8282-6AC48C3522BB}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Beehive.Domain", "src\Beehive.Domain\Beehive.Domain.csproj", "{125AB1B7-31FD-4BA5-8282-6AC48C3522BB}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BeehiveManager.Services", "src\BeehiveManager.Services\BeehiveManager.Services.csproj", "{36854E0C-B2C5-4F32-95BB-8FB0EE57EFF0}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Beehive.Services", "src\Beehive.Services\Beehive.Services.csproj", "{36854E0C-B2C5-4F32-95BB-8FB0EE57EFF0}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BeehiveManager.Persistence", "src\BeehiveManager.Persistence\BeehiveManager.Persistence.csproj", "{74960F98-A78D-40A5-8CD1-20E05DB4DD35}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Beehive.Persistence", "src\Beehive.Persistence\Beehive.Persistence.csproj", "{74960F98-A78D-40A5-8CD1-20E05DB4DD35}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "samples", "samples", "{2100F089-0589-448E-93E0-45B069DDCE64}" EndProject @@ -33,7 +33,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "docker-beehive-sample", "do EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{CE10A1ED-2695-44EC-97F1-CB91FC5412D8}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "BeehiveManager.Persistence.Tests", "test\BeehiveManager.Persistence.Tests\BeehiveManager.Persistence.Tests.csproj", "{74F4D982-085D-42F4-9E61-C288B25E64CB}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Beehive.Persistence.Tests", "test\Beehive.Persistence.Tests\Beehive.Persistence.Tests.csproj", "{74F4D982-085D-42F4-9E61-C288B25E64CB}" EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{9EEC390E-0D81-4379-A02A-C1A7B55CF431}" ProjectSection(SolutionItems) = preProject diff --git a/BeehiveManager.sln.DotSettings b/Beehive.sln.DotSettings similarity index 81% rename from BeehiveManager.sln.DotSettings rename to Beehive.sln.DotSettings index b28e04e..c2a1e7b 100644 --- a/BeehiveManager.sln.DotSettings +++ b/Beehive.sln.DotSettings @@ -1,16 +1,16 @@  Copyright 2021-present Etherna SA -This file is part of BeehiveManager. +This file is part of Beehive. -BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +Beehive is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. -BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. -You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +You should have received a copy of the GNU Affero General Public License along with Beehive. If not, see <https://www.gnu.org/licenses/>. True True \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 333f8b5..176ef43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,14 +5,14 @@ EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build WORKDIR /src COPY . . -RUN dotnet restore "BeehiveManager.sln" -RUN dotnet build "BeehiveManager.sln" -c Release -o /app/build -RUN dotnet test "BeehiveManager.sln" -c Release +RUN dotnet restore "Beehive.sln" +RUN dotnet build "Beehive.sln" -c Release -o /app/build +RUN dotnet test "Beehive.sln" -c Release FROM build AS publish -RUN dotnet publish "BeehiveManager.sln" -c Release -o /app/publish +RUN dotnet publish "Beehive.sln" -c Release -o /app/publish FROM base AS final WORKDIR /app COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "BeehiveManager.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "Beehive.dll"] \ No newline at end of file diff --git a/README.md b/README.md index db3ef75..745f79c 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,17 @@ -# Beehive Manager +# Beehive ## Overview -Beehive Manager is an utility for manage a cluster of [Bee Swarm](https://github.com/ethersphere/bee) nodes. +Beehive is a utility to manage a cluster of [Bee Swarm](https://github.com/ethersphere/bee) nodes. -This manager exposes a REST Api that permits to register and interact programmatically with different Bee nodes. +Beehive exposes a REST Api that permits to register and interact programmatically with different Bee nodes. It runs also an async task engine that can run cron operations, like automatic scheduled cashout. It uses a MongoDB instance for keep cluster configuration. ## Docker images -You can get latest stable and unstable releases from our [Docker Hub repository](https://hub.docker.com/r/etherna/beehive-manager). +You can get latest stable and unstable releases from our [Docker Hub repository](https://hub.docker.com/r/etherna/beehive). You can find a sample on how to run with Docker Compose [here](samples/docker-beehive-sample) diff --git a/samples/docker-beehive-sample/README.md b/samples/docker-beehive-sample/README.md index 0cb6588..150ef8e 100644 --- a/samples/docker-beehive-sample/README.md +++ b/samples/docker-beehive-sample/README.md @@ -2,7 +2,7 @@ Execute the sample ================== Environment has been built with `docker-compose`. -It created a MongoDB and a Beehive Manager instance with a dedicated shared network. +It created a MongoDB and a Beehive instance with a dedicated shared network. Run it with: @@ -19,7 +19,7 @@ Configuration Application can be configured using environement variables: -* `ConnectionStrings__BeehiveManagerDb`: application's main db connection string +* `ConnectionStrings__BeehiveDb`: application's main db connection string * `ConnectionStrings__HangfireDb`: async engine db connection string * `ConnectionStrings__SystemDb`: system configuration db connection string diff --git a/samples/docker-beehive-sample/docker-compose.yml b/samples/docker-beehive-sample/docker-compose.yml index dd938d7..af50824 100644 --- a/samples/docker-beehive-sample/docker-compose.yml +++ b/samples/docker-beehive-sample/docker-compose.yml @@ -1,10 +1,10 @@ version: "3.8" services: - beehive-manager: - image: etherna/beehive-manager:latest + beehive: + image: etherna/beehive:latest environment: - - ConnectionStrings__BeehiveManagerDb=mongodb://mongo/beehive # application db + - ConnectionStrings__BeehiveDb=mongodb://mongo/beehive # application db - ConnectionStrings__DataProtectionDb=mongodb://mongo/beehiveDataProtection # system db - ConnectionStrings__HangfireDb=mongodb://mongo/beehiveHangfire # async worker db networks: diff --git a/src/BeehiveManager.Domain/BeehiveManager.Domain.csproj b/src/Beehive.Domain/Beehive.Domain.csproj similarity index 90% rename from src/BeehiveManager.Domain/BeehiveManager.Domain.csproj rename to src/Beehive.Domain/Beehive.Domain.csproj index 70007bc..8bafd09 100644 --- a/src/BeehiveManager.Domain/BeehiveManager.Domain.csproj +++ b/src/Beehive.Domain/Beehive.Domain.csproj @@ -2,7 +2,7 @@ net9.0 - Etherna.BeehiveManager.Domain + Etherna.Beehive.Domain Etherna SA diff --git a/src/BeehiveManager.Domain/Events/SetBeeNodeAddressesEvent.cs b/src/Beehive.Domain/Events/SetBeeNodeAddressesEvent.cs similarity index 66% rename from src/BeehiveManager.Domain/Events/SetBeeNodeAddressesEvent.cs rename to src/Beehive.Domain/Events/SetBeeNodeAddressesEvent.cs index ddef7c8..28bf365 100644 --- a/src/BeehiveManager.Domain/Events/SetBeeNodeAddressesEvent.cs +++ b/src/Beehive.Domain/Events/SetBeeNodeAddressesEvent.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Domain.Models; +using Etherna.Beehive.Domain.Models; using Etherna.DomainEvents; -namespace Etherna.BeehiveManager.Domain.Events +namespace Etherna.Beehive.Domain.Events { public class SetBeeNodeAddressesEvent : IDomainEvent { diff --git a/src/BeehiveManager.Domain/IBeehiveDbContext.cs b/src/Beehive.Domain/IBeehiveDbContext.cs similarity index 67% rename from src/BeehiveManager.Domain/IBeehiveDbContext.cs rename to src/Beehive.Domain/IBeehiveDbContext.cs index 07c7fdf..a5616b5 100644 --- a/src/BeehiveManager.Domain/IBeehiveDbContext.cs +++ b/src/Beehive.Domain/IBeehiveDbContext.cs @@ -1,23 +1,23 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Domain.Models; +using Etherna.Beehive.Domain.Models; using Etherna.DomainEvents; using Etherna.MongODM.Core; using Etherna.MongODM.Core.Repositories; -namespace Etherna.BeehiveManager.Domain +namespace Etherna.Beehive.Domain { public interface IBeehiveDbContext : IDbContext { diff --git a/src/BeehiveManager.Domain/Models/BeeNode.cs b/src/Beehive.Domain/Models/BeeNode.cs similarity index 85% rename from src/BeehiveManager.Domain/Models/BeeNode.cs rename to src/Beehive.Domain/Models/BeeNode.cs index 5ae790c..71cc213 100644 --- a/src/BeehiveManager.Domain/Models/BeeNode.cs +++ b/src/Beehive.Domain/Models/BeeNode.cs @@ -1,20 +1,20 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using System; -namespace Etherna.BeehiveManager.Domain.Models +namespace Etherna.Beehive.Domain.Models { public class BeeNode : EntityModelBase { diff --git a/src/BeehiveManager.Domain/Models/EntityModelBase.cs b/src/Beehive.Domain/Models/EntityModelBase.cs similarity index 87% rename from src/BeehiveManager.Domain/Models/EntityModelBase.cs rename to src/Beehive.Domain/Models/EntityModelBase.cs index 6ef5669..a769a73 100644 --- a/src/BeehiveManager.Domain/Models/EntityModelBase.cs +++ b/src/Beehive.Domain/Models/EntityModelBase.cs @@ -1,15 +1,15 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Etherna.DomainEvents; @@ -17,7 +17,7 @@ using System; using System.Collections.Generic; -namespace Etherna.BeehiveManager.Domain.Models +namespace Etherna.Beehive.Domain.Models { public abstract class EntityModelBase : ModelBase, IEntityModel { diff --git a/src/BeehiveManager.Domain/Models/ModelBase.cs b/src/Beehive.Domain/Models/ModelBase.cs similarity index 73% rename from src/BeehiveManager.Domain/Models/ModelBase.cs rename to src/Beehive.Domain/Models/ModelBase.cs index a7312e1..bbf22cb 100644 --- a/src/BeehiveManager.Domain/Models/ModelBase.cs +++ b/src/Beehive.Domain/Models/ModelBase.cs @@ -1,22 +1,22 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Etherna.MongODM.Core.Domain.Models; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; -namespace Etherna.BeehiveManager.Domain.Models +namespace Etherna.Beehive.Domain.Models { public abstract class ModelBase : IModel { diff --git a/src/BeehiveManager.Domain/Properties/AssemblyInfo.cs b/src/Beehive.Domain/Properties/AssemblyInfo.cs similarity index 65% rename from src/BeehiveManager.Domain/Properties/AssemblyInfo.cs rename to src/Beehive.Domain/Properties/AssemblyInfo.cs index 3b34773..69a3d02 100644 --- a/src/BeehiveManager.Domain/Properties/AssemblyInfo.cs +++ b/src/Beehive.Domain/Properties/AssemblyInfo.cs @@ -1,20 +1,20 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using System; using System.Runtime.CompilerServices; [assembly: CLSCompliant(false)] -[assembly: InternalsVisibleTo("BeehiveManager.Services")] +[assembly: InternalsVisibleTo("Beehive.Services")] [assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")] \ No newline at end of file diff --git a/src/BeehiveManager.Persistence/BeehiveManager.Persistence.csproj b/src/Beehive.Persistence/Beehive.Persistence.csproj similarity index 71% rename from src/BeehiveManager.Persistence/BeehiveManager.Persistence.csproj rename to src/Beehive.Persistence/Beehive.Persistence.csproj index 905ce63..1b490cd 100644 --- a/src/BeehiveManager.Persistence/BeehiveManager.Persistence.csproj +++ b/src/Beehive.Persistence/Beehive.Persistence.csproj @@ -2,7 +2,7 @@ net9.0 - Etherna.BeehiveManager.Persistence + Etherna.Beehive.Persistence Etherna SA @@ -13,7 +13,7 @@ - + diff --git a/src/BeehiveManager.Persistence/BeehiveManagerDbContext.cs b/src/Beehive.Persistence/BeehiveDbContext.cs similarity index 81% rename from src/BeehiveManager.Persistence/BeehiveManagerDbContext.cs rename to src/Beehive.Persistence/BeehiveDbContext.cs index 2455171..68b1e55 100644 --- a/src/BeehiveManager.Persistence/BeehiveManagerDbContext.cs +++ b/src/Beehive.Persistence/BeehiveDbContext.cs @@ -1,20 +1,20 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Domain; -using Etherna.BeehiveManager.Domain.Models; -using Etherna.BeehiveManager.Persistence.Repositories; +using Etherna.Beehive.Domain; +using Etherna.Beehive.Domain.Models; +using Etherna.Beehive.Persistence.Repositories; using Etherna.DomainEvents; using Etherna.MongoDB.Driver; using Etherna.MongODM.Core; @@ -27,15 +27,15 @@ using System.Threading; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Persistence +namespace Etherna.Beehive.Persistence { - public class BeehiveManagerDbContext( + public class BeehiveDbContext( IEventDispatcher eventDispatcher, IEnumerable? seedDbBeeNodes) : DbContext, IBeehiveDbContext, IEventDispatcherDbContext { // Consts. - private const string SerializersNamespace = "Etherna.BeehiveManager.Persistence.ModelMaps"; + private const string SerializersNamespace = "Etherna.Beehive.Persistence.ModelMaps"; // Properties. //repositories @@ -54,7 +54,7 @@ public class BeehiveManagerDbContext( // Protected properties. protected override IEnumerable ModelMapsCollectors => - from t in typeof(BeehiveManagerDbContext).GetTypeInfo().Assembly.GetTypes() + from t in typeof(BeehiveDbContext).GetTypeInfo().Assembly.GetTypes() where t.IsClass && t.Namespace == SerializersNamespace where t.GetInterfaces().Contains(typeof(IModelMapsCollector)) select Activator.CreateInstance(t) as IModelMapsCollector; diff --git a/src/BeehiveManager.Persistence/IEventDispatcherDbContext.cs b/src/Beehive.Persistence/IEventDispatcherDbContext.cs similarity index 60% rename from src/BeehiveManager.Persistence/IEventDispatcherDbContext.cs rename to src/Beehive.Persistence/IEventDispatcherDbContext.cs index aae87b0..8fef1fa 100644 --- a/src/BeehiveManager.Persistence/IEventDispatcherDbContext.cs +++ b/src/Beehive.Persistence/IEventDispatcherDbContext.cs @@ -1,26 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Etherna.DomainEvents; using Etherna.MongODM.Core; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Persistence +namespace Etherna.Beehive.Persistence { public interface IEventDispatcherDbContext : IDbContext { diff --git a/src/BeehiveManager.Persistence/ModelMaps/BeeNodeMap.cs b/src/Beehive.Persistence/ModelMaps/BeeNodeMap.cs similarity index 89% rename from src/BeehiveManager.Persistence/ModelMaps/BeeNodeMap.cs rename to src/Beehive.Persistence/ModelMaps/BeeNodeMap.cs index 3facc1b..93472cc 100644 --- a/src/BeehiveManager.Persistence/ModelMaps/BeeNodeMap.cs +++ b/src/Beehive.Persistence/ModelMaps/BeeNodeMap.cs @@ -1,25 +1,25 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Domain.Models; +using Etherna.Beehive.Domain.Models; using Etherna.MongoDB.Bson; using Etherna.MongoDB.Bson.Serialization.Serializers; using Etherna.MongODM.Core; using Etherna.MongODM.Core.Serialization; using Etherna.MongODM.Core.Serialization.Serializers; -namespace Etherna.BeehiveManager.Persistence.ModelMaps +namespace Etherna.Beehive.Persistence.ModelMaps { internal sealed class BeeNodeMap : IModelMapsCollector { diff --git a/src/BeehiveManager.Persistence/ModelMaps/ModelBaseMap.cs b/src/Beehive.Persistence/ModelMaps/ModelBaseMap.cs similarity index 79% rename from src/BeehiveManager.Persistence/ModelMaps/ModelBaseMap.cs rename to src/Beehive.Persistence/ModelMaps/ModelBaseMap.cs index ce2583c..a351fe9 100644 --- a/src/BeehiveManager.Persistence/ModelMaps/ModelBaseMap.cs +++ b/src/Beehive.Persistence/ModelMaps/ModelBaseMap.cs @@ -1,25 +1,25 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Domain.Models; +using Etherna.Beehive.Domain.Models; using Etherna.MongoDB.Bson; using Etherna.MongoDB.Bson.Serialization.IdGenerators; using Etherna.MongoDB.Bson.Serialization.Serializers; using Etherna.MongODM.Core; using Etherna.MongODM.Core.Serialization; -namespace Etherna.BeehiveManager.Persistence.ModelMaps +namespace Etherna.Beehive.Persistence.ModelMaps { internal sealed class ModelBaseMap : IModelMapsCollector { diff --git a/src/BeehiveManager/Properties/AssemblyInfo.cs b/src/Beehive.Persistence/Properties/AssemblyInfo.cs similarity index 65% rename from src/BeehiveManager/Properties/AssemblyInfo.cs rename to src/Beehive.Persistence/Properties/AssemblyInfo.cs index eeab798..cd4700b 100644 --- a/src/BeehiveManager/Properties/AssemblyInfo.cs +++ b/src/Beehive.Persistence/Properties/AssemblyInfo.cs @@ -1,15 +1,15 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using System; diff --git a/src/BeehiveManager.Persistence/Repositories/DomainRepository.cs b/src/Beehive.Persistence/Repositories/DomainRepository.cs similarity index 89% rename from src/BeehiveManager.Persistence/Repositories/DomainRepository.cs rename to src/Beehive.Persistence/Repositories/DomainRepository.cs index 7220e1f..6d4dcaa 100644 --- a/src/BeehiveManager.Persistence/Repositories/DomainRepository.cs +++ b/src/Beehive.Persistence/Repositories/DomainRepository.cs @@ -1,21 +1,20 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Domain.Models; +using Etherna.Beehive.Domain.Models; using Etherna.DomainEvents; using Etherna.DomainEvents.Events; -using Etherna.MongODM.Core; using Etherna.MongODM.Core.Repositories; using System; using System.Collections.Generic; @@ -23,7 +22,7 @@ using System.Threading; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Persistence.Repositories +namespace Etherna.Beehive.Persistence.Repositories { public class DomainRepository : Repository diff --git a/src/BeehiveManager.Services/BeehiveManager.Services.csproj b/src/Beehive.Services/Beehive.Services.csproj similarity index 84% rename from src/BeehiveManager.Services/BeehiveManager.Services.csproj rename to src/Beehive.Services/Beehive.Services.csproj index e899bf5..b7298ca 100644 --- a/src/BeehiveManager.Services/BeehiveManager.Services.csproj +++ b/src/Beehive.Services/Beehive.Services.csproj @@ -2,7 +2,7 @@ net9.0 - Etherna.BeehiveManager.Services + Etherna.Beehive.Services Etherna SA @@ -23,7 +23,7 @@ - + diff --git a/src/Beehive.Services/Domain/BeeNodeService.cs b/src/Beehive.Services/Domain/BeeNodeService.cs new file mode 100644 index 0000000..5b75521 --- /dev/null +++ b/src/Beehive.Services/Domain/BeeNodeService.cs @@ -0,0 +1,37 @@ +// Copyright 2021-present Etherna SA +// This file is part of Beehive. +// +// Beehive is free software: you can redistribute it and/or modify it under the terms of the +// GNU Affero General Public License as published by the Free Software Foundation, +// either version 3 of the License, or (at your option) any later version. +// +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +// See the GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License along with Beehive. +// If not, see . + +using Etherna.Beehive.Domain; +using Etherna.Beehive.Domain.Models; +using Etherna.Beehive.Services.Utilities; +using Etherna.Beehive.Services.Utilities.Models; +using System; +using System.Threading.Tasks; + +namespace Etherna.Beehive.Services.Domain +{ + public class BeeNodeService( + IBeeNodeLiveManager beeNodeLiveManager, + IBeehiveDbContext dbContext) + : IBeeNodeService + { + // Methods. + public async Task SelectRandomHealthyNodeAsync() + { + var instance = await beeNodeLiveManager.TrySelectHealthyNodeAsync(BeeNodeSelectionMode.Random) ?? + throw new InvalidOperationException("Can't select a valid healthy node"); + return await dbContext.BeeNodes.FindOneAsync(instance.Id); + } + } +} diff --git a/src/BeehiveManager.Services/Domain/IBeeNodeService.cs b/src/Beehive.Services/Domain/IBeeNodeService.cs similarity index 62% rename from src/BeehiveManager.Services/Domain/IBeeNodeService.cs rename to src/Beehive.Services/Domain/IBeeNodeService.cs index ad50853..6654478 100644 --- a/src/BeehiveManager.Services/Domain/IBeeNodeService.cs +++ b/src/Beehive.Services/Domain/IBeeNodeService.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Domain.Models; +using Etherna.Beehive.Domain.Models; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Services.Domain +namespace Etherna.Beehive.Services.Domain { public interface IBeeNodeService { diff --git a/src/BeehiveManager.Services/EventHandlers/OnBeeNodeCreatedThenAddNodeStatusHandler.cs b/src/Beehive.Services/EventHandlers/OnBeeNodeCreatedThenAddNodeStatusHandler.cs similarity index 69% rename from src/BeehiveManager.Services/EventHandlers/OnBeeNodeCreatedThenAddNodeStatusHandler.cs rename to src/Beehive.Services/EventHandlers/OnBeeNodeCreatedThenAddNodeStatusHandler.cs index 6e890f0..79e6d8c 100644 --- a/src/BeehiveManager.Services/EventHandlers/OnBeeNodeCreatedThenAddNodeStatusHandler.cs +++ b/src/Beehive.Services/EventHandlers/OnBeeNodeCreatedThenAddNodeStatusHandler.cs @@ -1,24 +1,24 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Domain.Models; -using Etherna.BeehiveManager.Services.Utilities; +using Etherna.Beehive.Domain.Models; +using Etherna.Beehive.Services.Utilities; using Etherna.DomainEvents; using Etherna.DomainEvents.Events; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Services.EventHandlers +namespace Etherna.Beehive.Services.EventHandlers { internal sealed class OnBeeNodeCreatedThenAddNodeStatusHandler(IBeeNodeLiveManager beeNodeLiveManager) : EventHandlerBase> diff --git a/src/BeehiveManager.Services/EventHandlers/OnBeeNodeDeletedThenRemoveNodeStatusHandler.cs b/src/Beehive.Services/EventHandlers/OnBeeNodeDeletedThenRemoveNodeStatusHandler.cs similarity index 69% rename from src/BeehiveManager.Services/EventHandlers/OnBeeNodeDeletedThenRemoveNodeStatusHandler.cs rename to src/Beehive.Services/EventHandlers/OnBeeNodeDeletedThenRemoveNodeStatusHandler.cs index 4547f0b..618918b 100644 --- a/src/BeehiveManager.Services/EventHandlers/OnBeeNodeDeletedThenRemoveNodeStatusHandler.cs +++ b/src/Beehive.Services/EventHandlers/OnBeeNodeDeletedThenRemoveNodeStatusHandler.cs @@ -1,24 +1,24 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Domain.Models; -using Etherna.BeehiveManager.Services.Utilities; +using Etherna.Beehive.Domain.Models; +using Etherna.Beehive.Services.Utilities; using Etherna.DomainEvents; using Etherna.DomainEvents.Events; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Services.EventHandlers +namespace Etherna.Beehive.Services.EventHandlers { internal sealed class OnBeeNodeDeletedThenRemoveNodeStatusHandler(IBeeNodeLiveManager beeNodeLiveManager) : EventHandlerBase> diff --git a/src/BeehiveManager.Services/Extensions/IEnumerableExtensions.cs b/src/Beehive.Services/Extensions/IEnumerableExtensions.cs similarity index 80% rename from src/BeehiveManager.Services/Extensions/IEnumerableExtensions.cs rename to src/Beehive.Services/Extensions/IEnumerableExtensions.cs index 10f4c66..8ccd5c3 100644 --- a/src/BeehiveManager.Services/Extensions/IEnumerableExtensions.cs +++ b/src/Beehive.Services/Extensions/IEnumerableExtensions.cs @@ -1,22 +1,22 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using System; using System.Collections.Generic; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Services.Extensions +namespace Etherna.Beehive.Services.Extensions { public static class IEnumerableExtensions { diff --git a/src/BeehiveManager.Services/Extensions/LoggerExtensions.cs b/src/Beehive.Services/Extensions/LoggerExtensions.cs similarity index 96% rename from src/BeehiveManager.Services/Extensions/LoggerExtensions.cs rename to src/Beehive.Services/Extensions/LoggerExtensions.cs index d1ce29b..3119d8b 100644 --- a/src/BeehiveManager.Services/Extensions/LoggerExtensions.cs +++ b/src/Beehive.Services/Extensions/LoggerExtensions.cs @@ -1,15 +1,15 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Etherna.BeeNet.Models; @@ -17,7 +17,7 @@ using System; using System.Collections.Generic; -namespace Etherna.BeehiveManager.Services.Extensions +namespace Etherna.Beehive.Services.Extensions { /* * Always group similar log delegates by type, always use incremental event ids. diff --git a/src/BeehiveManager.Persistence/Properties/AssemblyInfo.cs b/src/Beehive.Services/Properties/AssemblyInfo.cs similarity index 65% rename from src/BeehiveManager.Persistence/Properties/AssemblyInfo.cs rename to src/Beehive.Services/Properties/AssemblyInfo.cs index eeab798..cd4700b 100644 --- a/src/BeehiveManager.Persistence/Properties/AssemblyInfo.cs +++ b/src/Beehive.Services/Properties/AssemblyInfo.cs @@ -1,15 +1,15 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using System; diff --git a/src/BeehiveManager.Services/ServiceCollectionExtensions.cs b/src/Beehive.Services/ServiceCollectionExtensions.cs similarity index 82% rename from src/BeehiveManager.Services/ServiceCollectionExtensions.cs rename to src/Beehive.Services/ServiceCollectionExtensions.cs index 012aab7..95220cb 100644 --- a/src/BeehiveManager.Services/ServiceCollectionExtensions.cs +++ b/src/Beehive.Services/ServiceCollectionExtensions.cs @@ -1,28 +1,27 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Services.Domain; -using Etherna.BeehiveManager.Services.Tasks; -using Etherna.BeehiveManager.Services.Utilities; +using Etherna.Beehive.Services.Domain; +using Etherna.Beehive.Services.Tasks; +using Etherna.Beehive.Services.Utilities; using Etherna.DomainEvents; using Etherna.DomainEvents.AspNetCore; using Microsoft.Extensions.DependencyInjection; -using System; using System.Linq; using System.Reflection; -namespace Etherna.BeehiveManager.Services +namespace Etherna.Beehive.Services { public static class ServiceCollectionExtensions { diff --git a/src/BeehiveManager.Services/Settings/CashoutAllNodesChequesSettings.cs b/src/Beehive.Services/Settings/CashoutAllNodesChequesSettings.cs similarity index 69% rename from src/BeehiveManager.Services/Settings/CashoutAllNodesChequesSettings.cs rename to src/Beehive.Services/Settings/CashoutAllNodesChequesSettings.cs index 0dcb4fc..95b4af1 100644 --- a/src/BeehiveManager.Services/Settings/CashoutAllNodesChequesSettings.cs +++ b/src/Beehive.Services/Settings/CashoutAllNodesChequesSettings.cs @@ -1,20 +1,20 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Etherna.BeeNet.Models; -namespace Etherna.BeehiveManager.Services.Settings +namespace Etherna.Beehive.Services.Settings { public class CashoutAllNodesChequesSettings { diff --git a/src/BeehiveManager.Services/Settings/NodesAddressMaintainerSettings.cs b/src/Beehive.Services/Settings/NodesAddressMaintainerSettings.cs similarity index 83% rename from src/BeehiveManager.Services/Settings/NodesAddressMaintainerSettings.cs rename to src/Beehive.Services/Settings/NodesAddressMaintainerSettings.cs index df1b36c..30d7c87 100644 --- a/src/BeehiveManager.Services/Settings/NodesAddressMaintainerSettings.cs +++ b/src/Beehive.Services/Settings/NodesAddressMaintainerSettings.cs @@ -1,18 +1,18 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -namespace Etherna.BeehiveManager.Services.Settings +namespace Etherna.Beehive.Services.Settings { public class NodesAddressMaintainerSettings { diff --git a/src/BeehiveManager.Services/Settings/NodesChequebookMaintainerSettings.cs b/src/Beehive.Services/Settings/NodesChequebookMaintainerSettings.cs similarity index 75% rename from src/BeehiveManager.Services/Settings/NodesChequebookMaintainerSettings.cs rename to src/Beehive.Services/Settings/NodesChequebookMaintainerSettings.cs index f5ba8c2..87b0d26 100644 --- a/src/BeehiveManager.Services/Settings/NodesChequebookMaintainerSettings.cs +++ b/src/Beehive.Services/Settings/NodesChequebookMaintainerSettings.cs @@ -1,18 +1,18 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -namespace Etherna.BeehiveManager.Services.Settings +namespace Etherna.Beehive.Services.Settings { public class NodesChequebookMaintainerSettings { diff --git a/src/BeehiveManager.Services/Tasks/CashoutAllNodesChequesTask.cs b/src/Beehive.Services/Tasks/CashoutAllNodesChequesTask.cs similarity index 86% rename from src/BeehiveManager.Services/Tasks/CashoutAllNodesChequesTask.cs rename to src/Beehive.Services/Tasks/CashoutAllNodesChequesTask.cs index b788416..bc73649 100644 --- a/src/BeehiveManager.Services/Tasks/CashoutAllNodesChequesTask.cs +++ b/src/Beehive.Services/Tasks/CashoutAllNodesChequesTask.cs @@ -1,20 +1,20 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Services.Extensions; -using Etherna.BeehiveManager.Services.Settings; -using Etherna.BeehiveManager.Services.Utilities; +using Etherna.Beehive.Services.Settings; +using Etherna.Beehive.Services.Utilities; +using Etherna.Beehive.Services.Extensions; using Etherna.BeeNet.Exceptions; using Etherna.BeeNet.Models; using Microsoft.Extensions.Logging; @@ -24,7 +24,7 @@ using System.Net.Http; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Services.Tasks +namespace Etherna.Beehive.Services.Tasks { public class CashoutAllNodesChequesTask( IBeeNodeLiveManager liveManager, diff --git a/src/BeehiveManager.Services/Tasks/ICashoutAllNodesChequesTask.cs b/src/Beehive.Services/Tasks/ICashoutAllNodesChequesTask.cs similarity index 71% rename from src/BeehiveManager.Services/Tasks/ICashoutAllNodesChequesTask.cs rename to src/Beehive.Services/Tasks/ICashoutAllNodesChequesTask.cs index 633a0c8..d80a6c1 100644 --- a/src/BeehiveManager.Services/Tasks/ICashoutAllNodesChequesTask.cs +++ b/src/Beehive.Services/Tasks/ICashoutAllNodesChequesTask.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Hangfire; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Services.Tasks +namespace Etherna.Beehive.Services.Tasks { /// /// Cash out all cheques from other nodes in the Swarm network, when total cheques with it pass over a limit. diff --git a/src/BeehiveManager.Services/Tasks/INodesAddressMaintainerTask.cs b/src/Beehive.Services/Tasks/INodesAddressMaintainerTask.cs similarity index 70% rename from src/BeehiveManager.Services/Tasks/INodesAddressMaintainerTask.cs rename to src/Beehive.Services/Tasks/INodesAddressMaintainerTask.cs index 7b5c9fe..9b72f28 100644 --- a/src/BeehiveManager.Services/Tasks/INodesAddressMaintainerTask.cs +++ b/src/Beehive.Services/Tasks/INodesAddressMaintainerTask.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Hangfire; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Services.Tasks +namespace Etherna.Beehive.Services.Tasks { /// /// Deposit BZZ and xDai on nodes' addresses when under a min limit. diff --git a/src/BeehiveManager.Services/Tasks/INodesChequebookMaintainerTask.cs b/src/Beehive.Services/Tasks/INodesChequebookMaintainerTask.cs similarity index 71% rename from src/BeehiveManager.Services/Tasks/INodesChequebookMaintainerTask.cs rename to src/Beehive.Services/Tasks/INodesChequebookMaintainerTask.cs index 5ae4ee8..40e38a5 100644 --- a/src/BeehiveManager.Services/Tasks/INodesChequebookMaintainerTask.cs +++ b/src/Beehive.Services/Tasks/INodesChequebookMaintainerTask.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Hangfire; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Services.Tasks +namespace Etherna.Beehive.Services.Tasks { /// /// Deposit or withdraw funds from chequebooks of maintained nodes, when they pass min or max limits. diff --git a/src/BeehiveManager.Services/Tasks/IPinContentInNodeTask.cs b/src/Beehive.Services/Tasks/IPinContentInNodeTask.cs similarity index 67% rename from src/BeehiveManager.Services/Tasks/IPinContentInNodeTask.cs rename to src/Beehive.Services/Tasks/IPinContentInNodeTask.cs index 39e75e5..9803a6e 100644 --- a/src/BeehiveManager.Services/Tasks/IPinContentInNodeTask.cs +++ b/src/Beehive.Services/Tasks/IPinContentInNodeTask.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Hangfire; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Services.Tasks +namespace Etherna.Beehive.Services.Tasks { public interface IPinContentInNodeTask { diff --git a/src/BeehiveManager.Services/Tasks/NodesAddressMaintainerTask.cs b/src/Beehive.Services/Tasks/NodesAddressMaintainerTask.cs similarity index 94% rename from src/BeehiveManager.Services/Tasks/NodesAddressMaintainerTask.cs rename to src/Beehive.Services/Tasks/NodesAddressMaintainerTask.cs index 9dcc85c..ce64e19 100644 --- a/src/BeehiveManager.Services/Tasks/NodesAddressMaintainerTask.cs +++ b/src/Beehive.Services/Tasks/NodesAddressMaintainerTask.cs @@ -1,20 +1,20 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Services.Extensions; -using Etherna.BeehiveManager.Services.Settings; -using Etherna.BeehiveManager.Services.Utilities; +using Etherna.Beehive.Services.Settings; +using Etherna.Beehive.Services.Utilities; +using Etherna.Beehive.Services.Extensions; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; using Nethereum.Contracts.Standards.ERC20.ContractDefinition; @@ -28,7 +28,7 @@ using System.Numerics; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Services.Tasks +namespace Etherna.Beehive.Services.Tasks { public class NodesAddressMaintainerTask : INodesAddressMaintainerTask, IDisposable { diff --git a/src/BeehiveManager.Services/Tasks/NodesChequebookMaintainerTask.cs b/src/Beehive.Services/Tasks/NodesChequebookMaintainerTask.cs similarity index 88% rename from src/BeehiveManager.Services/Tasks/NodesChequebookMaintainerTask.cs rename to src/Beehive.Services/Tasks/NodesChequebookMaintainerTask.cs index bc73b99..32ea697 100644 --- a/src/BeehiveManager.Services/Tasks/NodesChequebookMaintainerTask.cs +++ b/src/Beehive.Services/Tasks/NodesChequebookMaintainerTask.cs @@ -1,29 +1,28 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Services.Extensions; -using Etherna.BeehiveManager.Services.Settings; -using Etherna.BeehiveManager.Services.Utilities; +using Etherna.Beehive.Services.Extensions; +using Etherna.Beehive.Services.Settings; +using Etherna.Beehive.Services.Utilities; using Etherna.BeeNet.Models; using Microsoft.Extensions.Logging; using Microsoft.Extensions.Options; -using Nethereum.Web3; using System; using System.Diagnostics.CodeAnalysis; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Services.Tasks +namespace Etherna.Beehive.Services.Tasks { public class NodesChequebookMaintainerTask : INodesChequebookMaintainerTask { diff --git a/src/BeehiveManager.Services/Tasks/PinContentInNodeTask.cs b/src/Beehive.Services/Tasks/PinContentInNodeTask.cs similarity index 79% rename from src/BeehiveManager.Services/Tasks/PinContentInNodeTask.cs rename to src/Beehive.Services/Tasks/PinContentInNodeTask.cs index fa7aed7..6f05fb3 100644 --- a/src/BeehiveManager.Services/Tasks/PinContentInNodeTask.cs +++ b/src/Beehive.Services/Tasks/PinContentInNodeTask.cs @@ -1,23 +1,23 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Services.Utilities; +using Etherna.Beehive.Services.Utilities; using System; using System.Collections.Generic; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Services.Tasks +namespace Etherna.Beehive.Services.Tasks { public class PinContentInNodeTask(IBeeNodeLiveManager beeNodeLiveManager) : IPinContentInNodeTask diff --git a/src/BeehiveManager.Services/Tasks/Queues.cs b/src/Beehive.Services/Tasks/Queues.cs similarity index 69% rename from src/BeehiveManager.Services/Tasks/Queues.cs rename to src/Beehive.Services/Tasks/Queues.cs index 09c9032..862da4d 100644 --- a/src/BeehiveManager.Services/Tasks/Queues.cs +++ b/src/Beehive.Services/Tasks/Queues.cs @@ -1,18 +1,18 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -namespace Etherna.BeehiveManager.Services.Tasks +namespace Etherna.Beehive.Services.Tasks { public static class Queues { diff --git a/src/BeehiveManager.Services/Utilities/BeeNodeLiveManager.cs b/src/Beehive.Services/Utilities/BeeNodeLiveManager.cs similarity index 93% rename from src/BeehiveManager.Services/Utilities/BeeNodeLiveManager.cs rename to src/Beehive.Services/Utilities/BeeNodeLiveManager.cs index 75ed34a..e3f545c 100644 --- a/src/BeehiveManager.Services/Utilities/BeeNodeLiveManager.cs +++ b/src/Beehive.Services/Utilities/BeeNodeLiveManager.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Domain; -using Etherna.BeehiveManager.Domain.Models; -using Etherna.BeehiveManager.Services.Extensions; -using Etherna.BeehiveManager.Services.Utilities.Models; +using Etherna.Beehive.Domain; +using Etherna.Beehive.Domain.Models; +using Etherna.Beehive.Services.Extensions; +using Etherna.Beehive.Services.Utilities.Models; using Etherna.BeeNet.Exceptions; using Etherna.BeeNet.Models; using Etherna.MongoDB.Driver.Linq; @@ -27,9 +27,9 @@ using System.Net.Sockets; using System.Threading; using System.Threading.Tasks; -using ChainState = Etherna.BeehiveManager.Services.Utilities.Models.ChainState; +using ChainState = Etherna.Beehive.Services.Utilities.Models.ChainState; -namespace Etherna.BeehiveManager.Services.Utilities +namespace Etherna.Beehive.Services.Utilities { /// /// Manage live instances of bee nodes diff --git a/src/BeehiveManager.Services/Utilities/IBeeNodeLiveManager.cs b/src/Beehive.Services/Utilities/IBeeNodeLiveManager.cs similarity index 75% rename from src/BeehiveManager.Services/Utilities/IBeeNodeLiveManager.cs rename to src/Beehive.Services/Utilities/IBeeNodeLiveManager.cs index d6542fb..b155801 100644 --- a/src/BeehiveManager.Services/Utilities/IBeeNodeLiveManager.cs +++ b/src/Beehive.Services/Utilities/IBeeNodeLiveManager.cs @@ -1,26 +1,26 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Domain.Models; -using Etherna.BeehiveManager.Services.Utilities.Models; +using Etherna.Beehive.Domain.Models; +using Etherna.Beehive.Services.Utilities.Models; using Etherna.BeeNet.Models; using System; using System.Collections.Generic; using System.Threading.Tasks; -using ChainState = Etherna.BeehiveManager.Services.Utilities.Models.ChainState; +using ChainState = Etherna.Beehive.Services.Utilities.Models.ChainState; -namespace Etherna.BeehiveManager.Services.Utilities +namespace Etherna.Beehive.Services.Utilities { public interface IBeeNodeLiveManager { diff --git a/src/BeehiveManager.Services/Utilities/Models/BeeNodeAddresses.cs b/src/Beehive.Services/Utilities/Models/BeeNodeAddresses.cs similarity index 81% rename from src/BeehiveManager.Services/Utilities/Models/BeeNodeAddresses.cs rename to src/Beehive.Services/Utilities/Models/BeeNodeAddresses.cs index 4b3cf53..1719c91 100644 --- a/src/BeehiveManager.Services/Utilities/Models/BeeNodeAddresses.cs +++ b/src/Beehive.Services/Utilities/Models/BeeNodeAddresses.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Nethereum.Util; using System; -namespace Etherna.BeehiveManager.Services.Utilities.Models +namespace Etherna.Beehive.Services.Utilities.Models { public class BeeNodeAddresses { diff --git a/src/BeehiveManager.Services/Utilities/Models/BeeNodeLiveInstance.cs b/src/Beehive.Services/Utilities/Models/BeeNodeLiveInstance.cs similarity index 94% rename from src/BeehiveManager.Services/Utilities/Models/BeeNodeLiveInstance.cs rename to src/Beehive.Services/Utilities/Models/BeeNodeLiveInstance.cs index 0a1a279..1a787b9 100644 --- a/src/BeehiveManager.Services/Utilities/Models/BeeNodeLiveInstance.cs +++ b/src/Beehive.Services/Utilities/Models/BeeNodeLiveInstance.cs @@ -1,20 +1,19 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Domain.Models; +using Etherna.Beehive.Domain.Models; using Etherna.BeeNet; -using Etherna.BeeNet.Clients; using Etherna.BeeNet.Exceptions; using Etherna.BeeNet.Models; using System; @@ -25,7 +24,7 @@ using System.Net.Sockets; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Services.Utilities.Models +namespace Etherna.Beehive.Services.Utilities.Models { public class BeeNodeLiveInstance { diff --git a/src/BeehiveManager.Services/Utilities/Models/BeeNodeSelectionMode.cs b/src/Beehive.Services/Utilities/Models/BeeNodeSelectionMode.cs similarity index 63% rename from src/BeehiveManager.Services/Utilities/Models/BeeNodeSelectionMode.cs rename to src/Beehive.Services/Utilities/Models/BeeNodeSelectionMode.cs index d560038..660954f 100644 --- a/src/BeehiveManager.Services/Utilities/Models/BeeNodeSelectionMode.cs +++ b/src/Beehive.Services/Utilities/Models/BeeNodeSelectionMode.cs @@ -1,18 +1,18 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -namespace Etherna.BeehiveManager.Services.Utilities.Models +namespace Etherna.Beehive.Services.Utilities.Models { public enum BeeNodeSelectionMode { diff --git a/src/BeehiveManager.Services/Utilities/Models/BeeNodeStatus.cs b/src/Beehive.Services/Utilities/Models/BeeNodeStatus.cs similarity index 92% rename from src/BeehiveManager.Services/Utilities/Models/BeeNodeStatus.cs rename to src/Beehive.Services/Utilities/Models/BeeNodeStatus.cs index 96c0b06..f889b7e 100644 --- a/src/BeehiveManager.Services/Utilities/Models/BeeNodeStatus.cs +++ b/src/Beehive.Services/Utilities/Models/BeeNodeStatus.cs @@ -1,15 +1,15 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Etherna.BeeNet.Models; @@ -17,7 +17,7 @@ using System.Collections.Generic; using System.Linq; -namespace Etherna.BeehiveManager.Services.Utilities.Models +namespace Etherna.Beehive.Services.Utilities.Models { public class BeeNodeStatus { diff --git a/src/BeehiveManager.Services/Utilities/Models/ChainState.cs b/src/Beehive.Services/Utilities/Models/ChainState.cs similarity index 78% rename from src/BeehiveManager.Services/Utilities/Models/ChainState.cs rename to src/Beehive.Services/Utilities/Models/ChainState.cs index 5f5205d..08fb21e 100644 --- a/src/BeehiveManager.Services/Utilities/Models/ChainState.cs +++ b/src/Beehive.Services/Utilities/Models/ChainState.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Etherna.BeeNet.Models; using System; -namespace Etherna.BeehiveManager.Services.Utilities.Models +namespace Etherna.Beehive.Services.Utilities.Models { public class ChainState { diff --git a/src/BeehiveManager/Areas/Api/ApiHostingStartup.cs b/src/Beehive/Areas/Api/ApiHostingStartup.cs similarity index 81% rename from src/BeehiveManager/Areas/Api/ApiHostingStartup.cs rename to src/Beehive/Areas/Api/ApiHostingStartup.cs index 96cf26f..53dd399 100644 --- a/src/BeehiveManager/Areas/Api/ApiHostingStartup.cs +++ b/src/Beehive/Areas/Api/ApiHostingStartup.cs @@ -1,15 +1,15 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Microsoft.AspNetCore.Hosting; @@ -18,8 +18,8 @@ using System.Linq; using System.Reflection; -[assembly: HostingStartup(typeof(Etherna.BeehiveManager.Areas.Api.ApiHostingStartup))] -namespace Etherna.BeehiveManager.Areas.Api +[assembly: HostingStartup(typeof(Etherna.Beehive.Areas.Api.ApiHostingStartup))] +namespace Etherna.Beehive.Areas.Api { public class ApiHostingStartup : IHostingStartup { diff --git a/src/BeehiveManager/Areas/Api/Controllers/ChainController.cs b/src/Beehive/Areas/Api/Controllers/ChainController.cs similarity index 70% rename from src/BeehiveManager/Areas/Api/Controllers/ChainController.cs rename to src/Beehive/Areas/Api/Controllers/ChainController.cs index 04afa5d..3bcf012 100644 --- a/src/BeehiveManager/Areas/Api/Controllers/ChainController.cs +++ b/src/Beehive/Areas/Api/Controllers/ChainController.cs @@ -1,24 +1,24 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Areas.Api.DtoModels; -using Etherna.BeehiveManager.Areas.Api.Services; -using Etherna.BeehiveManager.Attributes; +using Etherna.Beehive.Areas.Api.DtoModels; +using Etherna.Beehive.Areas.Api.Services; +using Etherna.Beehive.Attributes; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -namespace Etherna.BeehiveManager.Areas.Api.Controllers +namespace Etherna.Beehive.Areas.Api.Controllers { [ApiController] [ApiVersion("0.3")] diff --git a/src/BeehiveManager/Areas/Api/Controllers/LoadBalancerController.cs b/src/Beehive/Areas/Api/Controllers/LoadBalancerController.cs similarity index 87% rename from src/BeehiveManager/Areas/Api/Controllers/LoadBalancerController.cs rename to src/Beehive/Areas/Api/Controllers/LoadBalancerController.cs index b7d55c4..ddcca4b 100644 --- a/src/BeehiveManager/Areas/Api/Controllers/LoadBalancerController.cs +++ b/src/Beehive/Areas/Api/Controllers/LoadBalancerController.cs @@ -1,28 +1,27 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Areas.Api.DtoModels; -using Etherna.BeehiveManager.Areas.Api.Services; -using Etherna.BeehiveManager.Attributes; +using Etherna.Beehive.Areas.Api.DtoModels; +using Etherna.Beehive.Areas.Api.Services; +using Etherna.Beehive.Attributes; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; -using System; using System.ComponentModel.DataAnnotations; using System.Globalization; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Areas.Api.Controllers +namespace Etherna.Beehive.Areas.Api.Controllers { [ApiController] [ApiVersion("0.3")] diff --git a/src/BeehiveManager/Areas/Api/Controllers/NodesController.cs b/src/Beehive/Areas/Api/Controllers/NodesController.cs similarity index 95% rename from src/BeehiveManager/Areas/Api/Controllers/NodesController.cs rename to src/Beehive/Areas/Api/Controllers/NodesController.cs index cb7e9ba..18af270 100644 --- a/src/BeehiveManager/Areas/Api/Controllers/NodesController.cs +++ b/src/Beehive/Areas/Api/Controllers/NodesController.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Areas.Api.DtoModels; -using Etherna.BeehiveManager.Areas.Api.InputModels; -using Etherna.BeehiveManager.Areas.Api.Services; -using Etherna.BeehiveManager.Attributes; +using Etherna.Beehive.Areas.Api.DtoModels; +using Etherna.Beehive.Areas.Api.InputModels; +using Etherna.Beehive.Areas.Api.Services; +using Etherna.Beehive.Attributes; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; @@ -23,7 +23,7 @@ using System.Linq; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Areas.Api.Controllers +namespace Etherna.Beehive.Areas.Api.Controllers { [ApiController] [ApiVersion("0.3")] diff --git a/src/BeehiveManager/Areas/Api/Controllers/PinningController.cs b/src/Beehive/Areas/Api/Controllers/PinningController.cs similarity index 87% rename from src/BeehiveManager/Areas/Api/Controllers/PinningController.cs rename to src/Beehive/Areas/Api/Controllers/PinningController.cs index 1c70cfd..0f8420e 100644 --- a/src/BeehiveManager/Areas/Api/Controllers/PinningController.cs +++ b/src/Beehive/Areas/Api/Controllers/PinningController.cs @@ -1,20 +1,20 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Areas.Api.DtoModels; -using Etherna.BeehiveManager.Areas.Api.Services; -using Etherna.BeehiveManager.Attributes; +using Etherna.Beehive.Areas.Api.DtoModels; +using Etherna.Beehive.Areas.Api.Services; +using Etherna.Beehive.Attributes; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System.Collections.Generic; @@ -23,7 +23,7 @@ using System.Linq; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Areas.Api.Controllers +namespace Etherna.Beehive.Areas.Api.Controllers { [ApiController] [ApiVersion("0.3")] diff --git a/src/BeehiveManager/Areas/Api/Controllers/PostageController.cs b/src/Beehive/Areas/Api/Controllers/PostageController.cs similarity index 87% rename from src/BeehiveManager/Areas/Api/Controllers/PostageController.cs rename to src/Beehive/Areas/Api/Controllers/PostageController.cs index ce8e1e3..2e1c4a7 100644 --- a/src/BeehiveManager/Areas/Api/Controllers/PostageController.cs +++ b/src/Beehive/Areas/Api/Controllers/PostageController.cs @@ -1,27 +1,27 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Areas.Api.DtoModels; -using Etherna.BeehiveManager.Areas.Api.Services; -using Etherna.BeehiveManager.Attributes; +using Etherna.Beehive.Areas.Api.DtoModels; +using Etherna.Beehive.Areas.Api.Services; +using Etherna.Beehive.Attributes; using Etherna.BeeNet.Models; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System.ComponentModel.DataAnnotations; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Areas.Api.Controllers +namespace Etherna.Beehive.Areas.Api.Controllers { [ApiController] [ApiVersion("0.3")] diff --git a/src/BeehiveManager/Areas/Api/DtoModels/BeeNodeDto.cs b/src/Beehive/Areas/Api/DtoModels/BeeNodeDto.cs similarity index 76% rename from src/BeehiveManager/Areas/Api/DtoModels/BeeNodeDto.cs rename to src/Beehive/Areas/Api/DtoModels/BeeNodeDto.cs index 43060c6..777a30d 100644 --- a/src/BeehiveManager/Areas/Api/DtoModels/BeeNodeDto.cs +++ b/src/Beehive/Areas/Api/DtoModels/BeeNodeDto.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Domain.Models; +using Etherna.Beehive.Domain.Models; using System; -namespace Etherna.BeehiveManager.Areas.Api.DtoModels +namespace Etherna.Beehive.Areas.Api.DtoModels { public class BeeNodeDto { diff --git a/src/BeehiveManager/Areas/Api/DtoModels/BeeNodeStatusDto.cs b/src/Beehive/Areas/Api/DtoModels/BeeNodeStatusDto.cs similarity index 82% rename from src/BeehiveManager/Areas/Api/DtoModels/BeeNodeStatusDto.cs rename to src/Beehive/Areas/Api/DtoModels/BeeNodeStatusDto.cs index 8dcd7a7..809302a 100644 --- a/src/BeehiveManager/Areas/Api/DtoModels/BeeNodeStatusDto.cs +++ b/src/Beehive/Areas/Api/DtoModels/BeeNodeStatusDto.cs @@ -1,23 +1,23 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Services.Utilities.Models; +using Etherna.Beehive.Services.Utilities.Models; using System; using System.Collections.Generic; using System.Linq; -namespace Etherna.BeehiveManager.Areas.Api.DtoModels +namespace Etherna.Beehive.Areas.Api.DtoModels { public class BeeNodeStatusDto { diff --git a/src/BeehiveManager/Areas/Api/DtoModels/ChainStateDto.cs b/src/Beehive/Areas/Api/DtoModels/ChainStateDto.cs similarity index 75% rename from src/BeehiveManager/Areas/Api/DtoModels/ChainStateDto.cs rename to src/Beehive/Areas/Api/DtoModels/ChainStateDto.cs index a75d201..b86b89b 100644 --- a/src/BeehiveManager/Areas/Api/DtoModels/ChainStateDto.cs +++ b/src/Beehive/Areas/Api/DtoModels/ChainStateDto.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Services.Utilities.Models; +using Etherna.Beehive.Services.Utilities.Models; using System; -namespace Etherna.BeehiveManager.Areas.Api.DtoModels +namespace Etherna.Beehive.Areas.Api.DtoModels { public class ChainStateDto { diff --git a/src/BeehiveManager/Areas/Api/DtoModels/PinnedResourceDto.cs b/src/Beehive/Areas/Api/DtoModels/PinnedResourceDto.cs similarity index 73% rename from src/BeehiveManager/Areas/Api/DtoModels/PinnedResourceDto.cs rename to src/Beehive/Areas/Api/DtoModels/PinnedResourceDto.cs index 6a5deab..b9f7ee8 100644 --- a/src/BeehiveManager/Areas/Api/DtoModels/PinnedResourceDto.cs +++ b/src/Beehive/Areas/Api/DtoModels/PinnedResourceDto.cs @@ -1,20 +1,20 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Etherna.BeeNet.Models; -namespace Etherna.BeehiveManager.Areas.Api.DtoModels +namespace Etherna.Beehive.Areas.Api.DtoModels { public enum PinnedResourceStatusDto { diff --git a/src/BeehiveManager/Areas/Api/DtoModels/PostageBatchDto.cs b/src/Beehive/Areas/Api/DtoModels/PostageBatchDto.cs similarity index 84% rename from src/BeehiveManager/Areas/Api/DtoModels/PostageBatchDto.cs rename to src/Beehive/Areas/Api/DtoModels/PostageBatchDto.cs index 50d1c33..157a82e 100644 --- a/src/BeehiveManager/Areas/Api/DtoModels/PostageBatchDto.cs +++ b/src/Beehive/Areas/Api/DtoModels/PostageBatchDto.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Etherna.BeeNet.Models; using System; -namespace Etherna.BeehiveManager.Areas.Api.DtoModels +namespace Etherna.Beehive.Areas.Api.DtoModels { public class PostageBatchDto { diff --git a/src/BeehiveManager/Areas/Api/DtoModels/PostageBatchRefDto.cs b/src/Beehive/Areas/Api/DtoModels/PostageBatchRefDto.cs similarity index 68% rename from src/BeehiveManager/Areas/Api/DtoModels/PostageBatchRefDto.cs rename to src/Beehive/Areas/Api/DtoModels/PostageBatchRefDto.cs index eb06290..57a0af2 100644 --- a/src/BeehiveManager/Areas/Api/DtoModels/PostageBatchRefDto.cs +++ b/src/Beehive/Areas/Api/DtoModels/PostageBatchRefDto.cs @@ -1,20 +1,20 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Etherna.BeeNet.Models; -namespace Etherna.BeehiveManager.Areas.Api.DtoModels +namespace Etherna.Beehive.Areas.Api.DtoModels { public class PostageBatchRefDto( PostageBatchId batchId, diff --git a/src/BeehiveManager/Areas/Api/InputModels/BeeNodeInput.cs b/src/Beehive/Areas/Api/InputModels/BeeNodeInput.cs similarity index 72% rename from src/BeehiveManager/Areas/Api/InputModels/BeeNodeInput.cs rename to src/Beehive/Areas/Api/InputModels/BeeNodeInput.cs index 1eb01c4..106dde8 100644 --- a/src/BeehiveManager/Areas/Api/InputModels/BeeNodeInput.cs +++ b/src/Beehive/Areas/Api/InputModels/BeeNodeInput.cs @@ -1,20 +1,20 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using System.ComponentModel.DataAnnotations; -namespace Etherna.BeehiveManager.Areas.Api.InputModels +namespace Etherna.Beehive.Areas.Api.InputModels { public class BeeNodeInput { diff --git a/src/BeehiveManager/Areas/Api/InputModels/UpdateNodeConfigInput.cs b/src/Beehive/Areas/Api/InputModels/UpdateNodeConfigInput.cs similarity index 71% rename from src/BeehiveManager/Areas/Api/InputModels/UpdateNodeConfigInput.cs rename to src/Beehive/Areas/Api/InputModels/UpdateNodeConfigInput.cs index a1af8a3..cb073ad 100644 --- a/src/BeehiveManager/Areas/Api/InputModels/UpdateNodeConfigInput.cs +++ b/src/Beehive/Areas/Api/InputModels/UpdateNodeConfigInput.cs @@ -1,20 +1,20 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using System.ComponentModel.DataAnnotations; -namespace Etherna.BeehiveManager.Areas.Api.InputModels +namespace Etherna.Beehive.Areas.Api.InputModels { public class UpdateNodeConfigInput { diff --git a/src/BeehiveManager/Areas/Api/Services/ChainControllerService.cs b/src/Beehive/Areas/Api/Services/ChainControllerService.cs similarity index 64% rename from src/BeehiveManager/Areas/Api/Services/ChainControllerService.cs rename to src/Beehive/Areas/Api/Services/ChainControllerService.cs index 52f896a..f8294cd 100644 --- a/src/BeehiveManager/Areas/Api/Services/ChainControllerService.cs +++ b/src/Beehive/Areas/Api/Services/ChainControllerService.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Areas.Api.DtoModels; -using Etherna.BeehiveManager.Services.Utilities; +using Etherna.Beehive.Areas.Api.DtoModels; +using Etherna.Beehive.Services.Utilities; -namespace Etherna.BeehiveManager.Areas.Api.Services +namespace Etherna.Beehive.Areas.Api.Services { public class ChainControllerService(IBeeNodeLiveManager liveManager) : IChainControllerService diff --git a/src/BeehiveManager/Areas/Api/Services/IChainControllerService.cs b/src/Beehive/Areas/Api/Services/IChainControllerService.cs similarity index 60% rename from src/BeehiveManager/Areas/Api/Services/IChainControllerService.cs rename to src/Beehive/Areas/Api/Services/IChainControllerService.cs index 5d8aa8b..ad8a74e 100644 --- a/src/BeehiveManager/Areas/Api/Services/IChainControllerService.cs +++ b/src/Beehive/Areas/Api/Services/IChainControllerService.cs @@ -1,20 +1,20 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Areas.Api.DtoModels; +using Etherna.Beehive.Areas.Api.DtoModels; -namespace Etherna.BeehiveManager.Areas.Api.Services +namespace Etherna.Beehive.Areas.Api.Services { public interface IChainControllerService { diff --git a/src/BeehiveManager/Areas/Api/Services/ILoadBalancerControllerService.cs b/src/Beehive/Areas/Api/Services/ILoadBalancerControllerService.cs similarity index 67% rename from src/BeehiveManager/Areas/Api/Services/ILoadBalancerControllerService.cs rename to src/Beehive/Areas/Api/Services/ILoadBalancerControllerService.cs index 59e47bd..ed7cebb 100644 --- a/src/BeehiveManager/Areas/Api/Services/ILoadBalancerControllerService.cs +++ b/src/Beehive/Areas/Api/Services/ILoadBalancerControllerService.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Areas.Api.DtoModels; +using Etherna.Beehive.Areas.Api.DtoModels; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Areas.Api.Services +namespace Etherna.Beehive.Areas.Api.Services { public interface ILoadBalancerControllerService { diff --git a/src/BeehiveManager/Areas/Api/Services/INodesControllerService.cs b/src/Beehive/Areas/Api/Services/INodesControllerService.cs similarity index 80% rename from src/BeehiveManager/Areas/Api/Services/INodesControllerService.cs rename to src/Beehive/Areas/Api/Services/INodesControllerService.cs index 27d7db5..132a637 100644 --- a/src/BeehiveManager/Areas/Api/Services/INodesControllerService.cs +++ b/src/Beehive/Areas/Api/Services/INodesControllerService.cs @@ -1,24 +1,24 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Areas.Api.DtoModels; -using Etherna.BeehiveManager.Areas.Api.InputModels; +using Etherna.Beehive.Areas.Api.DtoModels; +using Etherna.Beehive.Areas.Api.InputModels; using Etherna.BeeNet.Models; using System.Collections.Generic; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Areas.Api.Services +namespace Etherna.Beehive.Areas.Api.Services { public interface INodesControllerService { diff --git a/src/BeehiveManager/Areas/Api/Services/IPinningControllerService.cs b/src/Beehive/Areas/Api/Services/IPinningControllerService.cs similarity index 67% rename from src/BeehiveManager/Areas/Api/Services/IPinningControllerService.cs rename to src/Beehive/Areas/Api/Services/IPinningControllerService.cs index 0f7afad..ca84457 100644 --- a/src/BeehiveManager/Areas/Api/Services/IPinningControllerService.cs +++ b/src/Beehive/Areas/Api/Services/IPinningControllerService.cs @@ -1,22 +1,22 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Areas.Api.DtoModels; +using Etherna.Beehive.Areas.Api.DtoModels; using System.Collections.Generic; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Areas.Api.Services +namespace Etherna.Beehive.Areas.Api.Services { public interface IPinningControllerService { diff --git a/src/BeehiveManager/Areas/Api/Services/IPostageControllerService.cs b/src/Beehive/Areas/Api/Services/IPostageControllerService.cs similarity index 72% rename from src/BeehiveManager/Areas/Api/Services/IPostageControllerService.cs rename to src/Beehive/Areas/Api/Services/IPostageControllerService.cs index 9b54a8e..cd990ce 100644 --- a/src/BeehiveManager/Areas/Api/Services/IPostageControllerService.cs +++ b/src/Beehive/Areas/Api/Services/IPostageControllerService.cs @@ -1,22 +1,22 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Areas.Api.DtoModels; +using Etherna.Beehive.Areas.Api.DtoModels; using Etherna.BeeNet.Models; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Areas.Api.Services +namespace Etherna.Beehive.Areas.Api.Services { public interface IPostageControllerService { diff --git a/src/BeehiveManager/Areas/Api/Services/LoadBalancerControllerService.cs b/src/Beehive/Areas/Api/Services/LoadBalancerControllerService.cs similarity index 85% rename from src/BeehiveManager/Areas/Api/Services/LoadBalancerControllerService.cs rename to src/Beehive/Areas/Api/Services/LoadBalancerControllerService.cs index 3c63c89..96c5cd3 100644 --- a/src/BeehiveManager/Areas/Api/Services/LoadBalancerControllerService.cs +++ b/src/Beehive/Areas/Api/Services/LoadBalancerControllerService.cs @@ -1,27 +1,27 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Areas.Api.DtoModels; -using Etherna.BeehiveManager.Domain; -using Etherna.BeehiveManager.Services.Domain; -using Etherna.BeehiveManager.Services.Utilities; +using Etherna.Beehive.Areas.Api.DtoModels; +using Etherna.Beehive.Domain; +using Etherna.Beehive.Services.Domain; +using Etherna.Beehive.Services.Utilities; using MoreLinq; using System; using System.Linq; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Areas.Api.Services +namespace Etherna.Beehive.Areas.Api.Services { public class LoadBalancerControllerService : ILoadBalancerControllerService { diff --git a/src/BeehiveManager/Areas/Api/Services/NodesControllerService.cs b/src/Beehive/Areas/Api/Services/NodesControllerService.cs similarity index 92% rename from src/BeehiveManager/Areas/Api/Services/NodesControllerService.cs rename to src/Beehive/Areas/Api/Services/NodesControllerService.cs index 6566873..8ad4e61 100644 --- a/src/BeehiveManager/Areas/Api/Services/NodesControllerService.cs +++ b/src/Beehive/Areas/Api/Services/NodesControllerService.cs @@ -1,23 +1,23 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Areas.Api.DtoModels; -using Etherna.BeehiveManager.Areas.Api.InputModels; -using Etherna.BeehiveManager.Domain; -using Etherna.BeehiveManager.Domain.Models; -using Etherna.BeehiveManager.Services.Extensions; -using Etherna.BeehiveManager.Services.Utilities; +using Etherna.Beehive.Areas.Api.DtoModels; +using Etherna.Beehive.Areas.Api.InputModels; +using Etherna.Beehive.Domain; +using Etherna.Beehive.Domain.Models; +using Etherna.Beehive.Services.Utilities; +using Etherna.Beehive.Services.Extensions; using Etherna.BeeNet.Exceptions; using Etherna.BeeNet.Models; using Etherna.MongoDB.Driver.Linq; @@ -28,7 +28,7 @@ using System.Linq; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Areas.Api.Services +namespace Etherna.Beehive.Areas.Api.Services { internal sealed class NodesControllerService( IBeehiveDbContext beehiveDbContext, diff --git a/src/BeehiveManager/Areas/Api/Services/PinningControllerService.cs b/src/Beehive/Areas/Api/Services/PinningControllerService.cs similarity index 83% rename from src/BeehiveManager/Areas/Api/Services/PinningControllerService.cs rename to src/Beehive/Areas/Api/Services/PinningControllerService.cs index e3e1aa3..427c52d 100644 --- a/src/BeehiveManager/Areas/Api/Services/PinningControllerService.cs +++ b/src/Beehive/Areas/Api/Services/PinningControllerService.cs @@ -1,30 +1,30 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Areas.Api.DtoModels; -using Etherna.BeehiveManager.Domain; -using Etherna.BeehiveManager.Domain.Models; -using Etherna.BeehiveManager.Services.Tasks; -using Etherna.BeehiveManager.Services.Utilities; -using Etherna.BeehiveManager.Services.Utilities.Models; +using Etherna.Beehive.Areas.Api.DtoModels; +using Etherna.Beehive.Domain; +using Etherna.Beehive.Domain.Models; +using Etherna.Beehive.Services.Tasks; +using Etherna.Beehive.Services.Utilities; +using Etherna.Beehive.Services.Utilities.Models; using Hangfire; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Areas.Api.Services +namespace Etherna.Beehive.Areas.Api.Services { public class PinningControllerService : IPinningControllerService { diff --git a/src/BeehiveManager/Areas/Api/Services/PostageControllerService.cs b/src/Beehive/Areas/Api/Services/PostageControllerService.cs similarity index 86% rename from src/BeehiveManager/Areas/Api/Services/PostageControllerService.cs rename to src/Beehive/Areas/Api/Services/PostageControllerService.cs index b01d5a5..f52d902 100644 --- a/src/BeehiveManager/Areas/Api/Services/PostageControllerService.cs +++ b/src/Beehive/Areas/Api/Services/PostageControllerService.cs @@ -1,25 +1,25 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Areas.Api.DtoModels; -using Etherna.BeehiveManager.Services.Utilities; -using Etherna.BeehiveManager.Services.Utilities.Models; +using Etherna.Beehive.Areas.Api.DtoModels; +using Etherna.Beehive.Services.Utilities; +using Etherna.Beehive.Services.Utilities.Models; using Etherna.BeeNet.Models; using System; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Areas.Api.Services +namespace Etherna.Beehive.Areas.Api.Services { public class PostageControllerService : IPostageControllerService { diff --git a/src/BeehiveManager/Attributes/SimpleExceptionFilterAttribute.cs b/src/Beehive/Attributes/SimpleExceptionFilterAttribute.cs similarity index 85% rename from src/BeehiveManager/Attributes/SimpleExceptionFilterAttribute.cs rename to src/Beehive/Attributes/SimpleExceptionFilterAttribute.cs index fc7a17f..b3bc542 100644 --- a/src/BeehiveManager/Attributes/SimpleExceptionFilterAttribute.cs +++ b/src/Beehive/Attributes/SimpleExceptionFilterAttribute.cs @@ -1,15 +1,15 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Etherna.BeeNet.Exceptions; @@ -20,7 +20,7 @@ using System; using System.Collections.Generic; -namespace Etherna.BeehiveManager.Attributes +namespace Etherna.Beehive.Attributes { public sealed class SimpleExceptionFilterAttribute : ExceptionFilterAttribute { diff --git a/src/BeehiveManager/Attributes/SwarmResourceValidationAttribute.cs b/src/Beehive/Attributes/SwarmResourceValidationAttribute.cs similarity index 77% rename from src/BeehiveManager/Attributes/SwarmResourceValidationAttribute.cs rename to src/Beehive/Attributes/SwarmResourceValidationAttribute.cs index 291efe9..0bdf512 100644 --- a/src/BeehiveManager/Attributes/SwarmResourceValidationAttribute.cs +++ b/src/Beehive/Attributes/SwarmResourceValidationAttribute.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using System.ComponentModel.DataAnnotations; using System.Text.RegularExpressions; -namespace Etherna.BeehiveManager.Attributes +namespace Etherna.Beehive.Attributes { public sealed partial class SwarmResourceValidationAttribute : ValidationAttribute { diff --git a/src/BeehiveManager/BeehiveManager.csproj b/src/Beehive/Beehive.csproj similarity index 83% rename from src/BeehiveManager/BeehiveManager.csproj rename to src/Beehive/Beehive.csproj index 898330b..b033f01 100644 --- a/src/BeehiveManager/BeehiveManager.csproj +++ b/src/Beehive/Beehive.csproj @@ -2,7 +2,7 @@ net9.0 - Etherna.BeehiveManager + Etherna.Beehive Etherna SA An utility for manage a cluster of Bee nodes @@ -32,9 +32,9 @@ - - - + + + diff --git a/src/BeehiveManager/Configs/CommonConsts.cs b/src/Beehive/Configs/CommonConsts.cs similarity index 69% rename from src/BeehiveManager/Configs/CommonConsts.cs rename to src/Beehive/Configs/CommonConsts.cs index 1779714..8b5cf5a 100644 --- a/src/BeehiveManager/Configs/CommonConsts.cs +++ b/src/Beehive/Configs/CommonConsts.cs @@ -1,18 +1,18 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -namespace Etherna.BeehiveManager.Configs +namespace Etherna.Beehive.Configs { internal static class CommonConsts { diff --git a/src/BeehiveManager/Configs/Hangfire/AllowAllFilter.cs b/src/Beehive/Configs/Hangfire/AllowAllFilter.cs similarity index 68% rename from src/BeehiveManager/Configs/Hangfire/AllowAllFilter.cs rename to src/Beehive/Configs/Hangfire/AllowAllFilter.cs index df5f329..67640ef 100644 --- a/src/BeehiveManager/Configs/Hangfire/AllowAllFilter.cs +++ b/src/Beehive/Configs/Hangfire/AllowAllFilter.cs @@ -1,21 +1,21 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Hangfire.Annotations; using Hangfire.Dashboard; -namespace Etherna.BeehiveManager.Configs.Hangfire +namespace Etherna.Beehive.Configs.Hangfire { public class AllowAllFilter : IDashboardAuthorizationFilter { diff --git a/src/BeehiveManager/Configs/MongODM/AllowAllFilter.cs b/src/Beehive/Configs/MongODM/AllowAllFilter.cs similarity index 69% rename from src/BeehiveManager/Configs/MongODM/AllowAllFilter.cs rename to src/Beehive/Configs/MongODM/AllowAllFilter.cs index 229ba61..d2b3707 100644 --- a/src/BeehiveManager/Configs/MongODM/AllowAllFilter.cs +++ b/src/Beehive/Configs/MongODM/AllowAllFilter.cs @@ -1,22 +1,22 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Etherna.MongODM.AspNetCore.UI.Auth.Filters; using Microsoft.AspNetCore.Http; using System.Threading.Tasks; -namespace Etherna.BeehiveManager.Configs.MongODM +namespace Etherna.Beehive.Configs.MongODM { public class AllowAllFilter : IDashboardAuthFilter { diff --git a/src/BeehiveManager/Configs/Swagger/ConfigureSwaggerOptions.cs b/src/Beehive/Configs/Swagger/ConfigureSwaggerOptions.cs similarity index 85% rename from src/BeehiveManager/Configs/Swagger/ConfigureSwaggerOptions.cs rename to src/Beehive/Configs/Swagger/ConfigureSwaggerOptions.cs index 16d7c90..0fdb0cb 100644 --- a/src/BeehiveManager/Configs/Swagger/ConfigureSwaggerOptions.cs +++ b/src/Beehive/Configs/Swagger/ConfigureSwaggerOptions.cs @@ -1,15 +1,15 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Microsoft.AspNetCore.Mvc.ApiExplorer; @@ -18,7 +18,7 @@ using Microsoft.OpenApi.Models; using Swashbuckle.AspNetCore.SwaggerGen; -namespace Etherna.BeehiveManager.Configs.Swagger +namespace Etherna.Beehive.Configs.Swagger { /// /// Configures the Swagger generation options. @@ -48,9 +48,9 @@ public void Configure(SwaggerGenOptions options) static OpenApiInfo CreateInfoForApiVersion(ApiVersionDescription description) { - var info = new OpenApiInfo() + var info = new OpenApiInfo { - Title = "Beehive Manager API", + Title = "Beehive API", Version = description.ApiVersion.ToString(), }; diff --git a/src/BeehiveManager/Configs/Swagger/SwaggerDefaultValues.cs b/src/Beehive/Configs/Swagger/SwaggerDefaultValues.cs similarity index 88% rename from src/BeehiveManager/Configs/Swagger/SwaggerDefaultValues.cs rename to src/Beehive/Configs/Swagger/SwaggerDefaultValues.cs index 702c682..30b48cd 100644 --- a/src/BeehiveManager/Configs/Swagger/SwaggerDefaultValues.cs +++ b/src/Beehive/Configs/Swagger/SwaggerDefaultValues.cs @@ -1,15 +1,15 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Microsoft.AspNetCore.Mvc.ApiExplorer; @@ -19,7 +19,7 @@ using System; using System.Linq; -namespace Etherna.BeehiveManager.Configs.Swagger +namespace Etherna.Beehive.Configs.Swagger { /// /// Represents the Swagger/Swashbuckle operation filter used to document the implicit API version parameter. diff --git a/src/BeehiveManager/Configs/SystemStore/XmlRepository.cs b/src/Beehive/Configs/SystemStore/XmlRepository.cs similarity index 88% rename from src/BeehiveManager/Configs/SystemStore/XmlRepository.cs rename to src/Beehive/Configs/SystemStore/XmlRepository.cs index 44d5377..eb7112b 100644 --- a/src/BeehiveManager/Configs/SystemStore/XmlRepository.cs +++ b/src/Beehive/Configs/SystemStore/XmlRepository.cs @@ -1,15 +1,15 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Etherna.MongODM.Core.Options; @@ -23,7 +23,7 @@ using System.Xml; using System.Xml.Linq; -namespace Etherna.BeehiveManager.Configs.SystemStore +namespace Etherna.Beehive.Configs.SystemStore { internal sealed class XmlRepository : IXmlRepository { diff --git a/src/BeehiveManager/Exceptions/ServiceConfigurationException.cs b/src/Beehive/Exceptions/ServiceConfigurationException.cs similarity index 72% rename from src/BeehiveManager/Exceptions/ServiceConfigurationException.cs rename to src/Beehive/Exceptions/ServiceConfigurationException.cs index 079912b..1222ecc 100644 --- a/src/BeehiveManager/Exceptions/ServiceConfigurationException.cs +++ b/src/Beehive/Exceptions/ServiceConfigurationException.cs @@ -1,20 +1,20 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using System; -namespace Etherna.BeehiveManager.Exceptions +namespace Etherna.Beehive.Exceptions { internal sealed class ServiceConfigurationException : Exception { diff --git a/src/BeehiveManager/Extensions/ApplicationBuilderExtensions.cs b/src/Beehive/Extensions/ApplicationBuilderExtensions.cs similarity index 74% rename from src/BeehiveManager/Extensions/ApplicationBuilderExtensions.cs rename to src/Beehive/Extensions/ApplicationBuilderExtensions.cs index 2e2c643..9bce182 100644 --- a/src/BeehiveManager/Extensions/ApplicationBuilderExtensions.cs +++ b/src/Beehive/Extensions/ApplicationBuilderExtensions.cs @@ -1,23 +1,23 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Services.Utilities; +using Etherna.Beehive.Services.Utilities; using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.DependencyInjection; using System; -namespace Etherna.BeehiveManager.Extensions +namespace Etherna.Beehive.Extensions { public static class ApplicationBuilderExtensions { diff --git a/src/BeehiveManager/Extensions/DataProtectionBuilderExtensions.cs b/src/Beehive/Extensions/DataProtectionBuilderExtensions.cs similarity index 81% rename from src/BeehiveManager/Extensions/DataProtectionBuilderExtensions.cs rename to src/Beehive/Extensions/DataProtectionBuilderExtensions.cs index 3a41746..df48f37 100644 --- a/src/BeehiveManager/Extensions/DataProtectionBuilderExtensions.cs +++ b/src/Beehive/Extensions/DataProtectionBuilderExtensions.cs @@ -1,25 +1,25 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . -using Etherna.BeehiveManager.Configs.SystemStore; +using Etherna.Beehive.Configs.SystemStore; using Etherna.MongODM.Core.Options; using Microsoft.AspNetCore.DataProtection; using Microsoft.AspNetCore.DataProtection.KeyManagement; using Microsoft.Extensions.DependencyInjection; using System; -namespace Etherna.BeehiveManager.Extensions +namespace Etherna.Beehive.Extensions { public static class DataProtectionBuilderExtensions { diff --git a/src/BeehiveManager/Pages/Index.cshtml b/src/Beehive/Pages/Index.cshtml similarity index 92% rename from src/BeehiveManager/Pages/Index.cshtml rename to src/Beehive/Pages/Index.cshtml index aed10b2..4c533c3 100644 --- a/src/BeehiveManager/Pages/Index.cshtml +++ b/src/Beehive/Pages/Index.cshtml @@ -1,5 +1,5 @@ @page -@using Etherna.BeehiveManager.Configs +@using Etherna.Beehive.Configs @model IndexModel @{ ViewData["Title"] = "Home page"; diff --git a/src/BeehiveManager/Pages/Index.cshtml.cs b/src/Beehive/Pages/Index.cshtml.cs similarity index 66% rename from src/BeehiveManager/Pages/Index.cshtml.cs rename to src/Beehive/Pages/Index.cshtml.cs index 83cd042..4973a72 100644 --- a/src/BeehiveManager/Pages/Index.cshtml.cs +++ b/src/Beehive/Pages/Index.cshtml.cs @@ -1,20 +1,20 @@ // Copyright 2021-present Etherna SA -// This file is part of BeehiveManager. +// This file is part of Beehive. // -// BeehiveManager is free software: you can redistribute it and/or modify it under the terms of the +// Beehive is free software: you can redistribute it and/or modify it under the terms of the // GNU Affero General Public License as published by the Free Software Foundation, // either version 3 of the License, or (at your option) any later version. // -// BeehiveManager is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; +// Beehive is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; // without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // See the GNU Affero General Public License for more details. // -// You should have received a copy of the GNU Affero General Public License along with BeehiveManager. +// You should have received a copy of the GNU Affero General Public License along with Beehive. // If not, see . using Microsoft.AspNetCore.Mvc.RazorPages; -namespace Etherna.BeehiveManager.Pages +namespace Etherna.Beehive.Pages { public class IndexModel : PageModel { diff --git a/src/BeehiveManager/Pages/Shared/_Layout.cshtml b/src/Beehive/Pages/Shared/_Layout.cshtml similarity index 90% rename from src/BeehiveManager/Pages/Shared/_Layout.cshtml rename to src/Beehive/Pages/Shared/_Layout.cshtml index 05bc694..aa6c168 100644 --- a/src/BeehiveManager/Pages/Shared/_Layout.cshtml +++ b/src/Beehive/Pages/Shared/_Layout.cshtml @@ -3,16 +3,16 @@ - @ViewData["Title"] - BeehiveManager + @ViewData["Title"] - Beehive - +