netcore-blueprint 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/create.js +40 -44
- package/package.json +1 -1
- package/Blueprint.API/Blueprint.API.csproj +0 -28
- package/Blueprint.API/Blueprint.API.csproj.user +0 -8
- package/Blueprint.API/Blueprint.API.http +0 -6
- package/Blueprint.API/Controllers/UserController.cs +0 -179
- package/Blueprint.API/Controllers/UserControllerAsync.cs +0 -51
- package/Blueprint.API/Controllers/VersionController.cs +0 -43
- package/Blueprint.API/Controllers/WeatherForecastController.cs +0 -33
- package/Blueprint.API/Mappers/DtoMappingProfile.cs +0 -28
- package/Blueprint.API/Program.cs +0 -176
- package/Blueprint.API/Properties/launchSettings.json +0 -41
- package/Blueprint.API/Services/RabbitMqConsumerService.cs +0 -154
- package/Blueprint.API/WeatherForecast.cs +0 -13
- package/Blueprint.API/appsettings.Development.json +0 -8
- package/Blueprint.API/appsettings.json +0 -22
- package/Blueprint.API/bin/Debug/net8.0/AWSSDK.Core.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/AWSSDK.Extensions.NETCore.Setup.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/AWSSDK.S3.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/AutoMapper.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Blueprint.API.deps.json +0 -1702
- package/Blueprint.API/bin/Debug/net8.0/Blueprint.API.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Blueprint.API.exe +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Blueprint.API.pdb +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Blueprint.API.runtimeconfig.json +0 -20
- package/Blueprint.API/bin/Debug/net8.0/Blueprint.Core.deps.json +0 -777
- package/Blueprint.API/bin/Debug/net8.0/Blueprint.Core.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Blueprint.Core.exe +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Blueprint.Core.pdb +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Blueprint.Core.runtimeconfig.json +0 -12
- package/Blueprint.API/bin/Debug/net8.0/Blueprint.Infra.deps.json +0 -1636
- package/Blueprint.API/bin/Debug/net8.0/Blueprint.Infra.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Blueprint.Infra.exe +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Blueprint.Infra.pdb +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Blueprint.Infra.runtimeconfig.json +0 -13
- package/Blueprint.API/bin/Debug/net8.0/DnsClient.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Humanizer.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.AspNetCore.Mvc.Versioning.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.Bcl.Memory.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.CodeAnalysis.CSharp.Workspaces.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.CodeAnalysis.CSharp.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.CodeAnalysis.Workspaces.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.CodeAnalysis.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Design.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Relational.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.Extensions.Caching.Memory.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.Extensions.DependencyModel.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.Extensions.Logging.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.Extensions.Options.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.IdentityModel.Abstractions.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.IdentityModel.Logging.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.IdentityModel.Protocols.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.IdentityModel.Tokens.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Microsoft.OpenApi.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/MongoDB.Bson.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/MongoDB.Driver.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Mono.TextTemplating.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/MySqlConnector.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Pomelo.EntityFrameworkCore.MySql.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/RabbitMQ.Client.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/SharpCompress.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Snappier.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Swashbuckle.AspNetCore.Swagger.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Swashbuckle.AspNetCore.SwaggerGen.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/Swashbuckle.AspNetCore.SwaggerUI.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/System.CodeDom.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/System.Composition.AttributedModel.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/System.Composition.Convention.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/System.Composition.Hosting.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/System.Composition.Runtime.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/System.Composition.TypedParts.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/System.IdentityModel.Tokens.Jwt.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/ZstdSharp.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/appsettings.Development.json +0 -8
- package/Blueprint.API/bin/Debug/net8.0/appsettings.json +0 -22
- package/Blueprint.API/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.API/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.API/obj/Blueprint.API.csproj.nuget.dgspec.json +0 -283
- package/Blueprint.API/obj/Blueprint.API.csproj.nuget.g.props +0 -28
- package/Blueprint.API/obj/Blueprint.API.csproj.nuget.g.targets +0 -11
- package/Blueprint.API/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +0 -4
- package/Blueprint.API/obj/Debug/net8.0/Blueprin.4BAE1BA3.Up2Date +0 -0
- package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.AssemblyInfo.cs +0 -23
- package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.AssemblyInfoInputs.cache +0 -1
- package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.GeneratedMSBuildEditorConfig.editorconfig +0 -19
- package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.GlobalUsings.g.cs +0 -17
- package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.MvcApplicationPartsAssemblyInfo.cache +0 -0
- package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.MvcApplicationPartsAssemblyInfo.cs +0 -18
- package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.assets.cache +0 -0
- package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.csproj.AssemblyReference.cache +0 -0
- package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.csproj.BuildWithSkipAnalyzers +0 -0
- package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.csproj.CoreCompileInputs.cache +0 -1
- package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.csproj.FileListAbsolute.txt +0 -142
- package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.dll +0 -0
- package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.genruntimeconfig.cache +0 -1
- package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.pdb +0 -0
- package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.sourcelink.json +0 -1
- package/Blueprint.API/obj/Debug/net8.0/apphost.exe +0 -0
- package/Blueprint.API/obj/Debug/net8.0/ref/Blueprint.API.dll +0 -0
- package/Blueprint.API/obj/Debug/net8.0/refint/Blueprint.API.dll +0 -0
- package/Blueprint.API/obj/Debug/net8.0/staticwebassets/msbuild.build.Blueprint.API.props +0 -3
- package/Blueprint.API/obj/Debug/net8.0/staticwebassets/msbuild.buildMultiTargeting.Blueprint.API.props +0 -3
- package/Blueprint.API/obj/Debug/net8.0/staticwebassets/msbuild.buildTransitive.Blueprint.API.props +0 -3
- package/Blueprint.API/obj/Debug/net8.0/staticwebassets.build.json +0 -11
- package/Blueprint.API/obj/project.assets.json +0 -5171
- package/Blueprint.API/obj/project.nuget.cache +0 -105
- package/Blueprint.API.sln +0 -43
- package/Blueprint.Core/Blueprint.Core.csproj +0 -15
- package/Blueprint.Core/Dtos/Requests/BaseRequestDto.cs +0 -25
- package/Blueprint.Core/Dtos/Requests/UserRequestDto.cs +0 -12
- package/Blueprint.Core/Dtos/Responses/BaseResponseDto.cs +0 -28
- package/Blueprint.Core/Dtos/Responses/UserResponseDto.cs +0 -11
- package/Blueprint.Core/Entities/BaseEntity.cs +0 -23
- package/Blueprint.Core/Entities/Category.cs +0 -9
- package/Blueprint.Core/Entities/Product.cs +0 -13
- package/Blueprint.Core/Entities/User.cs +0 -16
- package/Blueprint.Core/Enums/ActionType.cs +0 -11
- package/Blueprint.Core/Enums/UserRole.cs +0 -10
- package/Blueprint.Core/Interfaces/API/IItemService.cs +0 -13
- package/Blueprint.Core/Interfaces/API/IUserService.cs +0 -10
- package/Blueprint.Core/Interfaces/SPI/IItemInfra.cs +0 -14
- package/Blueprint.Core/Interfaces/SPI/IRabbitMqService.cs +0 -7
- package/Blueprint.Core/Interfaces/SPI/IRepositoryFactory.cs +0 -10
- package/Blueprint.Core/Interfaces/SPI/IUserInfra.cs +0 -10
- package/Blueprint.Core/Models/Error.cs +0 -69
- package/Blueprint.Core/Models/ErrorDetail.cs +0 -8
- package/Blueprint.Core/Models/PagerData.cs +0 -8
- package/Blueprint.Core/Models/PagingParams.cs +0 -8
- package/Blueprint.Core/Program.cs +0 -7
- package/Blueprint.Core/Properties/launchSettings.json +0 -12
- package/Blueprint.Core/Services/ItemService.cs +0 -47
- package/Blueprint.Core/Services/UserService.cs +0 -108
- package/Blueprint.Core/StaticClasses/Errors.cs +0 -20
- package/Blueprint.Core/Worker.cs +0 -24
- package/Blueprint.Core/appsettings.Development.json +0 -8
- package/Blueprint.Core/appsettings.json +0 -8
- package/Blueprint.Core/bin/Debug/net8.0/Blueprint.Core.deps.json +0 -777
- package/Blueprint.Core/bin/Debug/net8.0/Blueprint.Core.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Blueprint.Core.exe +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Blueprint.Core.pdb +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Blueprint.Core.runtimeconfig.json +0 -12
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Bcl.Memory.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.Abstractions.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.Binder.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.CommandLine.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.EnvironmentVariables.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.FileExtensions.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.Json.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.UserSecrets.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Diagnostics.Abstractions.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Diagnostics.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.FileProviders.Abstractions.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.FileProviders.Physical.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.FileSystemGlobbing.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Hosting.Abstractions.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Hosting.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Logging.Configuration.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Logging.Console.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Logging.Debug.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Logging.EventLog.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Logging.EventSource.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Logging.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Options.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Primitives.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.IdentityModel.Abstractions.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.IdentityModel.Logging.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/Microsoft.IdentityModel.Tokens.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/MongoDB.Bson.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/System.Diagnostics.EventLog.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/System.IdentityModel.Tokens.Jwt.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/appsettings.Development.json +0 -8
- package/Blueprint.Core/bin/Debug/net8.0/appsettings.json +0 -8
- package/Blueprint.Core/bin/Debug/net8.0/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll +0 -0
- package/Blueprint.Core/bin/Debug/net8.0/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll +0 -0
- package/Blueprint.Core/obj/Blueprint.Core.csproj.nuget.dgspec.json +0 -83
- package/Blueprint.Core/obj/Blueprint.Core.csproj.nuget.g.props +0 -18
- package/Blueprint.Core/obj/Blueprint.Core.csproj.nuget.g.targets +0 -10
- package/Blueprint.Core/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +0 -4
- package/Blueprint.Core/obj/Debug/net8.0/Blueprin.55786069.Up2Date +0 -0
- package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.AssemblyInfo.cs +0 -24
- package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.AssemblyInfoInputs.cache +0 -1
- package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.GeneratedMSBuildEditorConfig.editorconfig +0 -13
- package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.GlobalUsings.g.cs +0 -12
- package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.assets.cache +0 -0
- package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.csproj.AssemblyReference.cache +0 -0
- package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.csproj.BuildWithSkipAnalyzers +0 -0
- package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.csproj.CoreCompileInputs.cache +0 -1
- package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.csproj.FileListAbsolute.txt +0 -56
- package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.dll +0 -0
- package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.genruntimeconfig.cache +0 -1
- package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.pdb +0 -0
- package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.sourcelink.json +0 -1
- package/Blueprint.Core/obj/Debug/net8.0/apphost.exe +0 -0
- package/Blueprint.Core/obj/Debug/net8.0/ref/Blueprint.Core.dll +0 -0
- package/Blueprint.Core/obj/Debug/net8.0/refint/Blueprint.Core.dll +0 -0
- package/Blueprint.Core/obj/project.assets.json +0 -2182
- package/Blueprint.Core/obj/project.nuget.cache +0 -49
- package/Blueprint.Infra/Blueprint.Infra.csproj +0 -29
- package/Blueprint.Infra/Database/DbInitializer.cs +0 -188
- package/Blueprint.Infra/Database/MyDbContext.cs +0 -24
- package/Blueprint.Infra/Program.cs +0 -7
- package/Blueprint.Infra/Properties/launchSettings.json +0 -12
- package/Blueprint.Infra/Services/MongoItemInfra.cs +0 -110
- package/Blueprint.Infra/Services/MongoUserInfra.cs +0 -31
- package/Blueprint.Infra/Services/MySQLItemInfra.cs +0 -111
- package/Blueprint.Infra/Services/MySQLUserInfra.cs +0 -30
- package/Blueprint.Infra/Services/RabbitMqService.cs +0 -61
- package/Blueprint.Infra/Services/RepositoryFactory.cs +0 -39
- package/Blueprint.Infra/Worker.cs +0 -24
- package/Blueprint.Infra/appsettings.Development.json +0 -8
- package/Blueprint.Infra/appsettings.json +0 -8
- package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Core.deps.json +0 -777
- package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Core.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Core.exe +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Core.pdb +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Core.runtimeconfig.json +0 -12
- package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Infra.deps.json +0 -1636
- package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Infra.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Infra.exe +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Infra.pdb +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Infra.runtimeconfig.json +0 -13
- package/Blueprint.Infra/bin/Debug/net8.0/DnsClient.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Humanizer.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Bcl.Memory.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.CodeAnalysis.CSharp.Workspaces.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.CodeAnalysis.CSharp.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.CodeAnalysis.Workspaces.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.CodeAnalysis.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Design.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Relational.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Caching.Abstractions.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Caching.Memory.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.Abstractions.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.Binder.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.CommandLine.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.EnvironmentVariables.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.FileExtensions.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.Json.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.UserSecrets.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.DependencyModel.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Diagnostics.Abstractions.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Diagnostics.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.FileProviders.Abstractions.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.FileProviders.Physical.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.FileSystemGlobbing.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Hosting.Abstractions.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Hosting.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Logging.Configuration.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Logging.Console.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Logging.Debug.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Logging.EventLog.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Logging.EventSource.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Logging.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Options.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Primitives.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.IdentityModel.Abstractions.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.IdentityModel.Logging.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.IdentityModel.Tokens.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/MongoDB.Bson.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/MongoDB.Driver.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Mono.TextTemplating.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/MySqlConnector.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Pomelo.EntityFrameworkCore.MySql.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/RabbitMQ.Client.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/SharpCompress.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/Snappier.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/System.CodeDom.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/System.Composition.AttributedModel.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/System.Composition.Convention.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/System.Composition.Hosting.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/System.Composition.Runtime.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/System.Composition.TypedParts.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/System.Diagnostics.EventLog.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/System.IO.Pipelines.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/System.IdentityModel.Tokens.Jwt.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/System.Threading.RateLimiting.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/ZstdSharp.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/appsettings.Development.json +0 -8
- package/Blueprint.Infra/bin/Debug/net8.0/appsettings.json +0 -8
- package/Blueprint.Infra/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
- package/Blueprint.Infra/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.resources.dll +0 -0
- package/Blueprint.Infra/obj/Blueprint.Infra.csproj.nuget.dgspec.json +0 -176
- package/Blueprint.Infra/obj/Blueprint.Infra.csproj.nuget.g.props +0 -24
- package/Blueprint.Infra/obj/Blueprint.Infra.csproj.nuget.g.targets +0 -10
- package/Blueprint.Infra/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +0 -4
- package/Blueprint.Infra/obj/Debug/net8.0/Blueprin.DC076348.Up2Date +0 -0
- package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.AssemblyInfo.cs +0 -24
- package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.AssemblyInfoInputs.cache +0 -1
- package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.GeneratedMSBuildEditorConfig.editorconfig +0 -13
- package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.GlobalUsings.g.cs +0 -12
- package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.assets.cache +0 -0
- package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.csproj.AssemblyReference.cache +0 -0
- package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.csproj.BuildWithSkipAnalyzers +0 -0
- package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.csproj.CoreCompileInputs.cache +0 -1
- package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.csproj.FileListAbsolute.txt +0 -143
- package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.dll +0 -0
- package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.genruntimeconfig.cache +0 -1
- package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.pdb +0 -0
- package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.sourcelink.json +0 -1
- package/Blueprint.Infra/obj/Debug/net8.0/apphost.exe +0 -0
- package/Blueprint.Infra/obj/Debug/net8.0/ref/Blueprint.Infra.dll +0 -0
- package/Blueprint.Infra/obj/Debug/net8.0/refint/Blueprint.Infra.dll +0 -0
- package/Blueprint.Infra/obj/project.assets.json +0 -4442
- package/Blueprint.Infra/obj/project.nuget.cache +0 -92
- package/Blueprint.Test/Blueprint.Test.csproj +0 -29
- package/Blueprint.Test/UnitTest1.cs +0 -11
- package/Blueprint.Test/bin/Debug/net8.0/AWSSDK.Core.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/AWSSDK.Extensions.NETCore.Setup.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/AWSSDK.S3.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/AutoMapper.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.API.deps.json +0 -1702
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.API.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.API.exe +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.API.pdb +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.API.runtimeconfig.json +0 -20
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Core.deps.json +0 -777
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Core.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Core.exe +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Core.pdb +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Core.runtimeconfig.json +0 -12
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Infra.deps.json +0 -1636
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Infra.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Infra.exe +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Infra.pdb +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Infra.runtimeconfig.json +0 -13
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Test.deps.json +0 -2804
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Test.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Test.pdb +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Test.runtimeconfig.json +0 -19
- package/Blueprint.Test/bin/Debug/net8.0/CoverletSourceRootsMapping_Blueprint.Test +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/DnsClient.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.AspNetCore.Mvc.Versioning.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.Bcl.Memory.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Relational.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.Extensions.Caching.Memory.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.Extensions.Logging.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.Extensions.Options.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.IdentityModel.Abstractions.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.IdentityModel.Logging.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.IdentityModel.Protocols.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.IdentityModel.Tokens.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.OpenApi.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.TestPlatform.CommunicationUtilities.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.TestPlatform.CoreUtilities.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.TestPlatform.CrossPlatEngine.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.TestPlatform.PlatformAbstractions.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.TestPlatform.Utilities.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.VisualStudio.CodeCoverage.Shim.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.VisualStudio.TestPlatform.Common.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/MongoDB.Bson.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/MongoDB.Driver.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/MySqlConnector.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Newtonsoft.Json.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/NuGet.Frameworks.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Pomelo.EntityFrameworkCore.MySql.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/RabbitMQ.Client.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/SharpCompress.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Snappier.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Swashbuckle.AspNetCore.Swagger.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Swashbuckle.AspNetCore.SwaggerGen.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/Swashbuckle.AspNetCore.SwaggerUI.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/System.IdentityModel.Tokens.Jwt.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ZstdSharp.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/appsettings.Development.json +0 -8
- package/Blueprint.Test/bin/Debug/net8.0/appsettings.json +0 -17
- package/Blueprint.Test/bin/Debug/net8.0/cs/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/cs/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/cs/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/cs/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/cs/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/de/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/de/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/de/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/de/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/de/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/es/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/es/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/es/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/es/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/es/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/fr/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/fr/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/fr/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/fr/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/fr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/it/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/it/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/it/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/it/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/it/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ja/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ja/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ja/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ja/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ja/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ko/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ko/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ko/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ko/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ko/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/pl/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/pl/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/pl/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/pl/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/pl/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/pt-BR/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/pt-BR/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/pt-BR/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/pt-BR/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ru/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ru/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ru/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ru/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/ru/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/testhost.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/testhost.exe +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/tr/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/tr/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/tr/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/tr/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/tr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/xunit.abstractions.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/xunit.assert.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/xunit.core.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/xunit.execution.dotnet.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/xunit.runner.reporters.netcoreapp10.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/xunit.runner.utility.netcoreapp10.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/xunit.runner.visualstudio.dotnetcore.testadapter.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/zh-Hans/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/zh-Hans/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/zh-Hans/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/zh-Hant/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/zh-Hant/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/zh-Hant/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
- package/Blueprint.Test/bin/Debug/net8.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
- package/Blueprint.Test/obj/Blueprint.Test.csproj.nuget.dgspec.json +0 -372
- package/Blueprint.Test/obj/Blueprint.Test.csproj.nuget.g.props +0 -30
- package/Blueprint.Test/obj/Blueprint.Test.csproj.nuget.g.targets +0 -14
- package/Blueprint.Test/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +0 -4
- package/Blueprint.Test/obj/Debug/net8.0/Blueprin.BFA8907E.Up2Date +0 -0
- package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.AssemblyInfo.cs +0 -23
- package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.AssemblyInfoInputs.cache +0 -1
- package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.GeneratedMSBuildEditorConfig.editorconfig +0 -13
- package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.GlobalUsings.g.cs +0 -9
- package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.assets.cache +0 -0
- package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.csproj.AssemblyReference.cache +0 -0
- package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.csproj.CoreCompileInputs.cache +0 -1
- package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.csproj.FileListAbsolute.txt +0 -154
- package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.dll +0 -0
- package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.genruntimeconfig.cache +0 -1
- package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.pdb +0 -0
- package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.sourcelink.json +0 -1
- package/Blueprint.Test/obj/Debug/net8.0/ref/Blueprint.Test.dll +0 -0
- package/Blueprint.Test/obj/Debug/net8.0/refint/Blueprint.Test.dll +0 -0
- package/Blueprint.Test/obj/project.assets.json +0 -9266
- package/Blueprint.Test/obj/project.nuget.cache +0 -170
- package/README.md +0 -0
- package/gitignore +0 -12
package/create.js
CHANGED
|
@@ -3,61 +3,57 @@
|
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
const path = require('path');
|
|
5
5
|
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const oldProjectName = "Blueprint"; // Your template project name
|
|
7
|
+
const newProjectName = process.argv[2];
|
|
8
|
+
|
|
9
|
+
if (!newProjectName) {
|
|
10
|
+
console.error("❌ Please specify the new project name.");
|
|
9
11
|
process.exit(1);
|
|
10
12
|
}
|
|
11
13
|
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
"Blueprint.API.sln",
|
|
15
|
-
"Blueprint.API",
|
|
16
|
-
"Blueprint.Core",
|
|
17
|
-
"Blueprint.Infra",
|
|
18
|
-
"Blueprint.Test",
|
|
19
|
-
"README.md",
|
|
20
|
-
"gitignore" // Rename later
|
|
21
|
-
];
|
|
22
|
-
|
|
23
|
-
function copyFilesRecursively(src, dest) {
|
|
24
|
-
if (fs.lstatSync(src).isDirectory()) {
|
|
25
|
-
fs.mkdirSync(dest, { recursive: true });
|
|
26
|
-
const entries = fs.readdirSync(src, { withFileTypes: true });
|
|
27
|
-
for (let entry of entries) {
|
|
28
|
-
const srcPath = path.join(src, entry.name);
|
|
29
|
-
const destPath = path.join(dest, entry.name);
|
|
30
|
-
copyFilesRecursively(srcPath, destPath);
|
|
31
|
-
}
|
|
32
|
-
} else {
|
|
33
|
-
fs.copyFileSync(src, dest);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
14
|
+
const templatePath = path.join(__dirname, `${oldProjectName}Template`);
|
|
15
|
+
const destinationPath = path.join(process.cwd(), newProjectName);
|
|
36
16
|
|
|
37
|
-
// Ensure destination
|
|
17
|
+
// Ensure the destination directory does not already exist
|
|
38
18
|
if (fs.existsSync(destinationPath)) {
|
|
39
|
-
console.error(`❌ Project directory "${
|
|
19
|
+
console.error(`❌ Project directory "${newProjectName}" already exists.`);
|
|
40
20
|
process.exit(1);
|
|
41
21
|
}
|
|
42
22
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
templateItems.forEach(item => {
|
|
47
|
-
const srcPath = path.join(__dirname, item);
|
|
48
|
-
let destPath = path.join(destinationPath, item);
|
|
23
|
+
// Function to recursively copy and rename files/folders
|
|
24
|
+
function copyAndRename(src, dest) {
|
|
25
|
+
const stat = fs.lstatSync(src);
|
|
49
26
|
|
|
50
|
-
if (
|
|
51
|
-
|
|
52
|
-
|
|
27
|
+
if (stat.isDirectory()) {
|
|
28
|
+
// Rename folder if needed
|
|
29
|
+
const newDir = path.join(path.dirname(dest), path.basename(dest).replace(oldProjectName, newProjectName));
|
|
30
|
+
fs.mkdirSync(newDir, { recursive: true });
|
|
53
31
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
32
|
+
fs.readdirSync(src).forEach(entry => {
|
|
33
|
+
copyAndRename(path.join(src, entry), path.join(newDir, entry));
|
|
34
|
+
});
|
|
57
35
|
} else {
|
|
58
|
-
|
|
59
|
-
|
|
36
|
+
// Read file content
|
|
37
|
+
let content = fs.readFileSync(src, 'utf8');
|
|
38
|
+
|
|
39
|
+
// Replace all occurrences of "Blueprint" dynamically
|
|
40
|
+
const regex = new RegExp(oldProjectName, "g");
|
|
41
|
+
content = content.replace(regex, newProjectName);
|
|
42
|
+
|
|
43
|
+
// Rename file if needed
|
|
44
|
+
const newFileName = path.basename(dest).replace(oldProjectName, newProjectName);
|
|
45
|
+
const newDest = path.join(path.dirname(dest), newFileName);
|
|
46
|
+
|
|
47
|
+
fs.writeFileSync(newDest, content);
|
|
60
48
|
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// Start copying the template
|
|
52
|
+
fs.mkdirSync(destinationPath, { recursive: true });
|
|
53
|
+
|
|
54
|
+
fs.readdirSync(templatePath).forEach(item => {
|
|
55
|
+
copyAndRename(path.join(templatePath, item), path.join(destinationPath, item));
|
|
61
56
|
});
|
|
62
57
|
|
|
63
|
-
console.log(`🎉 Project "${
|
|
58
|
+
console.log(`🎉 Project "${newProjectName}" created successfully at ${destinationPath}`);
|
|
59
|
+
console.log(`📌 Open "${newProjectName}.sln" in Visual Studio to get started!`);
|
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
2
|
-
|
|
3
|
-
<PropertyGroup>
|
|
4
|
-
<TargetFramework>net8.0</TargetFramework>
|
|
5
|
-
<Nullable>enable</Nullable>
|
|
6
|
-
<ImplicitUsings>enable</ImplicitUsings>
|
|
7
|
-
</PropertyGroup>
|
|
8
|
-
|
|
9
|
-
<ItemGroup>
|
|
10
|
-
<PackageReference Include="AutoMapper" Version="13.0.1" />
|
|
11
|
-
<PackageReference Include="AWSSDK.Extensions.NETCore.Setup" Version="3.7.301" />
|
|
12
|
-
<PackageReference Include="AWSSDK.S3" Version="3.7.410.12" />
|
|
13
|
-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.10" />
|
|
14
|
-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.1.0" />
|
|
15
|
-
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.10">
|
|
16
|
-
<PrivateAssets>all</PrivateAssets>
|
|
17
|
-
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
18
|
-
</PackageReference>
|
|
19
|
-
<PackageReference Include="RabbitMQ.Client" Version="7.0.0" />
|
|
20
|
-
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
|
|
21
|
-
</ItemGroup>
|
|
22
|
-
|
|
23
|
-
<ItemGroup>
|
|
24
|
-
<ProjectReference Include="..\Blueprint.Core\Blueprint.Core.csproj" />
|
|
25
|
-
<ProjectReference Include="..\Blueprint.Infra\Blueprint.Infra.csproj" />
|
|
26
|
-
</ItemGroup>
|
|
27
|
-
|
|
28
|
-
</Project>
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
3
|
-
<PropertyGroup>
|
|
4
|
-
<ActiveDebugProfile>https</ActiveDebugProfile>
|
|
5
|
-
<Controller_SelectedScaffolderID>MvcControllerEmptyScaffolder</Controller_SelectedScaffolderID>
|
|
6
|
-
<Controller_SelectedScaffolderCategoryPath>root/Common/MVC/Controller</Controller_SelectedScaffolderCategoryPath>
|
|
7
|
-
</PropertyGroup>
|
|
8
|
-
</Project>
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
using AutoMapper;
|
|
2
|
-
using Blueprint.Core.Entities;
|
|
3
|
-
using Blueprint.Core.Models;
|
|
4
|
-
using Microsoft.AspNetCore.Authorization;
|
|
5
|
-
using Microsoft.AspNetCore.Mvc;
|
|
6
|
-
using System.Diagnostics;
|
|
7
|
-
using Template.Core.Dtos.Requests;
|
|
8
|
-
using Template.Core.Dtos.Responses;
|
|
9
|
-
using Template.Core.Interfaces.API;
|
|
10
|
-
|
|
11
|
-
namespace Template.API.Controllers
|
|
12
|
-
{
|
|
13
|
-
/// <summary>
|
|
14
|
-
/// User Controller
|
|
15
|
-
/// </summary>
|
|
16
|
-
[Route("rest/v1.0/users")]
|
|
17
|
-
[ApiVersion("1.0")]
|
|
18
|
-
[Produces("application/json")]
|
|
19
|
-
[ApiController]
|
|
20
|
-
public class UserController : Controller
|
|
21
|
-
{
|
|
22
|
-
private readonly IMapper _mapper;
|
|
23
|
-
private ILogger _logger;
|
|
24
|
-
private readonly IUserService _userService;
|
|
25
|
-
|
|
26
|
-
/// <summary>
|
|
27
|
-
/// Constructor
|
|
28
|
-
/// </summary>
|
|
29
|
-
/// <param name="logger"></param>
|
|
30
|
-
/// <param name="mapper"></param>
|
|
31
|
-
/// <param name="userService"></param>
|
|
32
|
-
public UserController(
|
|
33
|
-
ILogger<UserController> logger,
|
|
34
|
-
IMapper mapper,
|
|
35
|
-
IUserService userService)
|
|
36
|
-
{
|
|
37
|
-
_mapper = mapper;
|
|
38
|
-
_logger = logger;
|
|
39
|
-
_userService = userService;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/// <summary>
|
|
43
|
-
/// Get users
|
|
44
|
-
/// </summary>
|
|
45
|
-
/// <param name="pagingParams"></param>
|
|
46
|
-
/// <returns></returns>
|
|
47
|
-
[HttpGet]
|
|
48
|
-
[Authorize(Roles = "Admin")]
|
|
49
|
-
[ProducesResponseType(typeof(PagerData<UserResponseDto>), StatusCodes.Status200OK)]
|
|
50
|
-
public async Task<IActionResult> GetUsers([FromQuery] PagingParams pagingParams)
|
|
51
|
-
{
|
|
52
|
-
_logger.LogInformation($"Start getting users");
|
|
53
|
-
var stopwatch = Stopwatch.StartNew();
|
|
54
|
-
|
|
55
|
-
PagerData<User> users = await _userService.GetItemsAsync(pagingParams);
|
|
56
|
-
PagerData<UserResponseDto> userResponse = _mapper.Map<PagerData<UserResponseDto>>(users);
|
|
57
|
-
|
|
58
|
-
// Add custom headers
|
|
59
|
-
Response.Headers.Append("X-WP-Total", users.TotalRecords.ToString());
|
|
60
|
-
|
|
61
|
-
stopwatch.Stop();
|
|
62
|
-
_logger.LogInformation($"Getting users done in {stopwatch.ElapsedMilliseconds}");
|
|
63
|
-
|
|
64
|
-
return Ok(userResponse.Items);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/// <summary>
|
|
68
|
-
/// Get user by Id
|
|
69
|
-
/// </summary>
|
|
70
|
-
/// <param name="userId"></param>
|
|
71
|
-
/// <returns></returns>
|
|
72
|
-
[HttpGet("{userId}")]
|
|
73
|
-
[ProducesResponseType(typeof(UserResponseDto), StatusCodes.Status200OK)]
|
|
74
|
-
public async Task<IActionResult> GetUserById(int userId)
|
|
75
|
-
{
|
|
76
|
-
_logger.LogInformation($"Start getting a user with Id = {userId}");
|
|
77
|
-
var stopwatch = Stopwatch.StartNew();
|
|
78
|
-
|
|
79
|
-
User user = await _userService.GetItemByIdAsync(userId);
|
|
80
|
-
UserResponseDto userResponseDto = _mapper.Map<UserResponseDto>(user);
|
|
81
|
-
|
|
82
|
-
stopwatch.Stop();
|
|
83
|
-
_logger.LogInformation($"Getting an user done in {stopwatch.ElapsedMilliseconds}");
|
|
84
|
-
|
|
85
|
-
return Ok(userResponseDto);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/// <summary>
|
|
89
|
-
/// Checking user login
|
|
90
|
-
/// </summary>
|
|
91
|
-
/// <param name="token"></param>
|
|
92
|
-
/// <returns></returns>
|
|
93
|
-
[HttpGet("check-user-login")]
|
|
94
|
-
[ProducesResponseType(typeof(UserResponseDto), StatusCodes.Status200OK)]
|
|
95
|
-
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
|
|
96
|
-
public async Task<IActionResult> CheckUserLogin()
|
|
97
|
-
{
|
|
98
|
-
_logger.LogInformation($"Start checking user login");
|
|
99
|
-
var stopwatch = Stopwatch.StartNew();
|
|
100
|
-
|
|
101
|
-
string? authorizationHeader = Request.Headers["Authorization"].FirstOrDefault();
|
|
102
|
-
if (string.IsNullOrEmpty(authorizationHeader) || !authorizationHeader.StartsWith("Bearer "))
|
|
103
|
-
{
|
|
104
|
-
return Unauthorized("Authorization header missing or invalid.");
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
string token = authorizationHeader.Replace("Bearer ", string.Empty);
|
|
108
|
-
|
|
109
|
-
string newToken = await _userService.CheckUserLogin(token);
|
|
110
|
-
|
|
111
|
-
stopwatch.Stop();
|
|
112
|
-
_logger.LogInformation($"Checking user login done in {stopwatch.ElapsedMilliseconds}");
|
|
113
|
-
|
|
114
|
-
return Ok(newToken);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/// <summary>
|
|
118
|
-
/// Update User
|
|
119
|
-
/// </summary>
|
|
120
|
-
/// <param name="userRequestDto"></param>
|
|
121
|
-
/// <returns></returns>
|
|
122
|
-
[HttpPut]
|
|
123
|
-
[ProducesResponseType(typeof(UserResponseDto), StatusCodes.Status200OK)]
|
|
124
|
-
public async Task<IActionResult> UpdateUser([FromBody] UserRequestDto userRequestDto)
|
|
125
|
-
{
|
|
126
|
-
_logger.LogInformation($"Start update a user");
|
|
127
|
-
var stopwatch = Stopwatch.StartNew();
|
|
128
|
-
|
|
129
|
-
User user = _mapper.Map<User>(userRequestDto);
|
|
130
|
-
await _userService.UpdateItemAsync(user);
|
|
131
|
-
|
|
132
|
-
stopwatch.Stop();
|
|
133
|
-
_logger.LogInformation($"Updating a user done in {stopwatch.ElapsedMilliseconds}");
|
|
134
|
-
|
|
135
|
-
return Ok();
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/// <summary>
|
|
139
|
-
/// Delete User
|
|
140
|
-
/// </summary>
|
|
141
|
-
/// <param name="userIds"></param>
|
|
142
|
-
/// <returns></returns>
|
|
143
|
-
[HttpDelete]
|
|
144
|
-
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
145
|
-
public async Task<IActionResult> DeleteUser([FromBody] List<int> userIds)
|
|
146
|
-
{
|
|
147
|
-
_logger.LogInformation($"Start deleting a User");
|
|
148
|
-
Stopwatch stopwatch = Stopwatch.StartNew();
|
|
149
|
-
|
|
150
|
-
await _userService.DeleteItemsAsync(userIds);
|
|
151
|
-
|
|
152
|
-
stopwatch.Stop();
|
|
153
|
-
_logger.LogInformation($"Deleting a User done in {stopwatch.ElapsedMilliseconds}");
|
|
154
|
-
|
|
155
|
-
return Ok();
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
/// <summary>
|
|
159
|
-
/// Create user
|
|
160
|
-
/// </summary>
|
|
161
|
-
/// <param name="userRequestDto"></param>
|
|
162
|
-
/// <returns></returns>
|
|
163
|
-
[HttpPost]
|
|
164
|
-
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
165
|
-
public async Task<IActionResult> CreateUser([FromBody] UserRequestDto userRequestDto)
|
|
166
|
-
{
|
|
167
|
-
_logger.LogInformation($"Start creating a user");
|
|
168
|
-
var stopwatch = Stopwatch.StartNew();
|
|
169
|
-
|
|
170
|
-
User user = _mapper.Map<User>(userRequestDto);
|
|
171
|
-
await _userService.AddItemAsync(user);
|
|
172
|
-
|
|
173
|
-
stopwatch.Stop();
|
|
174
|
-
_logger.LogInformation($"Creating a user done in {stopwatch.ElapsedMilliseconds}");
|
|
175
|
-
|
|
176
|
-
return Ok();
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
using Blueprint.Core.Interfaces.SPI;
|
|
2
|
-
using Microsoft.AspNetCore.Mvc;
|
|
3
|
-
using System.Text.Json;
|
|
4
|
-
using Template.Core.Dtos.Requests;
|
|
5
|
-
|
|
6
|
-
namespace Blueprint.API.Controllers
|
|
7
|
-
{
|
|
8
|
-
[Route("rest/v1.0/users-async")]
|
|
9
|
-
[ApiController]
|
|
10
|
-
public class UserControllerAsync: Controller
|
|
11
|
-
{
|
|
12
|
-
private readonly IRabbitMqService _rabbitMqService;
|
|
13
|
-
private readonly ILogger<UserControllerAsync> _logger;
|
|
14
|
-
|
|
15
|
-
public UserControllerAsync(IRabbitMqService rabbitMqService, ILogger<UserControllerAsync> logger)
|
|
16
|
-
{
|
|
17
|
-
_rabbitMqService = rabbitMqService;
|
|
18
|
-
_logger = logger;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
[HttpPost]
|
|
22
|
-
public IActionResult CreateUser([FromBody] UserRequestDto userRequestDto)
|
|
23
|
-
{
|
|
24
|
-
_logger.LogInformation($"Start queuing a user creation request.");
|
|
25
|
-
|
|
26
|
-
// Serialize the user data as a message
|
|
27
|
-
string message = JsonSerializer.Serialize(userRequestDto);
|
|
28
|
-
|
|
29
|
-
// Publish the message to RabbitMQ
|
|
30
|
-
_rabbitMqService.PublishMessage("user-creation-queue", message);
|
|
31
|
-
|
|
32
|
-
_logger.LogInformation($"User creation request queued successfully.");
|
|
33
|
-
return Accepted("User creation request is being processed.");
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
[HttpDelete]
|
|
37
|
-
public IActionResult DeleteUser([FromBody] List<int> userIds)
|
|
38
|
-
{
|
|
39
|
-
_logger.LogInformation($"Start queuing a user deletion request.");
|
|
40
|
-
|
|
41
|
-
// Serialize the user IDs as a message
|
|
42
|
-
string message = JsonSerializer.Serialize(userIds);
|
|
43
|
-
|
|
44
|
-
// Publish the message to RabbitMQ
|
|
45
|
-
_rabbitMqService.PublishMessage("user-deletion-queue", message);
|
|
46
|
-
|
|
47
|
-
_logger.LogInformation($"User deletion request queued successfully.");
|
|
48
|
-
return Accepted("User deletion request is being processed.");
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
using Microsoft.AspNetCore.Authorization;
|
|
2
|
-
using Microsoft.AspNetCore.Mvc;
|
|
3
|
-
using System.Diagnostics;
|
|
4
|
-
|
|
5
|
-
namespace Blueprint.API.Controllers
|
|
6
|
-
{
|
|
7
|
-
/// <summary>
|
|
8
|
-
/// Version controller
|
|
9
|
-
/// </summary>
|
|
10
|
-
[Route("rest/v1.0/version")]
|
|
11
|
-
[ApiVersion("1.0")]
|
|
12
|
-
[Produces("application/json")]
|
|
13
|
-
[ApiController]
|
|
14
|
-
public class VersionController : Controller
|
|
15
|
-
{
|
|
16
|
-
private ILogger _logger;
|
|
17
|
-
|
|
18
|
-
public VersionController(ILogger<VersionController> logger)
|
|
19
|
-
{
|
|
20
|
-
_logger = logger;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/// <summary>
|
|
24
|
-
/// Get version
|
|
25
|
-
/// </summary>
|
|
26
|
-
/// <returns></returns>
|
|
27
|
-
[HttpGet]
|
|
28
|
-
[Authorize(Roles = "User")]
|
|
29
|
-
[ProducesResponseType(StatusCodes.Status200OK)]
|
|
30
|
-
public string GetVersion()
|
|
31
|
-
{
|
|
32
|
-
_logger.LogInformation($"Start getting version");
|
|
33
|
-
var stopwatch = Stopwatch.StartNew();
|
|
34
|
-
|
|
35
|
-
string version = "1";
|
|
36
|
-
|
|
37
|
-
stopwatch.Stop();
|
|
38
|
-
_logger.LogInformation($"Getting version done in {stopwatch.ElapsedMilliseconds}");
|
|
39
|
-
|
|
40
|
-
return version;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
using Microsoft.AspNetCore.Mvc;
|
|
2
|
-
|
|
3
|
-
namespace Blueprint.API.Controllers
|
|
4
|
-
{
|
|
5
|
-
[ApiController]
|
|
6
|
-
[Route("[controller]")]
|
|
7
|
-
public class WeatherForecastController : ControllerBase
|
|
8
|
-
{
|
|
9
|
-
private static readonly string[] Summaries = new[]
|
|
10
|
-
{
|
|
11
|
-
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
private readonly ILogger<WeatherForecastController> _logger;
|
|
15
|
-
|
|
16
|
-
public WeatherForecastController(ILogger<WeatherForecastController> logger)
|
|
17
|
-
{
|
|
18
|
-
_logger = logger;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
[HttpGet(Name = "GetWeatherForecast")]
|
|
22
|
-
public IEnumerable<WeatherForecast> Get()
|
|
23
|
-
{
|
|
24
|
-
return Enumerable.Range(1, 5).Select(index => new WeatherForecast
|
|
25
|
-
{
|
|
26
|
-
Date = DateOnly.FromDateTime(DateTime.Now.AddDays(index)),
|
|
27
|
-
TemperatureC = Random.Shared.Next(-20, 55),
|
|
28
|
-
Summary = Summaries[Random.Shared.Next(Summaries.Length)]
|
|
29
|
-
})
|
|
30
|
-
.ToArray();
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
using AutoMapper;
|
|
2
|
-
using Blueprint.Core.Entities;
|
|
3
|
-
using Blueprint.Core.Models;
|
|
4
|
-
using Template.Core.Dtos.Requests;
|
|
5
|
-
using Template.Core.Dtos.Responses;
|
|
6
|
-
|
|
7
|
-
namespace Blueprint.API.Mappers
|
|
8
|
-
{
|
|
9
|
-
/// <summary>
|
|
10
|
-
/// DtoMappingProfile
|
|
11
|
-
/// </summary>
|
|
12
|
-
public class DtoMappingProfile : Profile
|
|
13
|
-
{
|
|
14
|
-
/// <summary>
|
|
15
|
-
/// Constructor
|
|
16
|
-
/// </summary>
|
|
17
|
-
public DtoMappingProfile()
|
|
18
|
-
{
|
|
19
|
-
CreateMap<User, UserRequestDto>().ReverseMap();
|
|
20
|
-
|
|
21
|
-
CreateMap<PagerData<User>, PagerData<UserResponseDto>>().ReverseMap();
|
|
22
|
-
|
|
23
|
-
CreateMap<User, UserResponseDto>()
|
|
24
|
-
.ForMember(dest => dest.Role, opt => opt.MapFrom(src => src.Role.ToString()))
|
|
25
|
-
.ReverseMap();
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
package/Blueprint.API/Program.cs
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
|
2
|
-
using Microsoft.EntityFrameworkCore;
|
|
3
|
-
using Microsoft.IdentityModel.Tokens;
|
|
4
|
-
using Blueprint.Infra.Database;
|
|
5
|
-
using Blueprint.API.Mappers;
|
|
6
|
-
using Microsoft.AspNetCore.Mvc.Versioning;
|
|
7
|
-
using Microsoft.AspNetCore.Mvc;
|
|
8
|
-
using Amazon.S3;
|
|
9
|
-
using Template.Core.Interfaces.API;
|
|
10
|
-
using Template.Core.Services;
|
|
11
|
-
using Template.Core.Interfaces.SPI;
|
|
12
|
-
using Template.Infra.Services;
|
|
13
|
-
using Blueprint.Core.Interfaces.API;
|
|
14
|
-
using Blueprint.Core.Interfaces.SPI;
|
|
15
|
-
using Blueprint.Infra.Services;
|
|
16
|
-
using MongoDB.Driver;
|
|
17
|
-
using Blueprint.Core.Services;
|
|
18
|
-
using Blueprint.API.Services;
|
|
19
|
-
using System.Text.Json.Serialization;
|
|
20
|
-
using System.Text;
|
|
21
|
-
|
|
22
|
-
var builder = WebApplication.CreateBuilder(args);
|
|
23
|
-
|
|
24
|
-
ConfigureThirdPartyServices();
|
|
25
|
-
ConfigureServices();
|
|
26
|
-
ConfigureSwagger();
|
|
27
|
-
ConfigureDatabase();
|
|
28
|
-
|
|
29
|
-
var app = builder.Build();
|
|
30
|
-
|
|
31
|
-
ConfigureMiddleware(app);
|
|
32
|
-
ApplyMigrations(app);
|
|
33
|
-
|
|
34
|
-
app.Run();
|
|
35
|
-
|
|
36
|
-
void ConfigureMiddleware(WebApplication app)
|
|
37
|
-
{
|
|
38
|
-
// Configure the HTTP request pipeline.
|
|
39
|
-
if (app.Environment.IsDevelopment())
|
|
40
|
-
{
|
|
41
|
-
app.UseSwagger();
|
|
42
|
-
app.UseSwaggerUI();
|
|
43
|
-
}
|
|
44
|
-
app.UseCors("AllowAll");
|
|
45
|
-
app.UseHttpsRedirection();
|
|
46
|
-
app.UseAuthentication();
|
|
47
|
-
app.UseAuthorization();
|
|
48
|
-
app.MapControllers();
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
void ConfigureSwagger()
|
|
52
|
-
{
|
|
53
|
-
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
|
|
54
|
-
builder.Services.AddEndpointsApiExplorer();
|
|
55
|
-
builder.Services.AddSwaggerGen();
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
void ConfigureServices()
|
|
59
|
-
{
|
|
60
|
-
// Add services to the container.
|
|
61
|
-
builder.Services.AddCors(options =>
|
|
62
|
-
{
|
|
63
|
-
options.AddPolicy("AllowAll", policy =>
|
|
64
|
-
{
|
|
65
|
-
policy.AllowAnyOrigin() // Allow requests from any origin
|
|
66
|
-
.AllowAnyHeader() // Allow any headers
|
|
67
|
-
.AllowAnyMethod() // Allow any HTTP methods
|
|
68
|
-
.WithExposedHeaders("X-WP-Total");
|
|
69
|
-
});
|
|
70
|
-
});
|
|
71
|
-
//Add Authen
|
|
72
|
-
builder.Services.AddAuthentication(options =>
|
|
73
|
-
{
|
|
74
|
-
options.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
|
|
75
|
-
options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
|
|
76
|
-
})
|
|
77
|
-
.AddJwtBearer(options =>
|
|
78
|
-
{
|
|
79
|
-
options.RequireHttpsMetadata = false;
|
|
80
|
-
options.SaveToken = true;
|
|
81
|
-
options.TokenValidationParameters = new TokenValidationParameters
|
|
82
|
-
{
|
|
83
|
-
ValidateIssuerSigningKey = false,
|
|
84
|
-
ValidateIssuer = false,
|
|
85
|
-
ValidateAudience = false,
|
|
86
|
-
ValidateLifetime = false, // Ensure token expiration is checked
|
|
87
|
-
ClockSkew = TimeSpan.Zero, // Optional: Prevents automatic expiration buffer
|
|
88
|
-
RoleClaimType = "http://schemas.microsoft.com/ws/2008/06/identity/claims/role",
|
|
89
|
-
IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(builder.Configuration["Jwt:Secret"]!))
|
|
90
|
-
};
|
|
91
|
-
});
|
|
92
|
-
builder.Services.AddAuthorization(options =>
|
|
93
|
-
{
|
|
94
|
-
options.AddPolicy("AdminPolicy", policy => policy.RequireRole("Admin"));
|
|
95
|
-
options.AddPolicy("UserPolicy", policy => policy.RequireRole("User"));
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
// Add services to the container.
|
|
99
|
-
builder.Services.AddControllers()
|
|
100
|
-
.AddJsonOptions(options =>
|
|
101
|
-
{
|
|
102
|
-
options.JsonSerializerOptions.Converters.Add(new JsonStringEnumConverter());
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
// Register generic services
|
|
106
|
-
builder.Services.AddScoped(typeof(IItemService<>), typeof(ItemService<>));
|
|
107
|
-
builder.Services.AddScoped(typeof(IRepositoryFactory<>), typeof(RepositoryFactory<>));
|
|
108
|
-
builder.Services.AddScoped(typeof(IItemInfra<>), typeof(MySQLItemInfra<>));
|
|
109
|
-
builder.Services.AddScoped(typeof(IItemInfra<>), typeof(MongoItemInfra<>));
|
|
110
|
-
|
|
111
|
-
// Register other services
|
|
112
|
-
builder.Services.AddScoped<IUserInfra, MongoUserInfra>();
|
|
113
|
-
builder.Services.AddScoped<IUserInfra, MySQLUserInfra>();
|
|
114
|
-
|
|
115
|
-
builder.Services.AddScoped<IUserService, UserService>();
|
|
116
|
-
//Configure settings
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
void ConfigureDatabase()
|
|
120
|
-
{
|
|
121
|
-
//Register for mySQL
|
|
122
|
-
string? mySQLConnectionString = builder.Configuration.GetConnectionString("MySQL");
|
|
123
|
-
if (!string.IsNullOrEmpty(mySQLConnectionString))
|
|
124
|
-
{
|
|
125
|
-
builder.Services.AddDbContext<MyDbContext>(options =>
|
|
126
|
-
options.UseMySql(mySQLConnectionString, Microsoft.EntityFrameworkCore.ServerVersion.AutoDetect(mySQLConnectionString))
|
|
127
|
-
);
|
|
128
|
-
};
|
|
129
|
-
|
|
130
|
-
//Register for Mongo
|
|
131
|
-
string? mongoConnectionString = builder.Configuration.GetConnectionString("MongoDb");
|
|
132
|
-
string? databaseName = builder.Configuration["Database:Name"];
|
|
133
|
-
if (!string.IsNullOrEmpty(mongoConnectionString) && !string.IsNullOrEmpty(databaseName))
|
|
134
|
-
{
|
|
135
|
-
builder.Services.AddSingleton<IMongoClient>(new MongoClient(mongoConnectionString));
|
|
136
|
-
builder.Services.AddScoped(sp =>
|
|
137
|
-
{
|
|
138
|
-
var client = sp.GetRequiredService<IMongoClient>();
|
|
139
|
-
return client.GetDatabase(databaseName);
|
|
140
|
-
});
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
void ApplyMigrations(WebApplication app)
|
|
145
|
-
{
|
|
146
|
-
using (var scope = app.Services.CreateScope())
|
|
147
|
-
{
|
|
148
|
-
var dbContext = scope.ServiceProvider.GetRequiredService<MyDbContext>();
|
|
149
|
-
string? databaseType = builder.Configuration["Database:Type"];
|
|
150
|
-
if (!string.IsNullOrEmpty(databaseType)
|
|
151
|
-
&& databaseType.Equals("MySQL", StringComparison.OrdinalIgnoreCase))
|
|
152
|
-
{
|
|
153
|
-
// Apply migrations if the database type is MySQL
|
|
154
|
-
dbContext.Database.Migrate();
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
void ConfigureThirdPartyServices()
|
|
160
|
-
{
|
|
161
|
-
builder.Services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
|
|
162
|
-
builder.Services.AddAutoMapper(typeof(DtoMappingProfile).Assembly);
|
|
163
|
-
builder.Services.AddApiVersioning(opt =>
|
|
164
|
-
{
|
|
165
|
-
opt.DefaultApiVersion = new ApiVersion(1, 0);
|
|
166
|
-
opt.AssumeDefaultVersionWhenUnspecified = true;
|
|
167
|
-
opt.ReportApiVersions = true;
|
|
168
|
-
opt.ApiVersionReader = ApiVersionReader.Combine(new UrlSegmentApiVersionReader());
|
|
169
|
-
});
|
|
170
|
-
builder.Services.AddAWSService<IAmazonS3>();
|
|
171
|
-
|
|
172
|
-
//Rabbit MQ
|
|
173
|
-
builder.Services.AddSingleton<IRabbitMqService, RabbitMqService>();
|
|
174
|
-
builder.Services.AddSingleton<RabbitMqConsumerService>();
|
|
175
|
-
builder.Services.AddHostedService(provider => provider.GetRequiredService<RabbitMqConsumerService>());
|
|
176
|
-
}
|