netcore-blueprint 1.0.5 → 1.0.7

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.
Files changed (587) hide show
  1. package/Blueprint.API/Blueprint.API.csproj +15 -0
  2. package/Blueprint.API/Blueprint.API.csproj.user +2 -0
  3. package/Blueprint.API/Controllers/UserController.cs +179 -0
  4. package/Blueprint.API/Controllers/UserControllerAsync.cs +51 -0
  5. package/Blueprint.API/Controllers/VersionController.cs +43 -0
  6. package/Blueprint.API/Mappers/DtoMappingProfile.cs +28 -0
  7. package/Blueprint.API/Program.cs +165 -14
  8. package/Blueprint.API/Services/RabbitMqConsumerService.cs +154 -0
  9. package/Blueprint.API/appsettings.json +13 -0
  10. package/Blueprint.API/bin/Debug/net8.0/AWSSDK.Core.dll +0 -0
  11. package/Blueprint.API/bin/Debug/net8.0/AWSSDK.Extensions.NETCore.Setup.dll +0 -0
  12. package/Blueprint.API/bin/Debug/net8.0/AWSSDK.S3.dll +0 -0
  13. package/Blueprint.API/bin/Debug/net8.0/AutoMapper.dll +0 -0
  14. package/Blueprint.API/bin/Debug/net8.0/Blueprint.API.deps.json +1702 -0
  15. package/Blueprint.API/bin/Debug/net8.0/Blueprint.API.dll +0 -0
  16. package/Blueprint.API/bin/Debug/net8.0/Blueprint.API.exe +0 -0
  17. package/Blueprint.API/bin/Debug/net8.0/Blueprint.API.pdb +0 -0
  18. package/Blueprint.API/bin/Debug/net8.0/Blueprint.API.runtimeconfig.json +20 -0
  19. package/Blueprint.API/bin/Debug/net8.0/Blueprint.Core.deps.json +777 -0
  20. package/Blueprint.API/bin/Debug/net8.0/Blueprint.Core.dll +0 -0
  21. package/Blueprint.API/bin/Debug/net8.0/Blueprint.Core.exe +0 -0
  22. package/Blueprint.API/bin/Debug/net8.0/Blueprint.Core.pdb +0 -0
  23. package/Blueprint.API/bin/Debug/net8.0/Blueprint.Core.runtimeconfig.json +12 -0
  24. package/Blueprint.API/bin/Debug/net8.0/Blueprint.Infra.deps.json +1636 -0
  25. package/Blueprint.API/bin/Debug/net8.0/Blueprint.Infra.dll +0 -0
  26. package/Blueprint.API/bin/Debug/net8.0/Blueprint.Infra.exe +0 -0
  27. package/Blueprint.API/bin/Debug/net8.0/Blueprint.Infra.pdb +0 -0
  28. package/Blueprint.API/bin/Debug/net8.0/Blueprint.Infra.runtimeconfig.json +13 -0
  29. package/Blueprint.API/bin/Debug/net8.0/DnsClient.dll +0 -0
  30. package/Blueprint.API/bin/Debug/net8.0/Humanizer.dll +0 -0
  31. package/Blueprint.API/bin/Debug/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll +0 -0
  32. package/Blueprint.API/bin/Debug/net8.0/Microsoft.AspNetCore.Mvc.Versioning.dll +0 -0
  33. package/Blueprint.API/bin/Debug/net8.0/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
  34. package/Blueprint.API/bin/Debug/net8.0/Microsoft.Bcl.Memory.dll +0 -0
  35. package/Blueprint.API/bin/Debug/net8.0/Microsoft.CodeAnalysis.CSharp.Workspaces.dll +0 -0
  36. package/Blueprint.API/bin/Debug/net8.0/Microsoft.CodeAnalysis.CSharp.dll +0 -0
  37. package/Blueprint.API/bin/Debug/net8.0/Microsoft.CodeAnalysis.Workspaces.dll +0 -0
  38. package/Blueprint.API/bin/Debug/net8.0/Microsoft.CodeAnalysis.dll +0 -0
  39. package/Blueprint.API/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll +0 -0
  40. package/Blueprint.API/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Design.dll +0 -0
  41. package/Blueprint.API/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Relational.dll +0 -0
  42. package/Blueprint.API/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.dll +0 -0
  43. package/Blueprint.API/bin/Debug/net8.0/Microsoft.Extensions.Caching.Memory.dll +0 -0
  44. package/Blueprint.API/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
  45. package/Blueprint.API/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.dll +0 -0
  46. package/Blueprint.API/bin/Debug/net8.0/Microsoft.Extensions.DependencyModel.dll +0 -0
  47. package/Blueprint.API/bin/Debug/net8.0/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
  48. package/Blueprint.API/bin/Debug/net8.0/Microsoft.Extensions.Logging.dll +0 -0
  49. package/Blueprint.API/bin/Debug/net8.0/Microsoft.Extensions.Options.dll +0 -0
  50. package/Blueprint.API/bin/Debug/net8.0/Microsoft.IdentityModel.Abstractions.dll +0 -0
  51. package/Blueprint.API/bin/Debug/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll +0 -0
  52. package/Blueprint.API/bin/Debug/net8.0/Microsoft.IdentityModel.Logging.dll +0 -0
  53. package/Blueprint.API/bin/Debug/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll +0 -0
  54. package/Blueprint.API/bin/Debug/net8.0/Microsoft.IdentityModel.Protocols.dll +0 -0
  55. package/Blueprint.API/bin/Debug/net8.0/Microsoft.IdentityModel.Tokens.dll +0 -0
  56. package/Blueprint.API/bin/Debug/net8.0/Microsoft.OpenApi.dll +0 -0
  57. package/Blueprint.API/bin/Debug/net8.0/MongoDB.Bson.dll +0 -0
  58. package/Blueprint.API/bin/Debug/net8.0/MongoDB.Driver.dll +0 -0
  59. package/Blueprint.API/bin/Debug/net8.0/Mono.TextTemplating.dll +0 -0
  60. package/Blueprint.API/bin/Debug/net8.0/MySqlConnector.dll +0 -0
  61. package/Blueprint.API/bin/Debug/net8.0/Pomelo.EntityFrameworkCore.MySql.dll +0 -0
  62. package/Blueprint.API/bin/Debug/net8.0/RabbitMQ.Client.dll +0 -0
  63. package/Blueprint.API/bin/Debug/net8.0/SharpCompress.dll +0 -0
  64. package/Blueprint.API/bin/Debug/net8.0/Snappier.dll +0 -0
  65. package/Blueprint.API/bin/Debug/net8.0/Swashbuckle.AspNetCore.Swagger.dll +0 -0
  66. package/Blueprint.API/bin/Debug/net8.0/Swashbuckle.AspNetCore.SwaggerGen.dll +0 -0
  67. package/Blueprint.API/bin/Debug/net8.0/Swashbuckle.AspNetCore.SwaggerUI.dll +0 -0
  68. package/Blueprint.API/bin/Debug/net8.0/System.CodeDom.dll +0 -0
  69. package/Blueprint.API/bin/Debug/net8.0/System.Composition.AttributedModel.dll +0 -0
  70. package/Blueprint.API/bin/Debug/net8.0/System.Composition.Convention.dll +0 -0
  71. package/Blueprint.API/bin/Debug/net8.0/System.Composition.Hosting.dll +0 -0
  72. package/Blueprint.API/bin/Debug/net8.0/System.Composition.Runtime.dll +0 -0
  73. package/Blueprint.API/bin/Debug/net8.0/System.Composition.TypedParts.dll +0 -0
  74. package/Blueprint.API/bin/Debug/net8.0/System.IdentityModel.Tokens.Jwt.dll +0 -0
  75. package/Blueprint.API/bin/Debug/net8.0/ZstdSharp.dll +0 -0
  76. package/Blueprint.API/bin/Debug/net8.0/appsettings.Development.json +8 -0
  77. package/Blueprint.API/bin/Debug/net8.0/appsettings.json +22 -0
  78. package/Blueprint.API/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  79. package/Blueprint.API/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  80. package/Blueprint.API/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  81. package/Blueprint.API/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.resources.dll +0 -0
  82. package/Blueprint.API/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  83. package/Blueprint.API/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  84. package/Blueprint.API/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  85. package/Blueprint.API/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.resources.dll +0 -0
  86. package/Blueprint.API/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  87. package/Blueprint.API/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  88. package/Blueprint.API/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  89. package/Blueprint.API/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.resources.dll +0 -0
  90. package/Blueprint.API/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  91. package/Blueprint.API/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  92. package/Blueprint.API/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  93. package/Blueprint.API/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.resources.dll +0 -0
  94. package/Blueprint.API/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  95. package/Blueprint.API/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  96. package/Blueprint.API/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  97. package/Blueprint.API/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.resources.dll +0 -0
  98. package/Blueprint.API/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  99. package/Blueprint.API/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  100. package/Blueprint.API/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  101. package/Blueprint.API/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.resources.dll +0 -0
  102. package/Blueprint.API/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  103. package/Blueprint.API/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  104. package/Blueprint.API/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  105. package/Blueprint.API/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.resources.dll +0 -0
  106. package/Blueprint.API/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  107. package/Blueprint.API/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  108. package/Blueprint.API/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  109. package/Blueprint.API/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.resources.dll +0 -0
  110. package/Blueprint.API/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  111. package/Blueprint.API/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  112. package/Blueprint.API/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  113. package/Blueprint.API/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.resources.dll +0 -0
  114. package/Blueprint.API/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  115. package/Blueprint.API/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  116. package/Blueprint.API/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  117. package/Blueprint.API/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.resources.dll +0 -0
  118. package/Blueprint.API/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  119. package/Blueprint.API/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  120. package/Blueprint.API/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  121. package/Blueprint.API/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.resources.dll +0 -0
  122. package/Blueprint.API/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  123. package/Blueprint.API/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  124. package/Blueprint.API/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  125. package/Blueprint.API/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.resources.dll +0 -0
  126. package/Blueprint.API/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  127. package/Blueprint.API/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  128. package/Blueprint.API/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  129. package/Blueprint.API/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.resources.dll +0 -0
  130. package/Blueprint.API/obj/Blueprint.API.csproj.nuget.dgspec.json +206 -1
  131. package/Blueprint.API/obj/Blueprint.API.csproj.nuget.g.props +6 -0
  132. package/Blueprint.API/obj/Blueprint.API.csproj.nuget.g.targets +5 -0
  133. package/Blueprint.API/obj/Debug/net8.0/Blueprin.4BAE1BA3.Up2Date +0 -0
  134. package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.AssemblyInfo.cs +1 -1
  135. package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.AssemblyInfoInputs.cache +1 -1
  136. package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.MvcApplicationPartsAssemblyInfo.cache +0 -0
  137. package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.MvcApplicationPartsAssemblyInfo.cs +18 -0
  138. package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.assets.cache +0 -0
  139. package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.csproj.AssemblyReference.cache +0 -0
  140. package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.csproj.BuildWithSkipAnalyzers +0 -0
  141. package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.csproj.CoreCompileInputs.cache +1 -0
  142. package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.csproj.FileListAbsolute.txt +142 -0
  143. package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.dll +0 -0
  144. package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.genruntimeconfig.cache +1 -0
  145. package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.pdb +0 -0
  146. package/Blueprint.API/obj/Debug/net8.0/Blueprint.API.sourcelink.json +1 -0
  147. package/Blueprint.API/obj/Debug/net8.0/apphost.exe +0 -0
  148. package/Blueprint.API/obj/Debug/net8.0/ref/Blueprint.API.dll +0 -0
  149. package/Blueprint.API/obj/Debug/net8.0/refint/Blueprint.API.dll +0 -0
  150. package/Blueprint.API/obj/Debug/net8.0/staticwebassets/msbuild.build.Blueprint.API.props +3 -0
  151. package/Blueprint.API/obj/Debug/net8.0/staticwebassets/msbuild.buildMultiTargeting.Blueprint.API.props +3 -0
  152. package/Blueprint.API/obj/Debug/net8.0/staticwebassets/msbuild.buildTransitive.Blueprint.API.props +3 -0
  153. package/Blueprint.API/obj/Debug/net8.0/staticwebassets.build.json +11 -0
  154. package/Blueprint.API/obj/project.assets.json +4704 -36
  155. package/Blueprint.API/obj/project.nuget.cache +92 -2
  156. package/Blueprint.API.sln +18 -0
  157. package/Blueprint.Core/Blueprint.Core.csproj +15 -0
  158. package/Blueprint.Core/Dtos/Requests/BaseRequestDto.cs +25 -0
  159. package/Blueprint.Core/Dtos/Requests/UserRequestDto.cs +12 -0
  160. package/Blueprint.Core/Dtos/Responses/BaseResponseDto.cs +28 -0
  161. package/Blueprint.Core/Dtos/Responses/UserResponseDto.cs +11 -0
  162. package/Blueprint.Core/Entities/BaseEntity.cs +23 -0
  163. package/Blueprint.Core/Entities/Category.cs +9 -0
  164. package/Blueprint.Core/Entities/Product.cs +13 -0
  165. package/Blueprint.Core/Entities/User.cs +16 -0
  166. package/Blueprint.Core/Enums/ActionType.cs +11 -0
  167. package/Blueprint.Core/Enums/UserRole.cs +10 -0
  168. package/Blueprint.Core/Interfaces/API/IItemService.cs +13 -0
  169. package/Blueprint.Core/Interfaces/API/IUserService.cs +10 -0
  170. package/Blueprint.Core/Interfaces/SPI/IItemInfra.cs +14 -0
  171. package/Blueprint.Core/Interfaces/SPI/IRabbitMqService.cs +7 -0
  172. package/Blueprint.Core/Interfaces/SPI/IRepositoryFactory.cs +10 -0
  173. package/Blueprint.Core/Interfaces/SPI/IUserInfra.cs +10 -0
  174. package/Blueprint.Core/Models/Error.cs +69 -0
  175. package/Blueprint.Core/Models/ErrorDetail.cs +8 -0
  176. package/Blueprint.Core/Models/PagerData.cs +8 -0
  177. package/Blueprint.Core/Models/PagingParams.cs +8 -0
  178. package/Blueprint.Core/Program.cs +7 -0
  179. package/Blueprint.Core/Properties/launchSettings.json +12 -0
  180. package/Blueprint.Core/Services/ItemService.cs +47 -0
  181. package/Blueprint.Core/Services/UserService.cs +108 -0
  182. package/Blueprint.Core/StaticClasses/Errors.cs +20 -0
  183. package/Blueprint.Core/Worker.cs +24 -0
  184. package/Blueprint.Core/appsettings.Development.json +8 -0
  185. package/Blueprint.Core/appsettings.json +8 -0
  186. package/Blueprint.Core/bin/Debug/net8.0/Blueprint.Core.deps.json +777 -0
  187. package/Blueprint.Core/bin/Debug/net8.0/Blueprint.Core.dll +0 -0
  188. package/Blueprint.Core/bin/Debug/net8.0/Blueprint.Core.exe +0 -0
  189. package/Blueprint.Core/bin/Debug/net8.0/Blueprint.Core.pdb +0 -0
  190. package/Blueprint.Core/bin/Debug/net8.0/Blueprint.Core.runtimeconfig.json +12 -0
  191. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Bcl.Memory.dll +0 -0
  192. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.Abstractions.dll +0 -0
  193. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.Binder.dll +0 -0
  194. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.CommandLine.dll +0 -0
  195. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.EnvironmentVariables.dll +0 -0
  196. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.FileExtensions.dll +0 -0
  197. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.Json.dll +0 -0
  198. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.UserSecrets.dll +0 -0
  199. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Configuration.dll +0 -0
  200. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
  201. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.dll +0 -0
  202. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Diagnostics.Abstractions.dll +0 -0
  203. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Diagnostics.dll +0 -0
  204. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.FileProviders.Abstractions.dll +0 -0
  205. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.FileProviders.Physical.dll +0 -0
  206. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.FileSystemGlobbing.dll +0 -0
  207. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Hosting.Abstractions.dll +0 -0
  208. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Hosting.dll +0 -0
  209. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
  210. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Logging.Configuration.dll +0 -0
  211. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Logging.Console.dll +0 -0
  212. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Logging.Debug.dll +0 -0
  213. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Logging.EventLog.dll +0 -0
  214. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Logging.EventSource.dll +0 -0
  215. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Logging.dll +0 -0
  216. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll +0 -0
  217. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Options.dll +0 -0
  218. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.Extensions.Primitives.dll +0 -0
  219. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.IdentityModel.Abstractions.dll +0 -0
  220. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll +0 -0
  221. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.IdentityModel.Logging.dll +0 -0
  222. package/Blueprint.Core/bin/Debug/net8.0/Microsoft.IdentityModel.Tokens.dll +0 -0
  223. package/Blueprint.Core/bin/Debug/net8.0/MongoDB.Bson.dll +0 -0
  224. package/Blueprint.Core/bin/Debug/net8.0/System.Diagnostics.EventLog.dll +0 -0
  225. package/Blueprint.Core/bin/Debug/net8.0/System.IdentityModel.Tokens.Jwt.dll +0 -0
  226. package/Blueprint.Core/bin/Debug/net8.0/appsettings.Development.json +8 -0
  227. package/Blueprint.Core/bin/Debug/net8.0/appsettings.json +8 -0
  228. package/Blueprint.Core/bin/Debug/net8.0/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll +0 -0
  229. package/Blueprint.Core/bin/Debug/net8.0/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll +0 -0
  230. package/Blueprint.Core/obj/Blueprint.Core.csproj.nuget.dgspec.json +83 -0
  231. package/Blueprint.Core/obj/Blueprint.Core.csproj.nuget.g.props +18 -0
  232. package/Blueprint.Core/obj/Blueprint.Core.csproj.nuget.g.targets +10 -0
  233. package/Blueprint.Core/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +4 -0
  234. package/Blueprint.Core/obj/Debug/net8.0/Blueprin.55786069.Up2Date +0 -0
  235. package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.AssemblyInfo.cs +24 -0
  236. package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.AssemblyInfoInputs.cache +1 -0
  237. package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.GeneratedMSBuildEditorConfig.editorconfig +13 -0
  238. package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.GlobalUsings.g.cs +12 -0
  239. package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.assets.cache +0 -0
  240. package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.csproj.AssemblyReference.cache +0 -0
  241. package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.csproj.BuildWithSkipAnalyzers +0 -0
  242. package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.csproj.CoreCompileInputs.cache +1 -0
  243. package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.csproj.FileListAbsolute.txt +56 -0
  244. package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.dll +0 -0
  245. package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.genruntimeconfig.cache +1 -0
  246. package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.pdb +0 -0
  247. package/Blueprint.Core/obj/Debug/net8.0/Blueprint.Core.sourcelink.json +1 -0
  248. package/Blueprint.Core/obj/Debug/net8.0/apphost.exe +0 -0
  249. package/Blueprint.Core/obj/Debug/net8.0/ref/Blueprint.Core.dll +0 -0
  250. package/Blueprint.Core/obj/Debug/net8.0/refint/Blueprint.Core.dll +0 -0
  251. package/Blueprint.Core/obj/project.assets.json +2182 -0
  252. package/Blueprint.Core/obj/project.nuget.cache +49 -0
  253. package/Blueprint.Infra/Blueprint.Infra.csproj +29 -0
  254. package/Blueprint.Infra/Database/DbInitializer.cs +188 -0
  255. package/Blueprint.Infra/Database/MyDbContext.cs +24 -0
  256. package/Blueprint.Infra/Program.cs +7 -0
  257. package/Blueprint.Infra/Properties/launchSettings.json +12 -0
  258. package/Blueprint.Infra/Services/MongoItemInfra.cs +110 -0
  259. package/Blueprint.Infra/Services/MongoUserInfra.cs +31 -0
  260. package/Blueprint.Infra/Services/MySQLItemInfra.cs +111 -0
  261. package/Blueprint.Infra/Services/MySQLUserInfra.cs +30 -0
  262. package/Blueprint.Infra/Services/RabbitMqService.cs +61 -0
  263. package/Blueprint.Infra/Services/RepositoryFactory.cs +39 -0
  264. package/Blueprint.Infra/Worker.cs +24 -0
  265. package/Blueprint.Infra/appsettings.Development.json +8 -0
  266. package/Blueprint.Infra/appsettings.json +8 -0
  267. package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Core.deps.json +777 -0
  268. package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Core.dll +0 -0
  269. package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Core.exe +0 -0
  270. package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Core.pdb +0 -0
  271. package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Core.runtimeconfig.json +12 -0
  272. package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Infra.deps.json +1636 -0
  273. package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Infra.dll +0 -0
  274. package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Infra.exe +0 -0
  275. package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Infra.pdb +0 -0
  276. package/Blueprint.Infra/bin/Debug/net8.0/Blueprint.Infra.runtimeconfig.json +13 -0
  277. package/Blueprint.Infra/bin/Debug/net8.0/DnsClient.dll +0 -0
  278. package/Blueprint.Infra/bin/Debug/net8.0/Humanizer.dll +0 -0
  279. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Bcl.AsyncInterfaces.dll +0 -0
  280. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Bcl.Memory.dll +0 -0
  281. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.CodeAnalysis.CSharp.Workspaces.dll +0 -0
  282. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.CodeAnalysis.CSharp.dll +0 -0
  283. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.CodeAnalysis.Workspaces.dll +0 -0
  284. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.CodeAnalysis.dll +0 -0
  285. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll +0 -0
  286. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Design.dll +0 -0
  287. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Relational.dll +0 -0
  288. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.dll +0 -0
  289. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Caching.Abstractions.dll +0 -0
  290. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Caching.Memory.dll +0 -0
  291. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.Abstractions.dll +0 -0
  292. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.Binder.dll +0 -0
  293. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.CommandLine.dll +0 -0
  294. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.EnvironmentVariables.dll +0 -0
  295. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.FileExtensions.dll +0 -0
  296. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.Json.dll +0 -0
  297. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.UserSecrets.dll +0 -0
  298. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Configuration.dll +0 -0
  299. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
  300. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.dll +0 -0
  301. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.DependencyModel.dll +0 -0
  302. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Diagnostics.Abstractions.dll +0 -0
  303. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Diagnostics.dll +0 -0
  304. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.FileProviders.Abstractions.dll +0 -0
  305. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.FileProviders.Physical.dll +0 -0
  306. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.FileSystemGlobbing.dll +0 -0
  307. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Hosting.Abstractions.dll +0 -0
  308. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Hosting.dll +0 -0
  309. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
  310. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Logging.Configuration.dll +0 -0
  311. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Logging.Console.dll +0 -0
  312. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Logging.Debug.dll +0 -0
  313. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Logging.EventLog.dll +0 -0
  314. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Logging.EventSource.dll +0 -0
  315. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Logging.dll +0 -0
  316. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Options.ConfigurationExtensions.dll +0 -0
  317. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Options.dll +0 -0
  318. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.Extensions.Primitives.dll +0 -0
  319. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.IdentityModel.Abstractions.dll +0 -0
  320. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll +0 -0
  321. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.IdentityModel.Logging.dll +0 -0
  322. package/Blueprint.Infra/bin/Debug/net8.0/Microsoft.IdentityModel.Tokens.dll +0 -0
  323. package/Blueprint.Infra/bin/Debug/net8.0/MongoDB.Bson.dll +0 -0
  324. package/Blueprint.Infra/bin/Debug/net8.0/MongoDB.Driver.dll +0 -0
  325. package/Blueprint.Infra/bin/Debug/net8.0/Mono.TextTemplating.dll +0 -0
  326. package/Blueprint.Infra/bin/Debug/net8.0/MySqlConnector.dll +0 -0
  327. package/Blueprint.Infra/bin/Debug/net8.0/Pomelo.EntityFrameworkCore.MySql.dll +0 -0
  328. package/Blueprint.Infra/bin/Debug/net8.0/RabbitMQ.Client.dll +0 -0
  329. package/Blueprint.Infra/bin/Debug/net8.0/SharpCompress.dll +0 -0
  330. package/Blueprint.Infra/bin/Debug/net8.0/Snappier.dll +0 -0
  331. package/Blueprint.Infra/bin/Debug/net8.0/System.CodeDom.dll +0 -0
  332. package/Blueprint.Infra/bin/Debug/net8.0/System.Composition.AttributedModel.dll +0 -0
  333. package/Blueprint.Infra/bin/Debug/net8.0/System.Composition.Convention.dll +0 -0
  334. package/Blueprint.Infra/bin/Debug/net8.0/System.Composition.Hosting.dll +0 -0
  335. package/Blueprint.Infra/bin/Debug/net8.0/System.Composition.Runtime.dll +0 -0
  336. package/Blueprint.Infra/bin/Debug/net8.0/System.Composition.TypedParts.dll +0 -0
  337. package/Blueprint.Infra/bin/Debug/net8.0/System.Diagnostics.EventLog.dll +0 -0
  338. package/Blueprint.Infra/bin/Debug/net8.0/System.IO.Pipelines.dll +0 -0
  339. package/Blueprint.Infra/bin/Debug/net8.0/System.IdentityModel.Tokens.Jwt.dll +0 -0
  340. package/Blueprint.Infra/bin/Debug/net8.0/System.Threading.RateLimiting.dll +0 -0
  341. package/Blueprint.Infra/bin/Debug/net8.0/ZstdSharp.dll +0 -0
  342. package/Blueprint.Infra/bin/Debug/net8.0/appsettings.Development.json +8 -0
  343. package/Blueprint.Infra/bin/Debug/net8.0/appsettings.json +8 -0
  344. package/Blueprint.Infra/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  345. package/Blueprint.Infra/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  346. package/Blueprint.Infra/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  347. package/Blueprint.Infra/bin/Debug/net8.0/cs/Microsoft.CodeAnalysis.resources.dll +0 -0
  348. package/Blueprint.Infra/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  349. package/Blueprint.Infra/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  350. package/Blueprint.Infra/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  351. package/Blueprint.Infra/bin/Debug/net8.0/de/Microsoft.CodeAnalysis.resources.dll +0 -0
  352. package/Blueprint.Infra/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  353. package/Blueprint.Infra/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  354. package/Blueprint.Infra/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  355. package/Blueprint.Infra/bin/Debug/net8.0/es/Microsoft.CodeAnalysis.resources.dll +0 -0
  356. package/Blueprint.Infra/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  357. package/Blueprint.Infra/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  358. package/Blueprint.Infra/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  359. package/Blueprint.Infra/bin/Debug/net8.0/fr/Microsoft.CodeAnalysis.resources.dll +0 -0
  360. package/Blueprint.Infra/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  361. package/Blueprint.Infra/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  362. package/Blueprint.Infra/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  363. package/Blueprint.Infra/bin/Debug/net8.0/it/Microsoft.CodeAnalysis.resources.dll +0 -0
  364. package/Blueprint.Infra/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  365. package/Blueprint.Infra/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  366. package/Blueprint.Infra/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  367. package/Blueprint.Infra/bin/Debug/net8.0/ja/Microsoft.CodeAnalysis.resources.dll +0 -0
  368. package/Blueprint.Infra/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  369. package/Blueprint.Infra/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  370. package/Blueprint.Infra/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  371. package/Blueprint.Infra/bin/Debug/net8.0/ko/Microsoft.CodeAnalysis.resources.dll +0 -0
  372. package/Blueprint.Infra/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  373. package/Blueprint.Infra/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  374. package/Blueprint.Infra/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  375. package/Blueprint.Infra/bin/Debug/net8.0/pl/Microsoft.CodeAnalysis.resources.dll +0 -0
  376. package/Blueprint.Infra/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  377. package/Blueprint.Infra/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  378. package/Blueprint.Infra/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  379. package/Blueprint.Infra/bin/Debug/net8.0/pt-BR/Microsoft.CodeAnalysis.resources.dll +0 -0
  380. package/Blueprint.Infra/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  381. package/Blueprint.Infra/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  382. package/Blueprint.Infra/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  383. package/Blueprint.Infra/bin/Debug/net8.0/ru/Microsoft.CodeAnalysis.resources.dll +0 -0
  384. package/Blueprint.Infra/bin/Debug/net8.0/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.Messages.dll +0 -0
  385. package/Blueprint.Infra/bin/Debug/net8.0/runtimes/win/lib/net8.0/System.Diagnostics.EventLog.dll +0 -0
  386. package/Blueprint.Infra/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  387. package/Blueprint.Infra/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  388. package/Blueprint.Infra/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  389. package/Blueprint.Infra/bin/Debug/net8.0/tr/Microsoft.CodeAnalysis.resources.dll +0 -0
  390. package/Blueprint.Infra/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  391. package/Blueprint.Infra/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  392. package/Blueprint.Infra/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  393. package/Blueprint.Infra/bin/Debug/net8.0/zh-Hans/Microsoft.CodeAnalysis.resources.dll +0 -0
  394. package/Blueprint.Infra/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.Workspaces.resources.dll +0 -0
  395. package/Blueprint.Infra/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll +0 -0
  396. package/Blueprint.Infra/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.Workspaces.resources.dll +0 -0
  397. package/Blueprint.Infra/bin/Debug/net8.0/zh-Hant/Microsoft.CodeAnalysis.resources.dll +0 -0
  398. package/Blueprint.Infra/obj/Blueprint.Infra.csproj.nuget.dgspec.json +176 -0
  399. package/Blueprint.Infra/obj/Blueprint.Infra.csproj.nuget.g.props +24 -0
  400. package/Blueprint.Infra/obj/Blueprint.Infra.csproj.nuget.g.targets +10 -0
  401. package/Blueprint.Infra/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +4 -0
  402. package/Blueprint.Infra/obj/Debug/net8.0/Blueprin.DC076348.Up2Date +0 -0
  403. package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.AssemblyInfo.cs +24 -0
  404. package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.AssemblyInfoInputs.cache +1 -0
  405. package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.GeneratedMSBuildEditorConfig.editorconfig +13 -0
  406. package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.GlobalUsings.g.cs +12 -0
  407. package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.assets.cache +0 -0
  408. package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.csproj.AssemblyReference.cache +0 -0
  409. package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.csproj.BuildWithSkipAnalyzers +0 -0
  410. package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.csproj.CoreCompileInputs.cache +1 -0
  411. package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.csproj.FileListAbsolute.txt +143 -0
  412. package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.dll +0 -0
  413. package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.genruntimeconfig.cache +1 -0
  414. package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.pdb +0 -0
  415. package/Blueprint.Infra/obj/Debug/net8.0/Blueprint.Infra.sourcelink.json +1 -0
  416. package/Blueprint.Infra/obj/Debug/net8.0/apphost.exe +0 -0
  417. package/Blueprint.Infra/obj/Debug/net8.0/ref/Blueprint.Infra.dll +0 -0
  418. package/Blueprint.Infra/obj/Debug/net8.0/refint/Blueprint.Infra.dll +0 -0
  419. package/Blueprint.Infra/obj/project.assets.json +4442 -0
  420. package/Blueprint.Infra/obj/project.nuget.cache +92 -0
  421. package/Blueprint.Test/Blueprint.Test.csproj +29 -0
  422. package/Blueprint.Test/UnitTest1.cs +11 -0
  423. package/Blueprint.Test/bin/Debug/net8.0/AWSSDK.Core.dll +0 -0
  424. package/Blueprint.Test/bin/Debug/net8.0/AWSSDK.Extensions.NETCore.Setup.dll +0 -0
  425. package/Blueprint.Test/bin/Debug/net8.0/AWSSDK.S3.dll +0 -0
  426. package/Blueprint.Test/bin/Debug/net8.0/AutoMapper.dll +0 -0
  427. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.API.deps.json +1702 -0
  428. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.API.dll +0 -0
  429. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.API.exe +0 -0
  430. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.API.pdb +0 -0
  431. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.API.runtimeconfig.json +20 -0
  432. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Core.deps.json +777 -0
  433. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Core.dll +0 -0
  434. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Core.exe +0 -0
  435. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Core.pdb +0 -0
  436. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Core.runtimeconfig.json +12 -0
  437. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Infra.deps.json +1636 -0
  438. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Infra.dll +0 -0
  439. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Infra.exe +0 -0
  440. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Infra.pdb +0 -0
  441. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Infra.runtimeconfig.json +13 -0
  442. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Test.deps.json +2804 -0
  443. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Test.dll +0 -0
  444. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Test.pdb +0 -0
  445. package/Blueprint.Test/bin/Debug/net8.0/Blueprint.Test.runtimeconfig.json +19 -0
  446. package/Blueprint.Test/bin/Debug/net8.0/CoverletSourceRootsMapping_Blueprint.Test +0 -0
  447. package/Blueprint.Test/bin/Debug/net8.0/DnsClient.dll +0 -0
  448. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.AspNetCore.Authentication.JwtBearer.dll +0 -0
  449. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.AspNetCore.Mvc.Versioning.dll +0 -0
  450. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.Bcl.Memory.dll +0 -0
  451. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Abstractions.dll +0 -0
  452. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.Relational.dll +0 -0
  453. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.EntityFrameworkCore.dll +0 -0
  454. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.Extensions.Caching.Memory.dll +0 -0
  455. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.Abstractions.dll +0 -0
  456. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.Extensions.DependencyInjection.dll +0 -0
  457. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.Extensions.Logging.Abstractions.dll +0 -0
  458. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.Extensions.Logging.dll +0 -0
  459. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.Extensions.Options.dll +0 -0
  460. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.IdentityModel.Abstractions.dll +0 -0
  461. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.IdentityModel.JsonWebTokens.dll +0 -0
  462. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.IdentityModel.Logging.dll +0 -0
  463. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.IdentityModel.Protocols.OpenIdConnect.dll +0 -0
  464. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.IdentityModel.Protocols.dll +0 -0
  465. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.IdentityModel.Tokens.dll +0 -0
  466. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.OpenApi.dll +0 -0
  467. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.TestPlatform.CommunicationUtilities.dll +0 -0
  468. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.TestPlatform.CoreUtilities.dll +0 -0
  469. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.TestPlatform.CrossPlatEngine.dll +0 -0
  470. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.TestPlatform.PlatformAbstractions.dll +0 -0
  471. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.TestPlatform.Utilities.dll +0 -0
  472. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.VisualStudio.CodeCoverage.Shim.dll +0 -0
  473. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.VisualStudio.TestPlatform.Common.dll +0 -0
  474. package/Blueprint.Test/bin/Debug/net8.0/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll +0 -0
  475. package/Blueprint.Test/bin/Debug/net8.0/MongoDB.Bson.dll +0 -0
  476. package/Blueprint.Test/bin/Debug/net8.0/MongoDB.Driver.dll +0 -0
  477. package/Blueprint.Test/bin/Debug/net8.0/MySqlConnector.dll +0 -0
  478. package/Blueprint.Test/bin/Debug/net8.0/Newtonsoft.Json.dll +0 -0
  479. package/Blueprint.Test/bin/Debug/net8.0/NuGet.Frameworks.dll +0 -0
  480. package/Blueprint.Test/bin/Debug/net8.0/Pomelo.EntityFrameworkCore.MySql.dll +0 -0
  481. package/Blueprint.Test/bin/Debug/net8.0/RabbitMQ.Client.dll +0 -0
  482. package/Blueprint.Test/bin/Debug/net8.0/SharpCompress.dll +0 -0
  483. package/Blueprint.Test/bin/Debug/net8.0/Snappier.dll +0 -0
  484. package/Blueprint.Test/bin/Debug/net8.0/Swashbuckle.AspNetCore.Swagger.dll +0 -0
  485. package/Blueprint.Test/bin/Debug/net8.0/Swashbuckle.AspNetCore.SwaggerGen.dll +0 -0
  486. package/Blueprint.Test/bin/Debug/net8.0/Swashbuckle.AspNetCore.SwaggerUI.dll +0 -0
  487. package/Blueprint.Test/bin/Debug/net8.0/System.IdentityModel.Tokens.Jwt.dll +0 -0
  488. package/Blueprint.Test/bin/Debug/net8.0/ZstdSharp.dll +0 -0
  489. package/Blueprint.Test/bin/Debug/net8.0/appsettings.Development.json +8 -0
  490. package/Blueprint.Test/bin/Debug/net8.0/appsettings.json +17 -0
  491. package/Blueprint.Test/bin/Debug/net8.0/cs/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
  492. package/Blueprint.Test/bin/Debug/net8.0/cs/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
  493. package/Blueprint.Test/bin/Debug/net8.0/cs/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
  494. package/Blueprint.Test/bin/Debug/net8.0/cs/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
  495. package/Blueprint.Test/bin/Debug/net8.0/cs/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
  496. package/Blueprint.Test/bin/Debug/net8.0/de/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
  497. package/Blueprint.Test/bin/Debug/net8.0/de/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
  498. package/Blueprint.Test/bin/Debug/net8.0/de/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
  499. package/Blueprint.Test/bin/Debug/net8.0/de/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
  500. package/Blueprint.Test/bin/Debug/net8.0/de/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
  501. package/Blueprint.Test/bin/Debug/net8.0/es/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
  502. package/Blueprint.Test/bin/Debug/net8.0/es/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
  503. package/Blueprint.Test/bin/Debug/net8.0/es/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
  504. package/Blueprint.Test/bin/Debug/net8.0/es/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
  505. package/Blueprint.Test/bin/Debug/net8.0/es/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
  506. package/Blueprint.Test/bin/Debug/net8.0/fr/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
  507. package/Blueprint.Test/bin/Debug/net8.0/fr/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
  508. package/Blueprint.Test/bin/Debug/net8.0/fr/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
  509. package/Blueprint.Test/bin/Debug/net8.0/fr/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
  510. package/Blueprint.Test/bin/Debug/net8.0/fr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
  511. package/Blueprint.Test/bin/Debug/net8.0/it/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
  512. package/Blueprint.Test/bin/Debug/net8.0/it/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
  513. package/Blueprint.Test/bin/Debug/net8.0/it/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
  514. package/Blueprint.Test/bin/Debug/net8.0/it/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
  515. package/Blueprint.Test/bin/Debug/net8.0/it/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
  516. package/Blueprint.Test/bin/Debug/net8.0/ja/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
  517. package/Blueprint.Test/bin/Debug/net8.0/ja/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
  518. package/Blueprint.Test/bin/Debug/net8.0/ja/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
  519. package/Blueprint.Test/bin/Debug/net8.0/ja/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
  520. package/Blueprint.Test/bin/Debug/net8.0/ja/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
  521. package/Blueprint.Test/bin/Debug/net8.0/ko/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
  522. package/Blueprint.Test/bin/Debug/net8.0/ko/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
  523. package/Blueprint.Test/bin/Debug/net8.0/ko/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
  524. package/Blueprint.Test/bin/Debug/net8.0/ko/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
  525. package/Blueprint.Test/bin/Debug/net8.0/ko/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
  526. package/Blueprint.Test/bin/Debug/net8.0/pl/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
  527. package/Blueprint.Test/bin/Debug/net8.0/pl/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
  528. package/Blueprint.Test/bin/Debug/net8.0/pl/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
  529. package/Blueprint.Test/bin/Debug/net8.0/pl/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
  530. package/Blueprint.Test/bin/Debug/net8.0/pl/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
  531. package/Blueprint.Test/bin/Debug/net8.0/pt-BR/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
  532. package/Blueprint.Test/bin/Debug/net8.0/pt-BR/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
  533. package/Blueprint.Test/bin/Debug/net8.0/pt-BR/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
  534. package/Blueprint.Test/bin/Debug/net8.0/pt-BR/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
  535. package/Blueprint.Test/bin/Debug/net8.0/pt-BR/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
  536. package/Blueprint.Test/bin/Debug/net8.0/ru/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
  537. package/Blueprint.Test/bin/Debug/net8.0/ru/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
  538. package/Blueprint.Test/bin/Debug/net8.0/ru/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
  539. package/Blueprint.Test/bin/Debug/net8.0/ru/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
  540. package/Blueprint.Test/bin/Debug/net8.0/ru/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
  541. package/Blueprint.Test/bin/Debug/net8.0/testhost.dll +0 -0
  542. package/Blueprint.Test/bin/Debug/net8.0/testhost.exe +0 -0
  543. package/Blueprint.Test/bin/Debug/net8.0/tr/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
  544. package/Blueprint.Test/bin/Debug/net8.0/tr/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
  545. package/Blueprint.Test/bin/Debug/net8.0/tr/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
  546. package/Blueprint.Test/bin/Debug/net8.0/tr/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
  547. package/Blueprint.Test/bin/Debug/net8.0/tr/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
  548. package/Blueprint.Test/bin/Debug/net8.0/xunit.abstractions.dll +0 -0
  549. package/Blueprint.Test/bin/Debug/net8.0/xunit.assert.dll +0 -0
  550. package/Blueprint.Test/bin/Debug/net8.0/xunit.core.dll +0 -0
  551. package/Blueprint.Test/bin/Debug/net8.0/xunit.execution.dotnet.dll +0 -0
  552. package/Blueprint.Test/bin/Debug/net8.0/xunit.runner.reporters.netcoreapp10.dll +0 -0
  553. package/Blueprint.Test/bin/Debug/net8.0/xunit.runner.utility.netcoreapp10.dll +0 -0
  554. package/Blueprint.Test/bin/Debug/net8.0/xunit.runner.visualstudio.dotnetcore.testadapter.dll +0 -0
  555. package/Blueprint.Test/bin/Debug/net8.0/zh-Hans/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
  556. package/Blueprint.Test/bin/Debug/net8.0/zh-Hans/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
  557. package/Blueprint.Test/bin/Debug/net8.0/zh-Hans/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
  558. package/Blueprint.Test/bin/Debug/net8.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
  559. package/Blueprint.Test/bin/Debug/net8.0/zh-Hans/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
  560. package/Blueprint.Test/bin/Debug/net8.0/zh-Hant/Microsoft.TestPlatform.CommunicationUtilities.resources.dll +0 -0
  561. package/Blueprint.Test/bin/Debug/net8.0/zh-Hant/Microsoft.TestPlatform.CoreUtilities.resources.dll +0 -0
  562. package/Blueprint.Test/bin/Debug/net8.0/zh-Hant/Microsoft.TestPlatform.CrossPlatEngine.resources.dll +0 -0
  563. package/Blueprint.Test/bin/Debug/net8.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.Common.resources.dll +0 -0
  564. package/Blueprint.Test/bin/Debug/net8.0/zh-Hant/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll +0 -0
  565. package/Blueprint.Test/obj/Blueprint.Test.csproj.nuget.dgspec.json +372 -0
  566. package/Blueprint.Test/obj/Blueprint.Test.csproj.nuget.g.props +30 -0
  567. package/Blueprint.Test/obj/Blueprint.Test.csproj.nuget.g.targets +14 -0
  568. package/Blueprint.Test/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs +4 -0
  569. package/Blueprint.Test/obj/Debug/net8.0/Blueprin.BFA8907E.Up2Date +0 -0
  570. package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.AssemblyInfo.cs +23 -0
  571. package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.AssemblyInfoInputs.cache +1 -0
  572. package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.GeneratedMSBuildEditorConfig.editorconfig +13 -0
  573. package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.GlobalUsings.g.cs +9 -0
  574. package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.assets.cache +0 -0
  575. package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.csproj.AssemblyReference.cache +0 -0
  576. package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.csproj.CoreCompileInputs.cache +1 -0
  577. package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.csproj.FileListAbsolute.txt +154 -0
  578. package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.dll +0 -0
  579. package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.genruntimeconfig.cache +1 -0
  580. package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.pdb +0 -0
  581. package/Blueprint.Test/obj/Debug/net8.0/Blueprint.Test.sourcelink.json +1 -0
  582. package/Blueprint.Test/obj/Debug/net8.0/ref/Blueprint.Test.dll +0 -0
  583. package/Blueprint.Test/obj/Debug/net8.0/refint/Blueprint.Test.dll +0 -0
  584. package/Blueprint.Test/obj/project.assets.json +9266 -0
  585. package/Blueprint.Test/obj/project.nuget.cache +170 -0
  586. package/{index.js → create.js} +22 -12
  587. package/package.json +14 -11
