2022-12-19 17:33:29.9546||DEBUG|DiscountService.Program|init main function 2022-12-19 17:33:33.1309|10403|INFO|Microsoft.EntityFrameworkCore.Infrastructure|Entity Framework Core 3.1.11 initialized 'AppDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: using lazy-loading proxies 2022-12-19 17:33:33.4668|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (12ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2022-12-19 17:33:33.4845|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (11ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2022-12-19 17:33:33.4888|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2022-12-19 17:33:33.4888|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2022-12-19 17:33:33.5021|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT [MigrationId], [ProductVersion] FROM [__EFMigrationsHistory] ORDER BY [MigrationId]; 2022-12-19 17:33:33.5021|20405|INFO|Microsoft.EntityFrameworkCore.Migrations|No migrations were applied. The database is already up to date. 2022-12-19 17:33:33.7102|50|WARN|Microsoft.AspNetCore.DataProtection.Repositories.EphemeralXmlRepository|Using an in-memory repository. Keys will not be persisted to storage. 2022-12-19 17:33:33.7102|59|WARN|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|Neither user profile nor HKLM registry available. Using an ephemeral key repository. Protected data will be unavailable when application exits. 2022-12-19 17:33:33.7102|58|INFO|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|Creating key {16a60d31-ec42-4cb8-b75f-fa3ee6fa4eca} with creation date 2022-12-19 16:33:33Z, activation date 2022-12-19 16:33:33Z, and expiration date 2023-03-19 16:33:33Z. 2022-12-19 17:33:33.7215|35|WARN|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|No XML encryptor configured. Key {16a60d31-ec42-4cb8-b75f-fa3ee6fa4eca} may be persisted to storage in unencrypted form. 2022-12-19 17:33:33.9439|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/discount/api/Discount/GetDiscountCode?code=IC-SKD50&courseId=257 2022-12-19 17:33:34.4113|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-19 17:33:34.4299|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-19 17:33:34.4299|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-19 17:33:34.4562|3|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Route matched with {action = "GetDiscountCode", controller = "Discount"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetDiscountCode(System.String, Int64) on controller DiscountService.Controllers.DiscountController (DiscountService). 2022-12-19 17:33:34.4562|10403|INFO|Microsoft.EntityFrameworkCore.Infrastructure|Entity Framework Core 3.1.11 initialized 'AppDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: using lazy-loading proxies 2022-12-19 17:33:34.4937|10403|INFO|Microsoft.EntityFrameworkCore.Infrastructure|Entity Framework Core 3.1.11 initialized 'AppDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: using lazy-loading proxies 2022-12-19 17:33:34.6532|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (28ms) [Parameters=[@__Trim_0='?' (Size = 4000)], CommandType='Text', CommandTimeout='30'] SELECT TOP(1) [d].[Code], [d].[DiscountId], [d].[IsActive], [d0].[Name], [d0].[AllCoursesDiscount], [d0].[Amount], [d0].[Description], [d0].[StartDate], [d0].[EndDate], [d0].[DiscountChargeType], [d0].[InstitutionId], [d0].[SetUsageLimit], [d0].[UsageLimit], [d0].[UsageCount] FROM [DiscountCodes] AS [d] INNER JOIN [Discounts] AS [d0] ON [d].[DiscountId] = [d0].[Id] WHERE [d].[Code] = @__Trim_0 2022-12-19 17:33:34.6532|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-19 17:33:34.6982|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 239.6366ms 2022-12-19 17:33:34.6982|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-19 17:33:34.6982|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 759.091ms 200 application/json; charset=utf-8 2022-12-19 18:18:14.4317|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 POST http://127.0.0.1:2447/DISCOUNT/iisintegration 0 2022-12-19 18:18:14.4317|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 1.148ms 202