2023-01-04 11:45:18.6903||DEBUG|DiscountService.Program|init main function 2023-01-04 11:45:22.6461|10403|INFO|Microsoft.EntityFrameworkCore.Infrastructure|Entity Framework Core 3.1.11 initialized 'AppDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: using lazy-loading proxies 2023-01-04 11:45:22.9824|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (12ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2023-01-04 11:45:23.0002|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (11ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2023-01-04 11:45:23.0002|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2023-01-04 11:45:23.0002|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2023-01-04 11:45:23.0195|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT [MigrationId], [ProductVersion] FROM [__EFMigrationsHistory] ORDER BY [MigrationId]; 2023-01-04 11:45:23.0308|20405|INFO|Microsoft.EntityFrameworkCore.Migrations|No migrations were applied. The database is already up to date. 2023-01-04 11:45:23.2247|50|WARN|Microsoft.AspNetCore.DataProtection.Repositories.EphemeralXmlRepository|Using an in-memory repository. Keys will not be persisted to storage. 2023-01-04 11:45:23.2247|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. 2023-01-04 11:45:23.2310|58|INFO|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|Creating key {64553ad7-9911-4d14-83f7-c27ae426aa01} with creation date 2023-01-04 10:45:23Z, activation date 2023-01-04 10:45:23Z, and expiration date 2023-04-04 10:45:23Z. 2023-01-04 11:45:23.2310|35|WARN|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|No XML encryptor configured. Key {64553ad7-9911-4d14-83f7-c27ae426aa01} may be persisted to storage in unencrypted form. 2023-01-04 11:45:23.5229|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/discount/api/Discount/GetDiscountCode?code=IC-SKD50&courseId=260 2023-01-04 11:45:23.9770|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2023-01-04 11:45:23.9957|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2023-01-04 11:45:23.9957|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2023-01-04 11:45:24.0224|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). 2023-01-04 11:45:24.0253|10403|INFO|Microsoft.EntityFrameworkCore.Infrastructure|Entity Framework Core 3.1.11 initialized 'AppDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: using lazy-loading proxies 2023-01-04 11:45:24.0603|10403|INFO|Microsoft.EntityFrameworkCore.Infrastructure|Entity Framework Core 3.1.11 initialized 'AppDbContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer' with options: using lazy-loading proxies 2023-01-04 11:45:24.2209|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 2023-01-04 11:45:24.2369|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2023-01-04 11:45:24.2661|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 241.2446ms 2023-01-04 11:45:24.2661|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2023-01-04 11:45:24.2661|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 747.1821ms 200 application/json; charset=utf-8