@@ -7,7 +7,22 @@
7
7
  </PropertyGroup>
8
8
 
9
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" />
10
20
  <PackageReference Include="Swashbuckle.AspNetCore" Version="6.4.0" />
11
21
  </ItemGroup>
12
22
 
23
+ <ItemGroup>
24
+ <ProjectReference Include="..\Blueprint.Core\Blueprint.Core.csproj" />
25
+ <ProjectReference Include="..\Blueprint.Infra\Blueprint.Infra.csproj" />
26
+ </ItemGroup>
27
+
13
28
  </Project>
@@ -2,5 +2,7 @@
2
2
  <Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
3
  <PropertyGroup>
4
4
  <ActiveDebugProfile>https</ActiveDebugProfile>
5
+ <Controller_SelectedScaffolderID>MvcControllerEmptyScaffolder</Controller_SelectedScaffolderID>
6
+ <Controller_SelectedScaffolderCategoryPath>root/Common/MVC/Controller</Controller_SelectedScaffolderCategoryPath>
5
7
  </PropertyGroup>
6
8
  </Project>
@@ -0,0 +1,179 @@
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
+ }
@@ -0,0 +1,51 @@
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
+ }
@@ -0,0 +1,43 @@
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
+ }
@@ -0,0 +1,28 @@
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
+ }
@@ -1,25 +1,176 @@
1
- var builder = WebApplication.CreateBuilder(args);
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;
2
21
 
