2022-12-17 00:31:58.6887||DEBUG|DiscountService.Program|init main function 2022-12-17 00:32:01.3075|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-17 00:32:01.6599|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (13ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2022-12-17 00:32:01.6777|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (11ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2022-12-17 00:32:01.6777|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2022-12-17 00:32:01.6777|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2022-12-17 00:32:01.6965|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT [MigrationId], [ProductVersion] FROM [__EFMigrationsHistory] ORDER BY [MigrationId]; 2022-12-17 00:32:01.7082|20405|INFO|Microsoft.EntityFrameworkCore.Migrations|No migrations were applied. The database is already up to date. 2022-12-17 00:32:01.9175|50|WARN|Microsoft.AspNetCore.DataProtection.Repositories.EphemeralXmlRepository|Using an in-memory repository. Keys will not be persisted to storage. 2022-12-17 00:32:01.9175|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-17 00:32:01.9175|58|INFO|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|Creating key {ba8bb01b-71c7-4e81-a101-a67909f8eb51} with creation date 2022-12-16 23:32:01Z, activation date 2022-12-16 23:32:01Z, and expiration date 2023-03-16 23:32:01Z. 2022-12-17 00:32:01.9291|35|WARN|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|No XML encryptor configured. Key {ba8bb01b-71c7-4e81-a101-a67909f8eb51} may be persisted to storage in unencrypted form. 2022-12-17 00:32:01.9921|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/Discount 2022-12-17 00:32:02.3505|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 358.7776ms 404 2022-12-17 00:32:07.5444|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/Discount/swagger/index.html 2022-12-17 00:32:07.5631|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 18.6692ms 200 text/html;charset=utf-8 2022-12-17 00:32:07.5824|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/Discount/swagger/swagger-ui.css 2022-12-17 00:32:07.5824|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/Discount/swagger/swagger-ui-standalone-preset.js 2022-12-17 00:32:07.5824|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/Discount/swagger/swagger-ui-bundle.js 2022-12-17 00:32:07.6001|2|INFO|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|Sending file. Request path: '/swagger-ui-bundle.js'. Physical path: 'N/A' 2022-12-17 00:32:07.6001|2|INFO|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|Sending file. Request path: '/swagger-ui.css'. Physical path: 'N/A' 2022-12-17 00:32:07.6001|2|INFO|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|Sending file. Request path: '/swagger-ui-standalone-preset.js'. Physical path: 'N/A' 2022-12-17 00:32:07.6001|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 20.1834ms 200 text/css 2022-12-17 00:32:07.6001|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 15.9444ms 200 application/javascript 2022-12-17 00:32:07.6001|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 19.5162ms 200 application/javascript 2022-12-17 00:32:07.7164|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/Discount/swagger/v1/swagger.json 2022-12-17 00:32:07.7269|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/Discount/swagger/favicon-32x32.png 2022-12-17 00:32:07.7269|2|INFO|Microsoft.AspNetCore.StaticFiles.StaticFileMiddleware|Sending file. Request path: '/favicon-32x32.png'. Physical path: 'N/A' 2022-12-17 00:32:07.7269|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 0.83ms 200 image/png 2022-12-17 00:32:07.7958|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 79.3703ms 200 application/json;charset=utf-8 2022-12-17 00:52:19.6627|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 POST http://127.0.0.1:36224/DISCOUNT/iisintegration 0 2022-12-17 00:52:19.6627|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 1.1146ms 202 2022-12-17 07:45:43.6190||DEBUG|DiscountService.Program|init main function 2022-12-17 07:45:44.3071|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-17 07:45:44.4686|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (12ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2022-12-17 07:45:44.4863|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (11ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2022-12-17 07:45:44.4863|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2022-12-17 07:45:44.4863|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2022-12-17 07:45:44.5026|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT [MigrationId], [ProductVersion] FROM [__EFMigrationsHistory] ORDER BY [MigrationId]; 2022-12-17 07:45:44.5139|20405|INFO|Microsoft.EntityFrameworkCore.Migrations|No migrations were applied. The database is already up to date. 2022-12-17 07:45:44.5854|50|WARN|Microsoft.AspNetCore.DataProtection.Repositories.EphemeralXmlRepository|Using an in-memory repository. Keys will not be persisted to storage. 2022-12-17 07:45:44.5854|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-17 07:45:44.5854|58|INFO|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|Creating key {929cda75-036f-48c2-9e57-a917efc79962} with creation date 2022-12-17 06:45:44Z, activation date 2022-12-17 06:45:44Z, and expiration date 2023-03-17 06:45:44Z. 2022-12-17 07:45:44.5961|35|WARN|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|No XML encryptor configured. Key {929cda75-036f-48c2-9e57-a917efc79962} may be persisted to storage in unencrypted form. 2022-12-17 07:45:44.6864|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 OPTIONS http://api.skilldorm.com/Discount/api/Discount/GetDiscountCode?code=IC-SKD50&courseId=257 2022-12-17 07:45:44.7204|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 07:45:44.7204|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 37.7497ms 204 2022-12-17 07:45:45.6403|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-17 07:45:45.8036|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 07:45:45.8036|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 07:45:45.8036|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 07:45:45.8114|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 07:45:45.8357|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-17 07:45:45.8357|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-17 07:45:45.8723|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-17 07:45:46.0302|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (27ms) [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-17 07:45:46.0454|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 07:45:46.0728|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 234.6877ms 2022-12-17 07:45:46.0728|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 07:45:46.0728|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 434.9214ms 200 application/json; charset=utf-8 2022-12-17 08:06:43.3173|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 POST http://127.0.0.1:22308/DISCOUNT/iisintegration 0 2022-12-17 08:06:43.3173|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 1.1021ms 202 2022-12-17 09:10:41.1901||DEBUG|DiscountService.Program|init main function 2022-12-17 09:10:41.8814|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-17 09:10:42.0491|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (13ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2022-12-17 09:10:42.0672|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (12ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2022-12-17 09:10:42.0672|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2022-12-17 09:10:42.0672|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2022-12-17 09:10:42.0837|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT [MigrationId], [ProductVersion] FROM [__EFMigrationsHistory] ORDER BY [MigrationId]; 2022-12-17 09:10:42.0952|20405|INFO|Microsoft.EntityFrameworkCore.Migrations|No migrations were applied. The database is already up to date. 2022-12-17 09:10:42.1663|50|WARN|Microsoft.AspNetCore.DataProtection.Repositories.EphemeralXmlRepository|Using an in-memory repository. Keys will not be persisted to storage. 2022-12-17 09:10:42.1663|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-17 09:10:42.1724|58|INFO|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|Creating key {6b668a18-8f3f-495d-8085-eb2b5c97562a} with creation date 2022-12-17 08:10:42Z, activation date 2022-12-17 08:10:42Z, and expiration date 2023-03-17 08:10:42Z. 2022-12-17 09:10:42.1724|35|WARN|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|No XML encryptor configured. Key {6b668a18-8f3f-495d-8085-eb2b5c97562a} may be persisted to storage in unencrypted form. 2022-12-17 09:10:42.2589|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/Discount/api/Discount/GetDiscountCode?code=IC-SKD50&courseId=0 2022-12-17 09:10:42.2935|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 09:10:42.2969|2|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization failed. 2022-12-17 09:10:42.2969|12|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|AuthenticationScheme: Bearer was challenged. 2022-12-17 09:10:42.2969|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 45.75ms 401 2022-12-17 09:11:18.1365|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 OPTIONS http://api.skilldorm.com/Discount/api/Discount/GetDiscountCode?code=IC-SKD50&courseId=257 2022-12-17 09:11:18.1405|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 09:11:18.1405|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 4.7418ms 204 2022-12-17 09:11:18.4234|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-17 09:11:18.5120|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 09:11:18.5120|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 09:11:18.5120|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 09:11:18.5120|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 09:11:18.5392|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-17 09:11:18.5392|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-17 09:11:18.5767|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-17 09:11:18.7405|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-17 09:11:18.7560|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 09:11:18.7835|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 241.815ms 2022-12-17 09:11:18.7835|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 09:11:18.7835|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 362.427ms 200 application/json; charset=utf-8 2022-12-17 09:31:55.7158|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 OPTIONS http://api.skilldorm.com/Discount/api/Discount/GetDiscountCode?code=continua&courseId=257 2022-12-17 09:31:55.7158|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 09:31:55.7182|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 2.3701ms 204 2022-12-17 09:31:55.9969|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/Discount/api/Discount/GetDiscountCode?code=continua&courseId=257 2022-12-17 09:31:55.9969|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 09:31:55.9969|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 09:31:55.9969|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 09:31:55.9969|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 09:31:56.0011|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-17 09:31:56.0011|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-17 09:31:56.0011|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-17 09:31:56.0011|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [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-17 09:31:56.0011|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 09:31:56.0011|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 14.4892ms 2022-12-17 09:31:56.0160|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 09:31:56.0160|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 19.5452ms 200 application/json; charset=utf-8 2022-12-17 09:39:52.6014|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 OPTIONS http://api.skilldorm.com/Discount/api/Discount/GetDiscountCode?code=IC-skd50&courseId=257 2022-12-17 09:39:52.6014|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 09:39:52.6014|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 2.0603ms 204 2022-12-17 09:39:52.8604|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-17 09:39:52.8604|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 09:39:52.8604|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 09:39:52.8604|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 09:39:52.8604|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 09:39:52.8604|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-17 09:39:52.8667|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-17 09:39:52.8667|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-17 09:39:52.8667|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [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-17 09:39:52.8667|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 09:39:52.8667|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 13.0289ms 2022-12-17 09:39:52.8667|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 09:39:52.8667|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 17.1632ms 200 application/json; charset=utf-8 2022-12-17 10:37:53.0584|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 POST http://127.0.0.1:44986/DISCOUNT/iisintegration 0 2022-12-17 10:37:53.0584|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 0.9284ms 202 2022-12-17 10:47:26.7182||DEBUG|DiscountService.Program|init main function 2022-12-17 10:47:29.6980|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-17 10:47:30.0393|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (12ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2022-12-17 10:47:30.0570|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (11ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2022-12-17 10:47:30.0570|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2022-12-17 10:47:30.0570|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2022-12-17 10:47:30.0738|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT [MigrationId], [ProductVersion] FROM [__EFMigrationsHistory] ORDER BY [MigrationId]; 2022-12-17 10:47:30.0855|20405|INFO|Microsoft.EntityFrameworkCore.Migrations|No migrations were applied. The database is already up to date. 2022-12-17 10:47:30.2848|50|WARN|Microsoft.AspNetCore.DataProtection.Repositories.EphemeralXmlRepository|Using an in-memory repository. Keys will not be persisted to storage. 2022-12-17 10:47:30.2848|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-17 10:47:30.2907|58|INFO|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|Creating key {f4b9aec4-0792-4a55-8ccb-71affaa14513} with creation date 2022-12-17 09:47:30Z, activation date 2022-12-17 09:47:30Z, and expiration date 2023-03-17 09:47:30Z. 2022-12-17 10:47:30.2907|35|WARN|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|No XML encryptor configured. Key {f4b9aec4-0792-4a55-8ccb-71affaa14513} may be persisted to storage in unencrypted form. 2022-12-17 10:47:30.5154|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 OPTIONS http://api.skilldorm.com/Discount/api/Discount/GetDiscountCode?code=IC-SKD50&courseId=257 2022-12-17 10:47:30.8507|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 10:47:30.8507|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 339.7657ms 204 2022-12-17 10:47:31.1542|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-17 10:47:31.3159|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 10:47:31.3185|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 10:47:31.3185|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 10:47:31.3185|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 10:47:31.3481|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-17 10:47:31.3509|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-17 10:47:31.3853|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-17 10:47:31.5450|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-17 10:47:31.5603|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 10:47:31.5873|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 236.8538ms 2022-12-17 10:47:31.5873|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 10:47:31.5873|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 435.5339ms 200 application/json; charset=utf-8 2022-12-17 11:13:41.3670|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-17 11:13:41.3670|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 11:13:41.3670|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 11:13:41.3670|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 11:13:41.3670|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-17 11:13:41.3670|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-17 11:13:41.3670|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-17 11:13:41.3841|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [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-17 11:13:41.3841|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 11:13:41.3841|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 15.2494ms 2022-12-17 11:13:41.3841|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 11:13:41.3841|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 20.489ms 200 application/json; charset=utf-8 2022-12-17 11:15:05.2774|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-17 11:15:05.2774|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 11:15:05.2774|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 11:15:05.2774|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 11:15:05.2774|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-17 11:15:05.2852|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-17 11:15:05.2852|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-17 11:15:05.2852|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [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-17 11:15:05.2852|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 11:15:05.2852|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 9.6818ms 2022-12-17 11:15:05.2852|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 11:15:05.2852|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 15.4366ms 200 application/json; charset=utf-8 2022-12-17 11:16:40.2874|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 OPTIONS http://api.skilldorm.com/Discount/api/Discount/Search?institutionId=57 0 2022-12-17 11:16:40.2874|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 OPTIONS http://api.skilldorm.com/Discount/api/Discount/GetDiscountById?DiscountId=0 0 2022-12-17 11:16:40.2874|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 11:16:40.2874|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 11:16:40.2874|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 1.8377ms 204 2022-12-17 11:16:40.2874|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 1.7826ms 204 2022-12-17 11:16:40.9385|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/Discount/api/Discount/Search?institutionId=57 2022-12-17 11:16:40.9385|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/Discount/api/Discount/GetDiscountById?DiscountId=0 2022-12-17 11:16:40.9385|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 11:16:40.9385|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 11:16:40.9385|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 11:16:40.9385|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 11:16:40.9385|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 11:16:40.9385|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 11:16:40.9385|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.SearchDiscount (DiscountService)' 2022-12-17 11:16:40.9385|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountById (DiscountService)' 2022-12-17 11:16:40.9385|3|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Route matched with {action = "GetDiscountById", controller = "Discount"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetDiscountById(Int64) on controller DiscountService.Controllers.DiscountController (DiscountService). 2022-12-17 11:16:40.9385|3|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Route matched with {action = "SearchDiscount", controller = "Discount"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] SearchDiscount(System.String, System.Nullable`1[System.Int64], System.Nullable`1[System.DateTime], System.Nullable`1[System.DateTime], System.Nullable`1[System.Int32], System.Nullable`1[System.Int32]) on controller DiscountService.Controllers.DiscountController (DiscountService). 2022-12-17 11:16:40.9385|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-17 11:16:40.9385|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-17 11:16:40.9541|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 11:16:40.9541|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountById (DiscountService) in 3.2172ms 2022-12-17 11:16:40.9541|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountById (DiscountService)' 2022-12-17 11:16:40.9541|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 17.2193ms 200 application/json; charset=utf-8 2022-12-17 11:16:41.0111||INFO|DiscountService.Core.DiscountServices|about to call SP_GetDiscountDetails 2022-12-17 11:16:41.1551||INFO|DiscountService.Core.DiscountServices|got details from SP_GetDiscountDetails 2022-12-17 11:16:41.1551|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 11:16:41.1664|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.SearchDiscount (DiscountService) in 214.3982ms 2022-12-17 11:16:41.1664|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.SearchDiscount (DiscountService)' 2022-12-17 11:16:41.1664|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 228.5833ms 200 application/json; charset=utf-8 2022-12-17 11:17:36.1336|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 OPTIONS http://api.skilldorm.com/Discount/api/Discount/Search?institutionId=57 0 2022-12-17 11:17:36.1336|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 OPTIONS http://api.skilldorm.com/Discount/api/Discount/GetDiscountById?DiscountId=0 0 2022-12-17 11:17:36.1336|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 11:17:36.1336|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 11:17:36.1336|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 1.7279ms 204 2022-12-17 11:17:36.1336|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 1.8056ms 204 2022-12-17 11:17:36.4169|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/Discount/api/Discount/Search?institutionId=57 2022-12-17 11:17:36.4169|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 11:17:36.4169|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 11:17:36.4169|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 11:17:36.4169|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.SearchDiscount (DiscountService)' 2022-12-17 11:17:36.4207|3|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Route matched with {action = "SearchDiscount", controller = "Discount"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] SearchDiscount(System.String, System.Nullable`1[System.Int64], System.Nullable`1[System.DateTime], System.Nullable`1[System.DateTime], System.Nullable`1[System.Int32], System.Nullable`1[System.Int32]) on controller DiscountService.Controllers.DiscountController (DiscountService). 2022-12-17 11:17:36.4207|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-17 11:17:36.4207||INFO|DiscountService.Core.DiscountServices|about to call SP_GetDiscountDetails 2022-12-17 11:17:36.4207||INFO|DiscountService.Core.DiscountServices|got details from SP_GetDiscountDetails 2022-12-17 11:17:36.4207|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 11:17:36.4207|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.SearchDiscount (DiscountService) in 7.5577ms 2022-12-17 11:17:36.4207|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.SearchDiscount (DiscountService)' 2022-12-17 11:17:36.4207|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 12.2753ms 200 application/json; charset=utf-8 2022-12-17 11:17:36.6923|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/Discount/api/Discount/GetDiscountById?DiscountId=0 2022-12-17 11:17:36.6923|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 11:17:36.6923|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 11:17:36.6923|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 11:17:36.6923|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountById (DiscountService)' 2022-12-17 11:17:36.6923|3|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Route matched with {action = "GetDiscountById", controller = "Discount"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetDiscountById(Int64) on controller DiscountService.Controllers.DiscountController (DiscountService). 2022-12-17 11:17:36.6923|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-17 11:17:36.6923|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 11:17:36.6923|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountById (DiscountService) in 2.0462ms 2022-12-17 11:17:36.6923|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountById (DiscountService)' 2022-12-17 11:17:36.6923|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 5.7877ms 200 application/json; charset=utf-8 2022-12-17 11:32:00.6194|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 OPTIONS http://api.skilldorm.com/Discount/api/Discount/GetDiscountCode?code=IC-SKD50&courseId=255 2022-12-17 11:32:00.6194|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 11:32:00.6194|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 1.4038ms 204 2022-12-17 11:32:01.4239|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/Discount/api/Discount/GetDiscountCode?code=IC-SKD50&courseId=255 2022-12-17 11:32:01.4239|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 11:32:01.4239|4|INFO|Microsoft.AspNetCore.Cors.Infrastructure.CorsService|CORS policy execution successful. 2022-12-17 11:32:01.4239|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 11:32:01.4239|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 11:32:01.4239|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-17 11:32:01.4278|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-17 11:32:01.4278|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-17 11:32:01.4278|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [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-17 11:32:01.4278|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 11:32:01.4278|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 11.9812ms 2022-12-17 11:32:01.4278|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 11:32:01.4278|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 15.7295ms 200 application/json; charset=utf-8 2022-12-17 11:36:40.4593|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-17 11:36:40.4593|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 11:36:40.4593|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 11:36:40.4593|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 11:36:40.4593|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-17 11:36:40.4593|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-17 11:36:40.4593|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-17 11:36:40.4593|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [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-17 11:36:40.4593|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 11:36:40.4593|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 5.7085ms 2022-12-17 11:36:40.4593|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 11:36:40.4593|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 8.6717ms 200 application/json; charset=utf-8 2022-12-17 11:46:32.3493|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-17 11:46:32.3493|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 11:46:32.3493|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 11:46:32.3493|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 11:46:32.3493|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-17 11:46:32.3493|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-17 11:46:32.3493|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-17 11:46:32.3595|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [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-17 11:46:32.3595|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 11:46:32.3595|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 9.1751ms 2022-12-17 11:46:32.3595|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 11:46:32.3595|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 12.1011ms 200 application/json; charset=utf-8 2022-12-17 11:46:45.5304|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-17 11:46:45.5304|2|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization failed. 2022-12-17 11:46:45.5304|12|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|AuthenticationScheme: Bearer was challenged. 2022-12-17 11:46:45.5304|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 3.4858ms 401 2022-12-17 12:49:33.6612|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 POST http://127.0.0.1:18837/DISCOUNT/iisintegration 0 2022-12-17 12:49:33.6612|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 0.6084ms 202 2022-12-17 12:54:47.3156||DEBUG|DiscountService.Program|init main function 2022-12-17 12:54:49.5345|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-17 12:54:49.8779|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (12ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2022-12-17 12:54:49.8957|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (11ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2022-12-17 12:54:49.8957|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2022-12-17 12:54:49.8957|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2022-12-17 12:54:49.9120|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT [MigrationId], [ProductVersion] FROM [__EFMigrationsHistory] ORDER BY [MigrationId]; 2022-12-17 12:54:49.9234|20405|INFO|Microsoft.EntityFrameworkCore.Migrations|No migrations were applied. The database is already up to date. 2022-12-17 12:54:50.1228|50|WARN|Microsoft.AspNetCore.DataProtection.Repositories.EphemeralXmlRepository|Using an in-memory repository. Keys will not be persisted to storage. 2022-12-17 12:54:50.1228|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-17 12:54:50.1228|58|INFO|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|Creating key {e3cd59cd-f0be-490a-8e49-fd3030596ace} with creation date 2022-12-17 11:54:50Z, activation date 2022-12-17 11:54:50Z, and expiration date 2023-03-17 11:54:50Z. 2022-12-17 12:54:50.1342|35|WARN|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|No XML encryptor configured. Key {e3cd59cd-f0be-490a-8e49-fd3030596ace} may be persisted to storage in unencrypted form. 2022-12-17 12:54:50.3787|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-17 12:54:50.8505|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 12:54:50.8691|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 12:54:50.8691|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 12:54:50.8954|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-17 12:54:50.8954|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-17 12:54:50.9329|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-17 12:54:51.0908|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-17 12:54:51.1068|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 12:54:51.1360|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 238.1304ms 2022-12-17 12:54:51.1360|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 12:54:51.1360|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 761.1884ms 200 application/json; charset=utf-8 2022-12-17 12:55:22.4127|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-17 12:55:22.4127|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 12:55:22.4169|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 12:55:22.4169|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 12:55:22.4169|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-17 12:55:22.4169|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-17 12:55:22.4169|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-17 12:55:22.4169|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [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-17 12:55:22.4169|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 12:55:22.4169|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 8.5354ms 2022-12-17 12:55:22.4169|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 12:55:22.4169|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 14.157ms 200 application/json; charset=utf-8 2022-12-17 13:38:07.3028|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 POST http://127.0.0.1:13246/DISCOUNT/iisintegration 0 2022-12-17 13:38:07.3028|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 1.1011ms 202 2022-12-17 14:23:29.4804||DEBUG|DiscountService.Program|init main function 2022-12-17 14:23:30.1590|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-17 14:23:30.3236|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (13ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2022-12-17 14:23:30.3419|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (12ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2022-12-17 14:23:30.3419|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT 1 2022-12-17 14:23:30.3419|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT OBJECT_ID(N'[__EFMigrationsHistory]'); 2022-12-17 14:23:30.3585|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30'] SELECT [MigrationId], [ProductVersion] FROM [__EFMigrationsHistory] ORDER BY [MigrationId]; 2022-12-17 14:23:30.3585|20405|INFO|Microsoft.EntityFrameworkCore.Migrations|No migrations were applied. The database is already up to date. 2022-12-17 14:23:30.4433|50|WARN|Microsoft.AspNetCore.DataProtection.Repositories.EphemeralXmlRepository|Using an in-memory repository. Keys will not be persisted to storage. 2022-12-17 14:23:30.4433|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-17 14:23:30.4494|58|INFO|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|Creating key {e4296ae1-b450-4ad8-9bbb-497c1187e20e} with creation date 2022-12-17 13:23:30Z, activation date 2022-12-17 13:23:30Z, and expiration date 2023-03-17 13:23:30Z. 2022-12-17 14:23:30.4494|35|WARN|Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager|No XML encryptor configured. Key {e4296ae1-b450-4ad8-9bbb-497c1187e20e} may be persisted to storage in unencrypted form. 2022-12-17 14:23:30.5560|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 GET http://api.skilldorm.com/discount/api/Discount/GetDiscountCode?code=If-skd50&courseId=257 2022-12-17 14:23:30.6600|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 14:23:30.6778|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 14:23:30.6778|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 14:23:30.7042|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-17 14:23:30.7042|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-17 14:23:30.7416|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-17 14:23:30.9005|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-17 14:23:30.9128|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 14:23:30.9369|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 230.1899ms 2022-12-17 14:23:30.9369|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 14:23:30.9369|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 384.8462ms 200 application/json; charset=utf-8 2022-12-17 14:23:45.9737|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-17 14:23:45.9737|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 14:23:45.9737|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 14:23:45.9737|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 14:23:45.9785|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-17 14:23:45.9785|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-17 14:23:45.9785|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-17 14:23:45.9785|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [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-17 14:23:45.9785|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 14:23:45.9975|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 18.7947ms 2022-12-17 14:23:45.9975|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 14:23:45.9975|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 24.4839ms 200 application/json; charset=utf-8 2022-12-17 14:23:47.4354|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-17 14:23:47.4354|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 14:23:47.4354|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 14:23:47.4354|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 14:23:47.4354|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-17 14:23:47.4354|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-17 14:23:47.4354|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-17 14:23:47.4490|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [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-17 14:23:47.4490|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 14:23:47.4490|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 9.3035ms 2022-12-17 14:23:47.4490|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 14:23:47.4490|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 15.8288ms 200 application/json; charset=utf-8 2022-12-17 14:24:02.3596|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-17 14:24:02.3596|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 14:24:02.3596|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 14:24:02.3596|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 14:24:02.3596|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-17 14:24:02.3596|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-17 14:24:02.3596|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-17 14:24:02.3596|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [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-17 14:24:02.3596|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 14:24:02.3596|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 5.8758ms 2022-12-17 14:24:02.3596|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 14:24:02.3596|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 10.1075ms 200 application/json; charset=utf-8 2022-12-17 14:34:07.5700|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-17 14:34:07.5700|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 14:34:07.5700|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 14:34:07.5700|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 14:34:07.5700|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-17 14:34:07.5700|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-17 14:34:07.5700|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-17 14:34:07.5846|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [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-17 14:34:07.5846|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 14:34:07.5846|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 12.4024ms 2022-12-17 14:34:07.5846|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 14:34:07.5846|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 16.8065ms 200 application/json; charset=utf-8 2022-12-17 14:37:16.9825|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-17 14:37:16.9841|2|INFO|Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerHandler|Successfully validated the token. 2022-12-17 14:37:16.9841|1|INFO|Microsoft.AspNetCore.Authorization.DefaultAuthorizationService|Authorization was successful. 2022-12-17 14:37:16.9841|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 14:37:16.9841|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-17 14:37:16.9841|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-17 14:37:16.9841|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-17 14:37:16.9841|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (1ms) [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-17 14:37:16.9841|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 14:37:16.9841|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService) in 5.9623ms 2022-12-17 14:37:16.9841|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.GetDiscountCode (DiscountService)' 2022-12-17 14:37:16.9841|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 9.5565ms 200 application/json; charset=utf-8 2022-12-17 14:37:17.9082|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 PUT http://api.skilldorm.com/discount/api/Discount/UpdateDiscountCodeUsage?count=1&discountCode=Ic-skd50 0 2022-12-17 14:37:17.9082|0|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executing endpoint 'DiscountService.Controllers.DiscountController.UpdateDiscountCodeUsage (DiscountService)' 2022-12-17 14:37:17.9082|3|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Route matched with {action = "UpdateDiscountCodeUsage", controller = "Discount"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] UpdateDiscountCodeUsage(Int32, System.String) on controller DiscountService.Controllers.DiscountController (DiscountService). 2022-12-17 14:37:17.9082|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-17 14:37:17.9365|20101|INFO|Microsoft.EntityFrameworkCore.Database.Command|Executed DbCommand (3ms) [Parameters=[@__Trim_0='?' (Size = 4000)], CommandType='Text', CommandTimeout='30'] SELECT TOP(1) [d0].[Id], [d0].[AllCoursesDiscount], [d0].[Amount], [d0].[CreatedBy], [d0].[DateCreated], [d0].[DateModified], [d0].[Description], [d0].[DiscountChargeType], [d0].[EndDate], [d0].[InstitutionId], [d0].[IsActive], [d0].[IsDeleted], [d0].[ModifiedBy], [d0].[Name], [d0].[SetUsageLimit], [d0].[StartDate], [d0].[UsageCount], [d0].[UsageLimit] FROM [DiscountCodes] AS [d] INNER JOIN [Discounts] AS [d0] ON [d].[DiscountId] = [d0].[Id] WHERE [d].[Code] = @__Trim_0 2022-12-17 14:37:17.9768||ERROR|DiscountService.Controllers.DiscountController|Object reference not set to an instance of an object. 2022-12-17 14:37:17.9768|1|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ObjectResultExecutor|Executing ObjectResult, writing value of type 'CommonBase.Model.SaveResponse'. 2022-12-17 14:37:17.9768|2|INFO|Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker|Executed action DiscountService.Controllers.DiscountController.UpdateDiscountCodeUsage (DiscountService) in 65.6681ms 2022-12-17 14:37:17.9768|1|INFO|Microsoft.AspNetCore.Routing.EndpointMiddleware|Executed endpoint 'DiscountService.Controllers.DiscountController.UpdateDiscountCodeUsage (DiscountService)' 2022-12-17 14:37:17.9768|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 71.6179ms 200 application/json; charset=utf-8 2022-12-17 15:00:54.0441|1|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request starting HTTP/1.1 POST http://127.0.0.1:46628/DISCOUNT/iisintegration 0 2022-12-17 15:00:54.0441|2|INFO|Microsoft.AspNetCore.Hosting.Diagnostics|Request finished in 0.9361ms 202