3
- // Add services to the container.
22
+ var builder = WebApplication.CreateBuilder(args);
4
23
 
5
- builder.Services.AddControllers();
6
- // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
7
- builder.Services.AddEndpointsApiExplorer();
8
- builder.Services.AddSwaggerGen();
24
+ ConfigureThirdPartyServices();
25
+ ConfigureServices();
26
+ ConfigureSwagger();
27
+ ConfigureDatabase();
9
28
 
10
29
  var app = builder.Build();
11
30
 
12
- // Configure the HTTP request pipeline.
13
- if (app.Environment.IsDevelopment())
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()
14
52
  {
15
- app.UseSwagger();
16
- app.UseSwaggerUI();
53
+ // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
54
+ builder.Services.AddEndpointsApiExplorer();
55
+ builder.Services.AddSwaggerGen();
17
56
  }
18
57
 
19
- app.UseHttpsRedirection();
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
+ });
20
104
 
21
- app.UseAuthorization();
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<>));
22
110
 
23
- app.MapControllers();
111
+ // Register other services
112
+ builder.Services.AddScoped<IUserInfra, MongoUserInfra>();
113
+ builder.Services.AddScoped<IUserInfra, MySQLUserInfra>();
24
114
 
25
- app.Run();
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
+ }
@@ -0,0 +1,154 @@
1
+ using RabbitMQ.Client;
2
+ using RabbitMQ.Client.Events;
3
+ using System.Text;
4
+ using System.Text.Json;
5
+ using Template.Core.Dtos.Requests;
6
+
7
+ namespace Blueprint.API.Services
8
+ {
9
+ public class RabbitMqConsumerService : BackgroundService
10
+ {
11
+ private IConnection? _connection;
12
+ private IChannel? _channel;
13
+ private readonly Dictionary<string, Func<string, Task>> _queueHandlers;
14
+
15
+ public RabbitMqConsumerService()
16
+ {
17
+ // Initialize queue handlers
18
+ _queueHandlers = new Dictionary<string, Func<string, Task>>
19
+ {
20
+ { "user-creation-queue", HandleUserCreationAsync },
21
+ { "user-update-queue", HandleUserUpdateAsync },
22
+ };
23
+ }
24
+
25
+ private async Task InitializeRabbitMq(CancellationToken stoppingToken)
26
+ {
27
+ while (!stoppingToken.IsCancellationRequested)
28
+ {
29
+ try
30
+ {
31
+ var factory = new ConnectionFactory
32
+ {
33
+ HostName = "localhost",
34
+ UserName = "truongdx8",
35
+ Password = "12345678"
36
+ };
37
+
38
+ // Create a connection
39
+ _connection = await factory.CreateConnectionAsync();
40
+
41
+ // Create a channel (more modern than IModel)
42
+ _channel = await _connection.CreateChannelAsync();
43
+
44
+ // Declare all queues
45
+ foreach (var queueName in _queueHandlers.Keys)
46
+ {
47
+ await _channel.QueueDeclareAsync(queue: queueName,
48
+ durable: true,
49
+ exclusive: false,
50
+ autoDelete: false,
51
+ arguments: null);
52
+ }
53
+ Console.WriteLine("RabbitMQ connected successfully.");
54
+ return; // Exit the loop once connection is established
55
+ }
56
+ catch (Exception ex)
57
+ {
58
+ Console.WriteLine($"Error connecting to RabbitMQ: {ex.Message}");
59
+ await Task.Delay(TimeSpan.FromSeconds(5), stoppingToken);
60
+ }
61
+ }
62
+ }
63
+
64
+ protected override async Task ExecuteAsync(CancellationToken stoppingToken)
65
+ {
66
+ await InitializeRabbitMq(stoppingToken);
67
+
68
+ stoppingToken.Register(() => Console.WriteLine("RabbitMQ consumer is stopping."));
69
+
70
+ if (_connection != null && _connection.IsOpen)
71
+ {
72
+ // Start consumers for all queues
73
+ foreach (var queueName in _queueHandlers.Keys)
74
+ {
75
+ Task.Run(() => StartConsumer(queueName, stoppingToken), stoppingToken);
76
+ }
77
+ }
78
+
79
+ // Keep the background service running
80
+ await Task.CompletedTask;
81
+ }
82
+
83
+ private async Task StartConsumer(string queueName, CancellationToken stoppingToken)
84
+ {
85
+ var consumer = new AsyncEventingBasicConsumer(_channel!);
86
+
87
+ consumer.ReceivedAsync += async (model, ea) =>
88
+ {
89
+ var body = ea.Body.ToArray();
90
+ var message = Encoding.UTF8.GetString(body);
91
+
92
+ try
93
+ {
94
+ // Route the message to the appropriate handler
95
+ if (_queueHandlers.TryGetValue(queueName, out var handler))
96
+ {
97
+ await handler(message);
98
+ }
99
+ else
100
+ {
101
+ Console.WriteLine($"No handler found for queue: {queueName}");
102
+ }
103
+
104
+ // Acknowledge the message
105
+ await _channel!.BasicAckAsync(ea.DeliveryTag, false);
106
+ }
107
+ catch (Exception ex)
108
+ {
109
+ Console.WriteLine($"Error processing message: {ex.Message}");
110
+ await _channel!.BasicNackAsync(ea.DeliveryTag, false, true); // Requeue the message
111
+ }
112
+ };
113
+
114
+ await _channel!.BasicConsumeAsync(queue: queueName, autoAck: false, consumer: consumer);
115
+
116
+ // Keep the task alive
117
+ while (!stoppingToken.IsCancellationRequested)
118
+ {
119
+ await Task.Delay(1000, stoppingToken);
120
+ }
121
+ }
122
+
123
+ private Task HandleUserCreationAsync(string message)
124
+ {
125
+ Console.WriteLine($"[User Creation] Processing message: {message}");
126
+ // Deserialize message and handle creation logic
127
+ var user = JsonSerializer.Deserialize<UserRequestDto>(message);
128
+ Console.WriteLine($"Creating user: {user?.Name}");
129
+ return Task.CompletedTask;
130
+ }
131
+
132
+ private Task HandleUserUpdateAsync(string message)
133
+ {
134
+ Console.WriteLine($"[User Update] Processing message: {message}");
135
+ // Deserialize message and handle update logic
136
+ var user = JsonSerializer.Deserialize<UserRequestDto>(message);
137
+ Console.WriteLine($"Updating user with ID {user?.Id}");
138
+ return Task.CompletedTask;
139
+ }
140
+
141
+ public override void Dispose()
142
+ {
143
+ if (_channel != null && _channel.IsOpen)
144
+ {
145
+ _channel.CloseAsync().GetAwaiter().GetResult();
146
+ }
147
+ if (_connection != null && _connection.IsOpen)
148
+ {
149
+ _connection.CloseAsync().GetAwaiter().GetResult();
150
+ }
151
+ base.Dispose();
152
+ }
153
+ }
154
+ }