Преглед на файлове

Refactor code and swtch to mediator everywhere in code

feature/refactor_code_and_switch_to_mediator
Dzenis Hadzifejzovic преди 3 години
родител
ревизия
49b84b03b0
променени са 80 файла, в които са добавени 544 реда и са изтрити 11325 реда
  1. 6
    5
      Backend/Diligent.WebAPI.Business/Diligent.WebAPI.Business.csproj
  2. 2
    2
      Backend/Diligent.WebAPI.Business/Interfaces/IAuthenticationService.cs
  3. 1
    1
      Backend/Diligent.WebAPI.Business/Interfaces/ICustomerService.cs
  4. 2
    1
      Backend/Diligent.WebAPI.Business/Services/AuthenticationService.cs
  5. 2
    1
      Backend/Diligent.WebAPI.Business/Services/CustomerService.cs
  6. 0
    28
      Backend/Diligent.WebAPI.Business/Services/InsuranceCompanyService.cs
  7. 0
    28
      Backend/Diligent.WebAPI.Business/Services/InsurancePolicyService.cs
  8. 0
    29
      Backend/Diligent.WebAPI.Business/Services/InsurerService.cs
  9. 29
    1
      Backend/Diligent.WebAPI.Business/Services/RoomService.cs
  10. 0
    14
      Backend/Diligent.WebAPI.Data/Entities/InsuranceCompanyMongo.cs
  11. 0
    11
      Backend/Diligent.WebAPI.Data/Entities/InsurancePolicyMongo.cs
  12. 0
    22
      Backend/Diligent.WebAPI.Data/Entities/InsurerMongo.cs
  13. 0
    9
      Backend/Diligent.WebAPI.Data/Extensions/ServiceCollection.cs
  14. 0
    9
      Backend/Diligent.WebAPI.Data/Extensions/ServiceScope.cs
  15. 36
    0
      Backend/Diligent.WebAPI.Host/Controllers/AuthenticationController.cs
  16. 0
    68
      Backend/Diligent.WebAPI.Host/Controllers/ChatController.cs
  17. 0
    90
      Backend/Diligent.WebAPI.Host/Controllers/CustomerController.cs
  18. 0
    86
      Backend/Diligent.WebAPI.Host/Controllers/InsuranceCompanyController.cs
  19. 0
    120
      Backend/Diligent.WebAPI.Host/Controllers/InsurancePolicyController.cs
  20. 0
    104
      Backend/Diligent.WebAPI.Host/Controllers/InsurerController.cs
  21. 0
    21
      Backend/Diligent.WebAPI.Host/Controllers/MessageController.cs
  22. 8
    33
      Backend/Diligent.WebAPI.Host/Controllers/RequestController.cs
  23. 40
    0
      Backend/Diligent.WebAPI.Host/Controllers/RoomController.cs
  24. 0
    14
      Backend/Diligent.WebAPI.Host/DTOs/InsuranceCompanyMongo/InsuranceCompanyCreateDTO.cs
  25. 0
    18
      Backend/Diligent.WebAPI.Host/DTOs/InsuranceCompanyMongo/InsuranceCompanyReadDTO.cs
  26. 0
    21
      Backend/Diligent.WebAPI.Host/DTOs/InsurancePolicyMongo/InsurancePolicyReturnDTO.cs
  27. 0
    12
      Backend/Diligent.WebAPI.Host/DTOs/InsurancePolicyMongo/InsurancePolicySaveDTO.cs
  28. 0
    23
      Backend/Diligent.WebAPI.Host/DTOs/InsurerMongo/InsurerReturnDTO.cs
  29. 0
    18
      Backend/Diligent.WebAPI.Host/DTOs/InsurerMongo/InsurerSaveDTO.cs
  30. 0
    4
      Backend/Diligent.WebAPI.Host/Extensions/WebApp.cs
  31. 2
    13
      Backend/Diligent.WebAPI.Host/Extensions/WebAppBuilder.cs
  32. 0
    7
      Backend/Diligent.WebAPI.Host/Hubs/Attachment.cs
  33. 1
    2
      Backend/Diligent.WebAPI.Host/Hubs/ChatHub.cs
  34. 0
    1
      Backend/Diligent.WebAPI.Host/Hubs/ChatMessage.cs
  35. 0
    92
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220622.log
  36. 0
    1933
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220623.log
  37. 0
    542
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220624.log
  38. 0
    782
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220627.log
  39. 0
    1001
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220628.log
  40. 0
    1
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220629.log
  41. 0
    1
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220630.log
  42. 0
    563
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220701.log
  43. 0
    1395
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220704.log
  44. 0
    1618
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220705.log
  45. 0
    2476
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220706.log
  46. 0
    26
      Backend/Diligent.WebAPI.Host/Mapper/CompanyMappingProfile.cs
  47. 0
    26
      Backend/Diligent.WebAPI.Host/Mapper/InsurerMappingProfile.cs
  48. 0
    18
      Backend/Diligent.WebAPI.Host/Mapper/PolicyMappingProfiles.cs
  49. 13
    0
      Backend/Diligent.WebAPI.Host/Mediator/Authentication/Commands/AddRoleCommand.cs
  50. 14
    0
      Backend/Diligent.WebAPI.Host/Mediator/Authentication/Commands/RegisterUserCommand.cs
  51. 24
    0
      Backend/Diligent.WebAPI.Host/Mediator/Authentication/Handlers/AddRoleHandler.cs
  52. 39
    0
      Backend/Diligent.WebAPI.Host/Mediator/Authentication/Handlers/LoginUserHandler.cs
  53. 45
    0
      Backend/Diligent.WebAPI.Host/Mediator/Authentication/Handlers/RegisterUserHandler.cs
  54. 14
    0
      Backend/Diligent.WebAPI.Host/Mediator/Authentication/Queries/LoginUserQuery.cs
  55. 1
    1
      Backend/Diligent.WebAPI.Host/Mediator/Notifications/Handlers/AddNotificationHandler.cs
  56. 1
    1
      Backend/Diligent.WebAPI.Host/Mediator/Notifications/Handlers/DeleteNotificationHandler.cs
  57. 1
    1
      Backend/Diligent.WebAPI.Host/Mediator/Notifications/Handlers/GetNotificationsHandler.cs
  58. 14
    0
      Backend/Diligent.WebAPI.Host/Mediator/Request/Commands/CreateRequestCommand.cs
  59. 32
    0
      Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/CreateRequestHandler.cs
  60. 18
    0
      Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/GetAllRequestHandler.cs
  61. 33
    0
      Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/GetRequestHandler.cs
  62. 8
    0
      Backend/Diligent.WebAPI.Host/Mediator/Request/Queries/GetAllRequestsQuery.cs
  63. 13
    0
      Backend/Diligent.WebAPI.Host/Mediator/Request/Queries/GetRequestQuery.cs
  64. 14
    0
      Backend/Diligent.WebAPI.Host/Mediator/Rooms/Commands/CreateRoomCommand.cs
  65. 1
    1
      Backend/Diligent.WebAPI.Host/Mediator/Rooms/Commands/RemoveUserFromGroupCommand.cs
  66. 27
    0
      Backend/Diligent.WebAPI.Host/Mediator/Rooms/Handlers/CreateRoomHandler.cs
  67. 27
    0
      Backend/Diligent.WebAPI.Host/Mediator/Rooms/Handlers/GetAllRoomsWithFilteredMessagesHandler.cs
  68. 20
    0
      Backend/Diligent.WebAPI.Host/Mediator/Rooms/Handlers/GetRoomsWhichSupportCreatedHandler.cs
  69. 1
    1
      Backend/Diligent.WebAPI.Host/Mediator/Rooms/Handlers/RemoveUserFromGroupHandler.cs
  70. 14
    0
      Backend/Diligent.WebAPI.Host/Mediator/Rooms/Queries/GetAllRoomsWithFilteredMessagesQuery.cs
  71. 14
    0
      Backend/Diligent.WebAPI.Host/Mediator/Rooms/Queries/GetRoomsWhichSupportCreatedQuery.cs
  72. 1
    2
      Backend/Diligent.WebAPI.Host/Usings.cs
  73. 1
    1
      Frontend/src/components/ChatWindow.js
  74. 2
    2
      Frontend/src/components/LogInForm.js
  75. 2
    2
      Frontend/src/components/RegisterForm.js
  76. 1
    1
      Frontend/src/index.css
  77. 13
    0
      Frontend/src/services/authenticationService.js
  78. 3
    3
      Frontend/src/services/roomService.js
  79. 0
    15
      Frontend/src/services/userService.js
  80. 4
    4
      Frontend/src/store/chat-slice.js

+ 6
- 5
Backend/Diligent.WebAPI.Business/Diligent.WebAPI.Business.csproj Целия файл

@@ -6,6 +6,12 @@
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<Compile Remove="DTOs\**" />
<EmbeddedResource Remove="DTOs\**" />
<None Remove="DTOs\**" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="AutoMapper" Version="11.0.1" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="11.0.0" />
@@ -16,9 +22,4 @@
<ProjectReference Include="..\Diligent.WebAPI.Data\Diligent.WebAPI.Data.csproj" />
</ItemGroup>

<ItemGroup>
<Folder Include="DTOs\" />
<Folder Include="Interfaces\" />
</ItemGroup>

</Project>

Backend/Diligent.WebAPI.Business/Services/IAuthenticationService.cs → Backend/Diligent.WebAPI.Business/Interfaces/IAuthenticationService.cs Целия файл

@@ -5,11 +5,11 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Diligent.WebAPI.Business.Services
namespace Diligent.WebAPI.Business.Interfaces
{
public interface IAuthenticationService
{
Task<bool> ValidateCustomer(string usernmae,string password);
Task<bool> ValidateCustomer(string usernmae, string password);
Task<string> GenerateToken();
}
}

Backend/Diligent.WebAPI.Business/Services/ICustomerService.cs → Backend/Diligent.WebAPI.Business/Interfaces/ICustomerService.cs Целия файл

@@ -5,7 +5,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Diligent.WebAPI.Business.Services
namespace Diligent.WebAPI.Business.Interfaces
{
public interface ICustomerService
{

+ 2
- 1
Backend/Diligent.WebAPI.Business/Services/AuthenticationService.cs Целия файл

@@ -1,4 +1,5 @@
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Business.Interfaces;
using Diligent.WebAPI.Data.Entities;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Configuration;
using Microsoft.IdentityModel.Tokens;

+ 2
- 1
Backend/Diligent.WebAPI.Business/Services/CustomerService.cs Целия файл

@@ -1,4 +1,5 @@
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Business.Interfaces;
using Diligent.WebAPI.Data.Entities;
using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;

+ 0
- 28
Backend/Diligent.WebAPI.Business/Services/InsuranceCompanyService.cs Целия файл

@@ -1,28 +0,0 @@
using Diligent.WebAPI.Data;
using Diligent.WebAPI.Data.Entities;
using Microsoft.Extensions.Options;
using MongoDB.Driver;

namespace Diligent.WebAPI.Business.MongoServices
{
public class InsuranceCompanyService : BaseMongo<InsuranceCompanyMongo>
{
public InsuranceCompanyService(IOptions<WebApiDatabaseSettings> webApiDatabaseSettings) :
base(webApiDatabaseSettings, "InsuranceCompanies")
{ }
public async Task UpdateInsuranceCompany(string id, InsuranceCompanyMongo updateCompany) =>
await _mongoCollection.ReplaceOneAsync(x => x.Id == id, updateCompany);

public async Task<List<InsuranceCompanyMongo>> GetAllAsync() =>
await _mongoCollection.Find(_ => true).ToListAsync();

public async Task<InsuranceCompanyMongo> GetByIdAsync(string id) =>
await _mongoCollection.Find(x => x.Id == id).FirstOrDefaultAsync();

public async Task CreateInsuranceCompany(InsuranceCompanyMongo insuranceCompany) =>
await _mongoCollection.InsertOneAsync(insuranceCompany);

public async Task DeleteInsuranceCompany(string id) =>
await _mongoCollection.DeleteOneAsync(x => x.Id == id);
}
}

+ 0
- 28
Backend/Diligent.WebAPI.Business/Services/InsurancePolicyService.cs Целия файл

@@ -1,28 +0,0 @@
using Diligent.WebAPI.Data;
using Diligent.WebAPI.Data.Entities;
using Microsoft.Extensions.Options;
using MongoDB.Driver;

namespace Diligent.WebAPI.Business.MongoServices
{
public class InsurancePolicyService : BaseMongo<InsurancePolicyMongo>
{
public InsurancePolicyService(IOptions<WebApiDatabaseSettings> webApiDatabaseSettings) :
base(webApiDatabaseSettings, "InsurancePolicies")
{ }
public async Task UpdateInsurancePolicy(string id, InsurancePolicyMongo updatePolicy) =>
await _mongoCollection.ReplaceOneAsync(x => x.Id == id, updatePolicy);

public async Task<List<InsurancePolicyMongo>> GetAllAsync() =>
await _mongoCollection.Find(_ => true).ToListAsync();

public async Task<InsurancePolicyMongo> GetByIdAsync(string id) =>
await _mongoCollection.Find(x => x.Id == id).FirstOrDefaultAsync();

public async Task CreateInsurancePolicy(InsurancePolicyMongo insurancePolicy) =>
await _mongoCollection.InsertOneAsync(insurancePolicy);

public async Task DeleteInsurancePolicy(string id) =>
await _mongoCollection.DeleteOneAsync(x => x.Id == id);
}
}

+ 0
- 29
Backend/Diligent.WebAPI.Business/Services/InsurerService.cs Целия файл

@@ -1,29 +0,0 @@
using Diligent.WebAPI.Data;
using Diligent.WebAPI.Data.Entities;
using Microsoft.Extensions.Options;
using MongoDB.Driver;

namespace Diligent.WebAPI.Business.MongoServices
{
public class InsurerService : BaseMongo<InsurerMongo>
{
public InsurerService(IOptions<WebApiDatabaseSettings> webApiDatabaseSettings) :
base(webApiDatabaseSettings, "Insurers")
{ }

public async Task<List<InsurerMongo>> GetInsurersAsync() =>
await _mongoCollection.Find(_ => true).ToListAsync();

public async Task<InsurerMongo> GetByIdAsync(string id) =>
await _mongoCollection.Find(x => x.Id == id).FirstOrDefaultAsync();

public async Task CreateInsurer(InsurerMongo insurer) =>
await _mongoCollection.InsertOneAsync(insurer);

public async Task UpdateInsurer(string id, InsurerMongo insurer) =>
await _mongoCollection.ReplaceOneAsync(x => x.Id == id, insurer);

public async Task DeleteInsurerAsync(string id) =>
await _mongoCollection.DeleteOneAsync(x => x.Id == id);
}
}

+ 29
- 1
Backend/Diligent.WebAPI.Business/Services/RoomService.cs Целия файл

@@ -12,7 +12,6 @@ namespace Diligent.WebAPI.Business.Services
public RoomService(IOptions<WebApiDatabaseSettings> webApiDatabaseSettings) :
base(webApiDatabaseSettings, "Room")
{ }

public async Task<List<Room>> GetRoomsAsync() =>
await _mongoCollection.Find(_ => true).ToListAsync();

@@ -83,5 +82,34 @@ namespace Diligent.WebAPI.Business.Services

return true;
}

public async Task<List<Room>> GetRoomsWhichSupportCreated(string supportId) =>
await _mongoCollection.Find(k => k.CreatedBy == supportId).ToListAsync();

public async Task<List<Room>?> GetRoomsWithFilteredMessages(string customerId)
{
var rooms = await GetRoomsAsync();
foreach (var room in rooms)
{

List<Message> msg = new();
var customer = room.Customers.Where(c => c.CustomerId == customerId).FirstOrDefault();

if (customer is not null)
{
foreach (var message in room.Messages)
{
if (message.CreatedAtUtc >= customer.DateOfEnteringRoom)
msg.Add(message);
}
room.Messages = msg;
}
else
{
room.Messages = new List<Message>();
}
}
return rooms;
}
}
}

+ 0
- 14
Backend/Diligent.WebAPI.Data/Entities/InsuranceCompanyMongo.cs Целия файл

@@ -1,14 +0,0 @@
namespace Diligent.WebAPI.Data.Entities
{
public class InsuranceCompanyMongo : BaseMongo
{
public string Name { get; set; }
public string PhoneNumber { get; set; }
public string Fax { get; set; }
public string City { get; set; }
public string Country { get; set; }
public string PostalCode { get; set; }
public string LegalAddress { get; set; }
public string LegalEmail { get; set; }
}
}

+ 0
- 11
Backend/Diligent.WebAPI.Data/Entities/InsurancePolicyMongo.cs Целия файл

@@ -1,11 +0,0 @@
namespace Diligent.WebAPI.Data.Entities;

public class InsurancePolicyMongo : BaseMongo
{
public decimal Premium { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public string Type { get; set; }
public string? InsurerId { get; set; }
public string? InsuranceCompanyId { get; set; }
}

+ 0
- 22
Backend/Diligent.WebAPI.Data/Entities/InsurerMongo.cs Целия файл

@@ -1,22 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Diligent.WebAPI.Data.Entities
{
public class InsurerMongo : BaseMongo
{
public string FirstName { get; set; }
public string LastName { get; set; }
public DateTime DateOfBirth { get; set; }
public string PhoneNumber { get; set; }
public string City { get; set; }
public string Country { get; set; }
public string PostalCode { get; set; }
public string Address { get; set; }
public string Email { get; set; }
public string? InsuranceCompanyId { get; set; }
}
}

+ 0
- 9
Backend/Diligent.WebAPI.Data/Extensions/ServiceCollection.cs Целия файл

@@ -1,9 +0,0 @@
namespace Diligent.WebAPI.Data.Extensions;

public static class ServiceCollection
{
public static void ConfigureData(this IServiceCollection services, IConfiguration configuration)
{
}
}

+ 0
- 9
Backend/Diligent.WebAPI.Data/Extensions/ServiceScope.cs Целия файл

@@ -1,9 +0,0 @@
namespace Diligent.WebAPI.Data.Extensions;

public static class ServiceScope
{
public static void SetupData(this IServiceScope scope)
{
}
}

+ 36
- 0
Backend/Diligent.WebAPI.Host/Controllers/AuthenticationController.cs Целия файл

@@ -0,0 +1,36 @@
using Diligent.WebAPI.Host.DTOs.Customer;
using Diligent.WebAPI.Host.Mediator.Authentication.Commands;
using Diligent.WebAPI.Host.Mediator.Authentication.Queries;
using MediatR;
using Microsoft.AspNetCore.Mvc;

namespace Diligent.WebAPI.Host.Controllers
{
[ApiVersion("1.0")]
[ApiController]
[Route("v{version:apiVersion}/[controller]")]
public class AuthenticationController : ControllerBase
{
// password for every user in database is "Nekasifra123!"
private readonly IMediator _mediator;
public AuthenticationController(IMediator mediator)
{
_mediator = mediator;
}
[HttpPost("login")]
public async Task<ActionResult<CustomerReadDTO>> Login(CustomerLoginDTO customerLoginDTO) =>
await _mediator.Send(new LoginUserQuery(customerLoginDTO));

[HttpPost("addRole")]
public async Task<ActionResult> CreateRole(string nameOfRole)
{
await _mediator.Send(new AddRoleCommand(nameOfRole));

return StatusCode(201);
}

[HttpPost("register")]
public async Task<ActionResult<CustomerReadDTO>> Register(CustomerCreateDTO customerCreateDTO) =>
await _mediator.Send(new RegisterUserCommand(customerCreateDTO));
}
}

+ 0
- 68
Backend/Diligent.WebAPI.Host/Controllers/ChatController.cs Целия файл

@@ -1,68 +0,0 @@
using AutoMapper;
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Data.Entities;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Diligent.WebAPI.Host.Controllers
{
[ApiVersion("1.0")]
[ApiController]
[Route("v{version:apiVersion}/[controller]")]
public class ChatController : ControllerBase
{
private readonly RoomService _roomService;

public ChatController(RoomService roomService)
{
_roomService = roomService;
}

[Authorize(Roles = "Customer,Support")]
[HttpGet("rooms-with-filtered-messages")]
public async Task<ActionResult<List<Room>>> GetAllRoomsWithFilteredMessages(string customerId)
{
var rooms = await _roomService.GetRoomsAsync();
foreach (var room in rooms)
{

List<Message> msg = new();
var customer = room.Customers.Where(c => c.CustomerId == customerId).FirstOrDefault();

if (customer is not null)
{
foreach (var message in room.Messages)
{
if (message.CreatedAtUtc >= customer.DateOfEnteringRoom)
msg.Add(message);
}
room.Messages = msg;
}
else
{
room.Messages = new List<Message>();
}
}
return rooms;
}

[HttpGet("support-rooms")]
[Authorize(Roles = "Support")]
public async Task<ActionResult<List<Room>>> GetSupportRooms(string supportId) =>
await _roomService.GetRoomsForSupport(supportId);

[HttpPost]
[Authorize(Roles = "Support")]
public async Task<IActionResult> CreateChat(Room room)
{
if(room == null)
{
throw new BadHttpRequestException("Object cannot be null");
}

await _roomService.CreateRoomAsync(room);

return Ok(room);
}
}
}

+ 0
- 90
Backend/Diligent.WebAPI.Host/Controllers/CustomerController.cs Целия файл

@@ -1,90 +0,0 @@
using AutoMapper;
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.DTOs.Customer;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Mvc;

namespace Diligent.WebAPI.Host.Controllers
{
[ApiVersion("1.0")]
[ApiController]
[Route("v{version:apiVersion}/[controller]")]
public class CustomerController : ControllerBase
{
// sifra za svakog od user-a je "Nekasifra123!"
private readonly UserManager<Customer> _customerManager;
private readonly RoleManager<Roles> _roleManager;
private readonly IAuthenticationService _authenticationService;
private readonly IMapper _mapper;
private readonly ICustomerService _customerService;

public CustomerController(UserManager<Customer> customerManager, RoleManager<Roles> roleManager, IAuthenticationService authenticationService,
IMapper mapper, ICustomerService customerService)
{
_customerManager = customerManager;
_roleManager = roleManager;
_authenticationService = authenticationService;
_mapper = mapper;
_customerService = customerService;
}
[HttpPost("login")]
public async Task<ActionResult<CustomerReadDTO>> Login(CustomerLoginDTO customerLoginDTO)
{
if (!await _authenticationService.ValidateCustomer(customerLoginDTO.Username, customerLoginDTO.Password))
return BadRequest("Authentication failed.Wrong Username or password");

Customer customer = await _customerService.GetCustomer(customerLoginDTO.Username);
var customerReadDTO = _mapper.Map<CustomerReadDTO>(customer);
customerReadDTO.Token = await _authenticationService.GenerateToken();
customerReadDTO.Roles = (List<string>)await _customerManager.GetRolesAsync(customer);
return customerReadDTO;
}

[HttpPost("addRole")]
public async Task<ActionResult> CreateRole(string name)
{
IdentityResult result = await _roleManager.CreateAsync(new Roles() { Name = name });

if (!result.Succeeded)
{
foreach (IdentityError error in result.Errors)
ModelState.AddModelError("", error.Description);

return BadRequest(ModelState);
}

return StatusCode(201);
}

[HttpPost("register")]
public async Task<ActionResult<CustomerReadDTO>> Register(CustomerCreateDTO customerCreateDTO)
{
Customer customer = new()
{
FirstName = customerCreateDTO.FirstName,
LastName = customerCreateDTO.LastName,
Email = customerCreateDTO.Email,
UserName = customerCreateDTO.Username
};

var result = await _customerManager.CreateAsync(customer, customerCreateDTO.Password);
await _customerManager.AddToRoleAsync(customer, "Support");

if (!result.Succeeded)
{
foreach (IdentityError error in result.Errors)
ModelState.AddModelError("", error.Description);

return BadRequest(ModelState);
}
await _authenticationService.ValidateCustomer(customer.UserName,customerCreateDTO.Password);
var customerReadDTO = _mapper.Map<CustomerReadDTO>(customer);
customerReadDTO.Token = await _authenticationService.GenerateToken();
customerReadDTO.Roles = (List<string>)await _customerManager.GetRolesAsync(customer);

return customerReadDTO;
}
}
}

+ 0
- 86
Backend/Diligent.WebAPI.Host/Controllers/InsuranceCompanyController.cs Целия файл

@@ -1,86 +0,0 @@
using Microsoft.AspNetCore.Mvc;
using Diligent.WebAPI.Business.MongoServices;
using Diligent.WebAPI.Data.Entities;
using AutoMapper;
using Diligent.WebAPI.Host.Exceptions;
using Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo;

namespace Diligent.WebAPI.Host.MongoControllers
{
[ApiVersion("1.0")]
[ApiController]
[Route("v{version:apiVersion}/[controller]")]
public class InsuranceCompanyController:ControllerBase
{
private readonly InsuranceCompanyService _insuranceCompanyService;
private readonly IMapper _mapper;

public InsuranceCompanyController(InsuranceCompanyService insuranceCompanyService,IMapper mapper)
{
_insuranceCompanyService = insuranceCompanyService;
_mapper = mapper;
}

[HttpGet]
public async Task<List<InsuranceCompanyReadDTO>> Get()
{
var insuranceCompanies = await _insuranceCompanyService.GetAllAsync();
return _mapper.Map<List<InsuranceCompanyReadDTO>>(insuranceCompanies);
}

[HttpGet("{id:length(24)}")]
public async Task<ActionResult<InsuranceCompanyReadDTO>> Get(string id)
{
var insuranceCompany = await _insuranceCompanyService.GetByIdAsync(id);

if (insuranceCompany is null)
{
throw new NotFoundException("Company not found");
}

return _mapper.Map<InsuranceCompanyReadDTO>(insuranceCompany);
}

[HttpPost]
public async Task<ActionResult> Post(InsuranceCompanyCreateDTO insuranceCompanyCreateDTO)
{
var insuranceCompany = _mapper.Map<InsuranceCompanyMongo>(insuranceCompanyCreateDTO);
await _insuranceCompanyService.CreateInsuranceCompany(insuranceCompany);

return CreatedAtAction(nameof(Get), new { id = insuranceCompany.Id }, insuranceCompany);
}

[HttpPut("{id:length(24)}")]
public async Task<ActionResult> Update(string id, InsuranceCompanyMongo updatedBook)
{
var insuranceCompany = await _insuranceCompanyService.GetByIdAsync(id);

if (insuranceCompany is null)
{
throw new NotFoundException("Company not found");
}

updatedBook.Id = insuranceCompany.Id;

await _insuranceCompanyService.UpdateInsuranceCompany(id, updatedBook);

return Ok();
}

[HttpDelete("{id:length(24)}")]
public async Task<ActionResult> Delete(string id)
{
var insuranceCompany = await _insuranceCompanyService.GetByIdAsync(id);

if (insuranceCompany is null)
{
throw new NotFoundException("Company not found");
}

await _insuranceCompanyService.DeleteInsuranceCompany(id);

return Ok();
}
}
}

+ 0
- 120
Backend/Diligent.WebAPI.Host/Controllers/InsurancePolicyController.cs Целия файл

@@ -1,120 +0,0 @@
using Microsoft.AspNetCore.Mvc;
using Diligent.WebAPI.Business.MongoServices;
using Diligent.WebAPI.Data.Entities;
using AutoMapper;
using Diligent.WebAPI.Host.Exceptions;
using Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo;
using Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo;
using Diligent.WebAPI.Host.MongoDTOs.InsurerMongo;

namespace Diligent.WebAPI.Host.MongoControllers
{
[ApiVersion("1.0")]
[ApiController]
[Route("v{version:apiVersion}/[controller]")]
public class InsurancePolicyController : ControllerBase
{
private readonly InsurancePolicyService _insurancePolicyService;
private readonly InsurerService _insurerService;
private readonly InsuranceCompanyService _insuranceCompanyService;
private readonly IMapper _mapper;

public InsurancePolicyController(InsurancePolicyService insurancePolicyService, IMapper mapper, InsurerService insurerService, InsuranceCompanyService insuranceCompanyService)
{
_insurancePolicyService = insurancePolicyService;
_mapper = mapper;
_insurerService = insurerService;
_insuranceCompanyService = insuranceCompanyService;
}

[HttpGet]
public async Task<List<InsurancePolicyReturnDTO>> Get()
{
var insuranceCompanies = await _insurancePolicyService.GetAllAsync();
return _mapper.Map<List<InsurancePolicyReturnDTO>>(insuranceCompanies);
}


[HttpGet("{id:length(24)}")]
public async Task<ActionResult<InsurancePolicyReturnDTO>> Get(string id)
{
var insuranceCompany = await _insurancePolicyService.GetByIdAsync(id);

if (insuranceCompany is null)
{
throw new NotFoundException("Policy not found");
}

var returnPolicy = _mapper.Map<InsurancePolicyReturnDTO>(insuranceCompany);

if (returnPolicy.InsurerId != null)
{
var insurer = _mapper.Map<InsurerReturnDTO>(await _insurerService.GetByIdAsync(returnPolicy.InsurerId));
returnPolicy.Insurer = insurer;
}

if (returnPolicy.InsuranceCompanyId != null)
{
var insuranceCompanyDTO = _mapper.Map<InsuranceCompanyReadDTO>(await _insuranceCompanyService.GetByIdAsync(returnPolicy.InsuranceCompanyId));
returnPolicy.InsuranceCompany = insuranceCompanyDTO;
}

return returnPolicy;
}

[HttpPost]
public async Task<ActionResult> Post(InsurancePolicySaveDTO insurancePolicyCreateDTO)
{
var insurancePolicy = _mapper.Map<InsurancePolicyMongo>(insurancePolicyCreateDTO);
await _insurancePolicyService.CreateInsurancePolicy(insurancePolicy);

var returnPolicy = _mapper.Map<InsurancePolicyReturnDTO>(insurancePolicy);

if (returnPolicy.InsurerId != null)
{
var insurer = _mapper.Map<InsurerReturnDTO>(await _insurerService.GetByIdAsync(returnPolicy.InsurerId));
returnPolicy.Insurer = insurer;
}

if (returnPolicy.InsuranceCompanyId != null)
{
var insuranceCompanyDTO = _mapper.Map<InsuranceCompanyReadDTO>(await _insuranceCompanyService.GetByIdAsync(returnPolicy.InsuranceCompanyId));
returnPolicy.InsuranceCompany = insuranceCompanyDTO;
}

return CreatedAtAction(nameof(Get), new { id = returnPolicy.Id }, returnPolicy);
}

[HttpPut("{id:length(24)}")]
public async Task<ActionResult> Update(string id, InsurancePolicyMongo updatedBook)
{
var insuranceCompany = await _insurancePolicyService.GetByIdAsync(id);

if (insuranceCompany is null)
{
throw new NotFoundException("Policy not found");
}

updatedBook.Id = insuranceCompany.Id;

await _insurancePolicyService.UpdateInsurancePolicy(id, updatedBook);

return Ok();
}

[HttpDelete("{id:length(24)}")]
public async Task<ActionResult> Delete(string id)
{
var insuranceCompany = await _insurancePolicyService.GetByIdAsync(id);

if (insuranceCompany is null)
{
throw new NotFoundException("Policy not found");
}

await _insurancePolicyService.DeleteInsurancePolicy(id);

return Ok();
}
}
}

+ 0
- 104
Backend/Diligent.WebAPI.Host/Controllers/InsurerController.cs Целия файл

@@ -1,104 +0,0 @@
using AutoMapper;
using Diligent.WebAPI.Business.MongoServices;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.Exceptions;
using Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo;
using Diligent.WebAPI.Host.MongoDTOs.InsurerMongo;
using Microsoft.AspNetCore.Mvc;

namespace Diligent.WebAPI.Host.MongoController
{
[ApiVersion("1.0")]
[ApiController]
[Route("v{version:apiVersion}/[controller]")]
public class InsurerController : ControllerBase
{
private readonly InsurerService _insurerService;
private readonly InsuranceCompanyService _insuranceCompanyService;
private readonly IMapper _mapper;

public InsurerController(IMapper mapper, InsurerService insurerService, InsuranceCompanyService insuranceCompanyService)
{
_mapper = mapper;
_insurerService = insurerService;
_insuranceCompanyService = insuranceCompanyService;
}

[HttpGet]
public async Task<IActionResult> GetAll()
{
var insurers = _mapper.Map<List<InsurerReturnDTO>>(await _insurerService.GetInsurersAsync());

return Ok(insurers);
}


[HttpGet("{id:length(24)}")]
public async Task<ActionResult<InsurerReturnDTO>> Get(string id)
{
var insurer = await _insurerService.GetByIdAsync(id);

if (insurer is null)
{
throw new NotFoundException("Insurer not found");
}

var returnInsurer = _mapper.Map<InsurerReturnDTO>(insurer);

if(returnInsurer.InsuranceCompanyId != null)
{
returnInsurer.InsuranceCompany = _mapper.Map<InsuranceCompanyReadDTO>(await _insuranceCompanyService.GetByIdAsync(returnInsurer.InsuranceCompanyId));
}

return returnInsurer;
}

[HttpPost]
public async Task<ActionResult> Post(InsurerSaveDTO request)
{
var insurer = _mapper.Map<InsurerMongo>(request);
await _insurerService.CreateInsurer(insurer);

var returnInsurer = _mapper.Map<InsurerReturnDTO>(insurer);
if(returnInsurer.InsuranceCompanyId != null)
{
var insuranceCompany = _mapper.Map<InsuranceCompanyReadDTO>(await _insuranceCompanyService.GetByIdAsync(returnInsurer.InsuranceCompanyId));
returnInsurer.InsuranceCompany = insuranceCompany;
}

return CreatedAtAction(nameof(Get), new { id = insurer.Id }, returnInsurer);
}

[HttpPut("{id:length(24)}")]
public async Task<ActionResult> Update(string id, InsurerMongo request)
{
var insurer = await _insurerService.GetByIdAsync(id);

if (insurer is null)
{
throw new NotFoundException("Insurer not found");
}

request.Id = insurer.Id;

await _insurerService.UpdateInsurer(id, request);

return Ok();
}

[HttpDelete("{id:length(24)}")]
public async Task<ActionResult> Delete(string id)
{
var insurer = await _insurerService.GetByIdAsync(id);

if (insurer is null)
{
throw new NotFoundException("Insurer not found");
}

await _insurerService.DeleteInsurerAsync(id);

return Ok();
}
}
}

+ 0
- 21
Backend/Diligent.WebAPI.Host/Controllers/MessageController.cs Целия файл

@@ -1,21 +0,0 @@
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.Mediator.Messages.Commands;
using MediatR;
using Microsoft.AspNetCore.Mvc;

namespace Diligent.WebAPI.Host.Controllers
{
public class MessageController:ControllerBase
{
private readonly RoomService _roomService;

public MessageController(RoomService roomService)
{
_roomService = roomService;
}
[HttpGet]
public async Task<List<Message>> GetAllMessagesForRoom(string roomId) =>
await _roomService.GetMessagesForSpecificRoom(roomId);
}
}

+ 8
- 33
Backend/Diligent.WebAPI.Host/Controllers/RequestController.cs Целия файл

@@ -16,40 +16,20 @@ namespace Diligent.WebAPI.Host.Controllers
[Route("v{version:apiVersion}/[controller]")]
public class RequestController:ControllerBase
{
private readonly RequestService _requestService;
private readonly IMapper _mapper;
private readonly IMediator _mediator;

public RequestController(RequestService requestService,IMapper mapper,IMediator mediator)
public RequestController(IMediator mediator)
{
_requestService = requestService;
_mapper = mapper;
_mediator = mediator;
}

[HttpGet]
public async Task<ActionResult> GetRequests()
{
return Ok(await _requestService.GetRequestsAsync());
}
public async Task<List<Request>> GetRequests() =>
await _mediator.Send(new GetAllRequestsQuery());

[HttpGet("{id}")]
public async Task<ActionResult> GetRequestById(string id)
{
if (id == null)
{
throw new BadHttpRequestException("Id cannot be null");
}

var request = await _requestService.GetRequestAsync(id);

if (request == null)
{
throw new NotFoundException("Request not found");
}

return Ok(request);
}
public async Task<Request> GetRequestById(string id) =>
await _mediator.Send(new GetRequestQuery(id));

// get all rooms for which exist at least one request from customer
[HttpGet("request-rooms")]
@@ -75,16 +55,11 @@ namespace Diligent.WebAPI.Host.Controllers
}
[HttpPost("join-request")]
public async Task<IActionResult> CreateRequest(RequestCreateDTO resource)
public async Task<IActionResult> CreateRequest(RequestCreateDTO req)
{
if (resource == null)
throw new BadHttpRequestException("Resource object cannot be null.");

var room = _mapper.Map<Request>(resource);

await _requestService.CreateRequestAsync(room);
var request = await _mediator.Send(new CreateRequestCommand(req));

return CreatedAtAction(nameof(RequestController.CreateRequest), new { id = room.Id }, room);
return CreatedAtAction(nameof(RequestController.CreateRequest), new { id = request.Id }, request);
}

}

+ 40
- 0
Backend/Diligent.WebAPI.Host/Controllers/RoomController.cs Целия файл

@@ -0,0 +1,40 @@
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.Mediator.Rooms.Commands;
using Diligent.WebAPI.Host.Mediator.Rooms.Queries;
using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;

namespace Diligent.WebAPI.Host.Controllers
{
[ApiVersion("1.0")]
[ApiController]
[Route("v{version:apiVersion}/[controller]")]
public class RoomController : ControllerBase
{
private readonly IMediator _mediator;

public RoomController(IMediator mediator)
{
_mediator = mediator;
}

[Authorize(Roles = "Customer,Support")]
[HttpGet("rooms-with-filtered-messages")]
public async Task<ActionResult<List<Room>>> GetAllRoomsWithFilteredMessages(string customerId) =>
await _mediator.Send(new GetAllRoomsWithFilteredMessagesQuery(customerId));

[HttpGet("support-rooms")]
[Authorize(Roles = "Support")]
public async Task<ActionResult<List<Room>>> GetSupportRooms(string supportId) =>
await _mediator.Send(new GetRoomsWhichSupportCreatedQuery(supportId));

[HttpPost]
[Authorize(Roles = "Support")]
public async Task<ActionResult<Room>> CreateChat(Room room)
{
await _mediator.Send(new CreateRoomCommand(room));
return room;
}
}
}

+ 0
- 14
Backend/Diligent.WebAPI.Host/DTOs/InsuranceCompanyMongo/InsuranceCompanyCreateDTO.cs Целия файл

@@ -1,14 +0,0 @@
namespace Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo
{
public class InsuranceCompanyCreateDTO
{
public string Name { get; set; }
public string PhoneNumber { get; set; }
public string Fax { get; set; }
public string City { get; set; }
public string Country { get; set; }
public string PostalCode { get; set; }
public string LegalAddress { get; set; }
public string LegalEmail { get; set; }
}
}

+ 0
- 18
Backend/Diligent.WebAPI.Host/DTOs/InsuranceCompanyMongo/InsuranceCompanyReadDTO.cs Целия файл

@@ -1,18 +0,0 @@
namespace Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo
{
public class InsuranceCompanyReadDTO
{
public string Id { get; set; }
public DateTime CreatedAtUtc { get; set; }
public DateTime? UpdatedAtUtc { get; set; }
public DateTime? DeletedAtUtc { get; set; }
public string Name { get; set; }
public string PhoneNumber { get; set; }
public string Fax { get; set; }
public string City { get; set; }
public string Country { get; set; }
public string PostalCode { get; set; }
public string LegalAddress { get; set; }
public string LegalEmail { get; set; }
}
}

+ 0
- 21
Backend/Diligent.WebAPI.Host/DTOs/InsurancePolicyMongo/InsurancePolicyReturnDTO.cs Целия файл

@@ -1,21 +0,0 @@
using Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo;
using Diligent.WebAPI.Host.MongoDTOs.InsurerMongo;

namespace Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo
{
public class InsurancePolicyReturnDTO
{
public string Id { get; set; }
public DateTime CreatedAtUtc { get; set; }
public DateTime? UpdatedAtUtc { get; set; }
public DateTime? DeletedAtUtc { get; set; }
public decimal Premium { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public string Type { get; set; }
public string? InsurerId { get; set; }
public InsurerReturnDTO? Insurer { get; set; }
public string? InsuranceCompanyId { get; set; }
public InsuranceCompanyReadDTO? InsuranceCompany { get; set; }
}
}

+ 0
- 12
Backend/Diligent.WebAPI.Host/DTOs/InsurancePolicyMongo/InsurancePolicySaveDTO.cs Целия файл

@@ -1,12 +0,0 @@
namespace Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo
{
public class InsurancePolicySaveDTO
{
public decimal Premium { get; set; }
public DateTime StartDate { get; set; }
public DateTime EndDate { get; set; }
public string Type { get; set; }
public string? InsurerId { get; set; }
public string? InsuranceCompanyId { get; set; }
}
}

+ 0
- 23
Backend/Diligent.WebAPI.Host/DTOs/InsurerMongo/InsurerReturnDTO.cs Целия файл

@@ -1,23 +0,0 @@
using Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo;

namespace Diligent.WebAPI.Host.MongoDTOs.InsurerMongo
{
public class InsurerReturnDTO
{
public string Id { get; set; }
public DateTime CreatedAtUtc { get; set; }
public DateTime? UpdatedAtUtc { get; set; }
public DateTime? DeletedAtUtc { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public DateTime DateOfBirth { get; set; }
public string PhoneNumber { get; set; }
public string City { get; set; }
public string Country { get; set; }
public string PostalCode { get; set; }
public string Address { get; set; }
public string Email { get; set; }
public string InsuranceCompanyId { get; set; }
public virtual InsuranceCompanyReadDTO? InsuranceCompany { get; set; }
}
}

+ 0
- 18
Backend/Diligent.WebAPI.Host/DTOs/InsurerMongo/InsurerSaveDTO.cs Целия файл

@@ -1,18 +0,0 @@
using Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo;

namespace Diligent.WebAPI.Host.MongoDTOs.InsurerMongo
{
public class InsurerSaveDTO
{
public string FirstName { get; set; }
public string LastName { get; set; }
public DateTime DateOfBirth { get; set; }
public string PhoneNumber { get; set; }
public string City { get; set; }
public string Country { get; set; }
public string PostalCode { get; set; }
public string Address { get; set; }
public string Email { get; set; }
public string? InsuranceCompanyId { get; set; }
}
}

+ 0
- 4
Backend/Diligent.WebAPI.Host/Extensions/WebApp.cs Целия файл

@@ -5,10 +5,6 @@ public static class WebApp
{
public static void SetupData(this WebApplication app)
{
IServiceScope serviceScope = app.Services.CreateScope();
serviceScope.SetupData();

app.ConfigureCustomExceptionMiddleware();

}
}

+ 2
- 13
Backend/Diligent.WebAPI.Host/Extensions/WebAppBuilder.cs Целия файл

@@ -1,5 +1,4 @@
using Diligent.WebAPI.Business.MongoServices;
using Diligent.WebAPI.Data;
using Diligent.WebAPI.Data;
using Diligent.WebAPI.Host.Hubs;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.Mapper;
@@ -8,11 +7,11 @@ using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.AspNetCore.SignalR;
using Serilog;
using System.Reflection;
using Microsoft.AspNetCore.Identity;
using Microsoft.IdentityModel.Tokens;
using System.Text;
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Host.Middlewares;
using Diligent.WebAPI.Business.Interfaces;

namespace Diligent.WebAPI.Host.Extensions;

@@ -20,24 +19,14 @@ public static class WebAppBuilder
{
public static void ConfigureData(this WebApplicationBuilder builder, IConfiguration configuration)
{
builder.Services.ConfigureData(configuration);

// database configuration
builder.Services.Configure<WebApiDatabaseSettings>(
builder.Configuration.GetSection("WebApiDB"));

builder.Services.AddAutoMapper(typeof(InsurerMappingProfile));
builder.Services.AddAutoMapper(typeof(CompanyMappingProfile));
builder.Services.AddAutoMapper(typeof(PolicyMappingProfiles));
builder.Services.AddAutoMapper(typeof(RequestMappingProfile));
builder.Services.AddScoped<IAuthenticationService, AuthenticationService>();

//builder.Services.AddScoped<IInsuranceCompanyService, InsuranceCompanyService>();
// mongo service life cycle
builder.Services.AddScoped<ICustomerService, CustomerService>();
builder.Services.AddSingleton<InsuranceCompanyService>();
builder.Services.AddSingleton<InsurancePolicyService>();
builder.Services.AddSingleton<InsurerService>();
builder.Services.AddSingleton<RoomService>();
builder.Services.AddSingleton<RequestService>();
builder.Services.AddSingleton<AuthorizationService>();

+ 0
- 7
Backend/Diligent.WebAPI.Host/Hubs/Attachment.cs Целия файл

@@ -1,7 +0,0 @@
namespace Diligent.WebAPI.Host.Hubs
{
public class Attachment
{
public string Name { get; set; }
}
}

+ 1
- 2
Backend/Diligent.WebAPI.Host/Hubs/ChatHub.cs Целия файл

@@ -1,13 +1,12 @@
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.DTOs.Notification;
using Diligent.WebAPI.Host.DTOs.Chat;
using Diligent.WebAPI.Host.Mediator.Chat.Commands;
using Diligent.WebAPI.Host.Mediator.Messages.Commands;
using Diligent.WebAPI.Host.Mediator.Notifications.Commands;
using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.SignalR;
using Diligent.WebAPI.Host.Middlewares;
using Diligent.WebAPI.Host.Mediator.Rooms.Commands;

namespace Diligent.WebAPI.Host.Hubs
{

+ 0
- 1
Backend/Diligent.WebAPI.Host/Hubs/ChatMessage.cs Целия файл

@@ -6,7 +6,6 @@
public string? User { get; set; }
public string Message { get; set; }
public DateTime Created { get; set; } = DateTime.Now;
public Attachment? Attachment { get; set; }
public bool IsAccessMessage { get; set; } = false;
// Context.ConnectionId generated by SignalR
public string ConnId { get; set; }

+ 0
- 92
Backend/Diligent.WebAPI.Host/Logging/webapi-20220622.log Целия файл

@@ -1,92 +0,0 @@
[2022-06-22 16:04:17.716 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-22 16:04:17.793 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-22 16:04:17.918 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-22 16:04:18.442 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-22 16:04:18.463 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-22 16:04:18.483 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-22 16:04:18.537 +02:00 INF Now listening on: http://localhost:5116
][2022-06-22 16:04:18.540 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-22 16:04:18.540 +02:00 INF Hosting environment: Development
][2022-06-22 16:04:18.540 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-06-22 16:04:21.674 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurers - -
][2022-06-22 16:04:21.712 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
][2022-06-22 16:04:21.726 +02:00 INF Route matched with {action = "GetInsurers", controller = "Insurers"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetInsurers() on controller Diligent.WebAPI.Host.Controllers.InsurersController (Diligent.WebAPI.Host).
][2022-06-22 16:04:21.823 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-22 16:04:22.080 +02:00 INF Executed DbCommand (10ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [i].[Id], [i].[Address], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DateOfBirth], [i].[DeletedAtUtc], [i].[Email], [i].[FirstName], [i].[InsuranceCompanyId], [i].[LastName], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc], [i0].[Id], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DeletedAtUtc], [i0].[Fax], [i0].[LegalAddress], [i0].[LegalEmail], [i0].[Name], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc]
FROM [Insurers] AS [i]
INNER JOIN [InsuranceCompanies] AS [i0] ON [i].[InsuranceCompanyId] = [i0].[Id]
][2022-06-22 16:04:22.185 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsurerDTOs.CreateInsurerResponse, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-22 16:04:22.220 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host) in 490.4821ms
][2022-06-22 16:04:22.221 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurersController.GetInsurers (Diligent.WebAPI.Host)'
][2022-06-22 16:04:22.225 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurers - - - 200 - application/json;+charset=utf-8 553.2093ms
][2022-06-22 16:31:52.022 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-22 16:31:52.097 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-22 16:31:52.234 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-22 16:31:53.151 +02:00 INF Executed DbCommand (17ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-22 16:31:53.174 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-22 16:31:53.196 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-22 16:31:53.345 +02:00 INF Now listening on: http://localhost:5116
][2022-06-22 16:31:53.348 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-22 16:31:53.349 +02:00 INF Hosting environment: Development
][2022-06-22 16:31:53.349 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\Najnovije\Diligent.WebAPI.Host\
][2022-06-22 16:31:53.496 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-22 16:31:53.579 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 404 0 - 85.6037ms
][2022-06-22 16:35:40.874 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-22 16:35:40.943 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-22 16:35:41.076 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-22 16:35:41.361 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-22 16:35:41.383 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-22 16:35:41.403 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-22 16:35:41.472 +02:00 INF Now listening on: http://localhost:5116
][2022-06-22 16:35:41.475 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-22 16:35:41.475 +02:00 INF Hosting environment: Development
][2022-06-22 16:35:41.475 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\Najnovije\Diligent.WebAPI.Host\
][2022-06-22 16:35:43.920 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-22 16:35:44.145 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-22 16:35:44.148 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-22 16:35:44.150 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.8546ms
][2022-06-22 16:35:44.160 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 243.5705ms
][2022-06-22 16:35:44.203 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 58.2248ms
][2022-06-22 16:35:44.356 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-22 16:35:44.429 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 73.4552ms
][2022-06-22 16:36:04.152 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/112312 - -
][2022-06-22 16:36:04.161 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
][2022-06-22 16:36:04.202 +02:00 INF Route matched with {action = "GetInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetInsuranceCompany(Int64) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
][2022-06-22 16:36:04.303 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-22 16:36:04.614 +02:00 INF Executed DbCommand (32ms) [Parameters=[@__p_0='112312'], CommandType='"Text"', CommandTimeout='30']
SELECT TOP(1) [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
FROM [InsuranceCompanies] AS [i]
WHERE [i].[Id] = @__p_0
][2022-06-22 16:36:04.686 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 479.4629ms
][2022-06-22 16:36:04.687 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
][2022-06-22 16:36:04.760 +02:00 ERR Insurance Company with id 112312 not found.
][2022-06-22 16:36:04.766 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/112312 - - - 404 - application/json 614.2215ms
][2022-06-22 16:36:44.951 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/11231221231231231 - -
][2022-06-22 16:36:44.951 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
][2022-06-22 16:36:44.952 +02:00 INF Route matched with {action = "GetInsuranceCompany", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetInsuranceCompany(Int64) on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
][2022-06-22 16:36:44.999 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-22 16:36:45.006 +02:00 INF Executed DbCommand (3ms) [Parameters=[@__p_0='11231221231231231'], CommandType='"Text"', CommandTimeout='30']
SELECT TOP(1) [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
FROM [InsuranceCompanies] AS [i]
WHERE [i].[Id] = @__p_0
][2022-06-22 16:36:45.030 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host) in 78.3861ms
][2022-06-22 16:36:45.030 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompany (Diligent.WebAPI.Host)'
][2022-06-22 16:36:45.085 +02:00 ERR Insurance Company with id 11231221231231231 not found.
][2022-06-22 16:36:45.086 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies/11231221231231231 - - - 404 - application/json 134.8242ms
]

+ 0
- 1933
Backend/Diligent.WebAPI.Host/Logging/webapi-20220623.log
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 0
- 542
Backend/Diligent.WebAPI.Host/Logging/webapi-20220624.log Целия файл

@@ -1,542 +0,0 @@
[2022-06-24 12:00:08.843 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 12:00:08.883 +02:00 WRN The foreign key property 'Insurer.InsuranceCompanyId1' was created in shadow state because a conflicting property with the simple name 'InsuranceCompanyId' exists in the entity type, but is either not mapped, is already used for another relationship, or is incompatible with the associated primary key type. See https://aka.ms/efcore-relationships for information on mapping relationships in EF Core.
][2022-06-24 12:00:08.923 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 12:00:09.047 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 12:00:09.649 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 12:00:09.672 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 12:00:09.693 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 12:02:52.896 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 12:02:52.932 +02:00 WRN The foreign key property 'Insurer.InsuranceCompanyId1' was created in shadow state because a conflicting property with the simple name 'InsuranceCompanyId' exists in the entity type, but is either not mapped, is already used for another relationship, or is incompatible with the associated primary key type. See https://aka.ms/efcore-relationships for information on mapping relationships in EF Core.
][2022-06-24 12:02:52.970 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 12:02:53.089 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 12:02:53.364 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 12:02:53.387 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 12:02:53.406 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 12:03:09.377 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 12:03:09.414 +02:00 WRN The foreign key property 'Insurer.InsuranceCompanyId1' was created in shadow state because a conflicting property with the simple name 'InsuranceCompanyId' exists in the entity type, but is either not mapped, is already used for another relationship, or is incompatible with the associated primary key type. See https://aka.ms/efcore-relationships for information on mapping relationships in EF Core.
][2022-06-24 12:03:09.447 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 12:03:09.571 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 12:03:09.837 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 12:03:09.859 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 12:03:09.879 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 12:03:09.958 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 12:03:09.960 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 12:03:09.960 +02:00 INF Hosting environment: Development
][2022-06-24 12:03:09.960 +02:00 INF Content root path: C:\Users\dzenis.hadzifejzovic\Desktop\Last\Diligent.WebAPI.Host\
][2022-06-24 12:03:10.212 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/chatHub/negotiate?negotiateVersion=1 - -
][2022-06-24 12:03:10.244 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:10.270 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/chatHub/negotiate?negotiateVersion=1 - - - 204 - - 45.7773ms
][2022-06-24 12:03:10.323 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
][2022-06-24 12:03:10.330 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:10.333 +02:00 INF Executing endpoint '/chatHub/negotiate'
][2022-06-24 12:03:10.343 +02:00 INF Executed endpoint '/chatHub/negotiate'
][2022-06-24 12:03:10.343 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 - 200 316 application/json 20.0608ms
][2022-06-24 12:03:10.346 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/chatHub?id=GpsJ0H0hPwcUEvnV27SfGQ - -
][2022-06-24 12:03:10.347 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:10.347 +02:00 INF Executing endpoint '/chatHub'
][2022-06-24 12:03:11.949 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
][2022-06-24 12:03:11.949 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:11.949 +02:00 INF Executing endpoint '/chatHub/negotiate'
][2022-06-24 12:03:11.949 +02:00 INF Executed endpoint '/chatHub/negotiate'
][2022-06-24 12:03:11.949 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 - 200 316 application/json 0.5882ms
][2022-06-24 12:03:11.954 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/chatHub?id=lgT_9T0VaQEapIYNUScM1Q - -
][2022-06-24 12:03:11.954 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:11.954 +02:00 INF Executing endpoint '/chatHub'
][2022-06-24 12:03:22.692 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-24 12:03:22.706 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 404 0 - 13.8679ms
][2022-06-24 12:03:30.447 +02:00 INF Executed endpoint '/chatHub'
][2022-06-24 12:03:30.448 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/chatHub?id=lgT_9T0VaQEapIYNUScM1Q - - - 101 - - 18493.5157ms
][2022-06-24 12:03:30.482 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/chatHub/negotiate?negotiateVersion=1 - -
][2022-06-24 12:03:30.483 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:30.483 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/chatHub/negotiate?negotiateVersion=1 - - - 204 - - 0.3127ms
][2022-06-24 12:03:30.487 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
][2022-06-24 12:03:30.487 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:30.487 +02:00 INF Executing endpoint '/chatHub/negotiate'
][2022-06-24 12:03:30.487 +02:00 INF Executed endpoint '/chatHub/negotiate'
][2022-06-24 12:03:30.487 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 - 200 316 application/json 0.3767ms
][2022-06-24 12:03:30.597 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
][2022-06-24 12:03:30.598 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:30.598 +02:00 INF Executing endpoint '/chatHub/negotiate'
][2022-06-24 12:03:30.598 +02:00 INF Executed endpoint '/chatHub/negotiate'
][2022-06-24 12:03:30.598 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 - 200 316 application/json 0.3776ms
][2022-06-24 12:03:30.627 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/chatHub?id=SrTlkzjZqD75RkCHkpsLAA - -
][2022-06-24 12:03:30.627 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:30.627 +02:00 INF Executing endpoint '/chatHub'
][2022-06-24 12:03:32.008 +02:00 INF Executed endpoint '/chatHub'
][2022-06-24 12:03:32.008 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/chatHub?id=GpsJ0H0hPwcUEvnV27SfGQ - - - 101 - - 21661.5298ms
][2022-06-24 12:03:32.014 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
][2022-06-24 12:03:32.014 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:32.014 +02:00 INF Executing endpoint '/chatHub/negotiate'
][2022-06-24 12:03:32.015 +02:00 INF Executed endpoint '/chatHub/negotiate'
][2022-06-24 12:03:32.015 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 - 200 316 application/json 0.4216ms
][2022-06-24 12:03:32.060 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
][2022-06-24 12:03:32.060 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:32.060 +02:00 INF Executing endpoint '/chatHub/negotiate'
][2022-06-24 12:03:32.061 +02:00 INF Executed endpoint '/chatHub/negotiate'
][2022-06-24 12:03:32.061 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 - 200 316 application/json 0.3358ms
][2022-06-24 12:03:32.066 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/chatHub?id=COs9LgoxWj6_WgoLjdwisA - -
][2022-06-24 12:03:32.066 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:32.066 +02:00 INF Executing endpoint '/chatHub'
][2022-06-24 12:03:37.770 +02:00 INF Executed endpoint '/chatHub'
][2022-06-24 12:03:37.770 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/chatHub?id=SrTlkzjZqD75RkCHkpsLAA - - - 101 - - 7143.5312ms
][2022-06-24 12:03:37.803 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/chatHub/negotiate?negotiateVersion=1 - -
][2022-06-24 12:03:37.803 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:37.803 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/chatHub/negotiate?negotiateVersion=1 - - - 204 - - 0.1769ms
][2022-06-24 12:03:37.805 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
][2022-06-24 12:03:37.805 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:37.805 +02:00 INF Executing endpoint '/chatHub/negotiate'
][2022-06-24 12:03:37.805 +02:00 INF Executed endpoint '/chatHub/negotiate'
][2022-06-24 12:03:37.805 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 - 200 316 application/json 0.2851ms
][2022-06-24 12:03:37.926 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
][2022-06-24 12:03:37.926 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:37.926 +02:00 INF Executing endpoint '/chatHub/negotiate'
][2022-06-24 12:03:37.928 +02:00 INF Executed endpoint '/chatHub/negotiate'
][2022-06-24 12:03:37.928 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 - 200 316 application/json 2.0126ms
][2022-06-24 12:03:37.955 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/chatHub?id=8hPPjWBlctc20DQgEVr5oA - -
][2022-06-24 12:03:37.955 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:37.955 +02:00 INF Executing endpoint '/chatHub'
][2022-06-24 12:03:38.753 +02:00 INF Executed endpoint '/chatHub'
][2022-06-24 12:03:38.753 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/chatHub?id=COs9LgoxWj6_WgoLjdwisA - - - 101 - - 6687.1238ms
][2022-06-24 12:03:38.755 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
][2022-06-24 12:03:38.755 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:38.755 +02:00 INF Executing endpoint '/chatHub/negotiate'
][2022-06-24 12:03:38.755 +02:00 INF Executed endpoint '/chatHub/negotiate'
][2022-06-24 12:03:38.755 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 - 200 316 application/json 0.3100ms
][2022-06-24 12:03:38.759 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/chatHub?id=85gSH-0EC2qbenSmWL9fYQ - -
][2022-06-24 12:03:38.759 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:38.759 +02:00 INF Executing endpoint '/chatHub'
][2022-06-24 12:03:38.768 +02:00 INF Executed endpoint '/chatHub'
][2022-06-24 12:03:38.768 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/chatHub?id=85gSH-0EC2qbenSmWL9fYQ - - - 101 - - 9.5311ms
][2022-06-24 12:03:38.805 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0
][2022-06-24 12:03:38.805 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:38.805 +02:00 INF Executing endpoint '/chatHub/negotiate'
][2022-06-24 12:03:38.805 +02:00 INF Executed endpoint '/chatHub/negotiate'
][2022-06-24 12:03:38.805 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/chatHub/negotiate?negotiateVersion=1 text/plain;charset=UTF-8 0 - 200 316 application/json 0.3211ms
][2022-06-24 12:03:38.809 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/chatHub?id=0AX9jMkXqQ02zFBiM1CCHQ - -
][2022-06-24 12:03:38.809 +02:00 INF CORS policy execution successful.
][2022-06-24 12:03:38.809 +02:00 INF Executing endpoint '/chatHub'
][2022-06-24 17:00:45.887 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:00:45.937 +02:00 WRN The foreign key property 'Insurer.InsuranceCompanyId1' was created in shadow state because a conflicting property with the simple name 'InsuranceCompanyId' exists in the entity type, but is either not mapped, is already used for another relationship, or is incompatible with the associated primary key type. See https://aka.ms/efcore-relationships for information on mapping relationships in EF Core.
][2022-06-24 17:00:45.970 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:00:46.124 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:00:47.106 +02:00 INF Executed DbCommand (17ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 17:00:47.129 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 17:00:47.152 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 17:00:47.433 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 17:00:47.436 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 17:00:47.436 +02:00 INF Hosting environment: Development
][2022-06-24 17:00:47.436 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-24 17:00:47.579 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-24 17:00:47.871 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-24 17:00:47.900 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-24 17:00:47.904 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 32.5033ms
][2022-06-24 17:00:47.912 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 337.4891ms
][2022-06-24 17:00:47.958 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 87.2881ms
][2022-06-24 17:00:48.098 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-24 17:00:48.177 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 78.9549ms
][2022-06-24 17:03:58.975 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:03:59.012 +02:00 WRN The foreign key property 'Insurer.InsuranceCompanyId1' was created in shadow state because a conflicting property with the simple name 'InsuranceCompanyId' exists in the entity type, but is either not mapped, is already used for another relationship, or is incompatible with the associated primary key type. See https://aka.ms/efcore-relationships for information on mapping relationships in EF Core.
][2022-06-24 17:03:59.052 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:03:59.173 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:13:56.359 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:13:56.438 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:13:56.593 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:13:56.903 +02:00 INF Executed DbCommand (21ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 17:13:56.928 +02:00 INF Executed DbCommand (14ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 17:13:56.952 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 17:13:57.057 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 17:13:57.060 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 17:13:57.060 +02:00 INF Hosting environment: Development
][2022-06-24 17:13:57.060 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-24 17:14:17.159 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:14:17.226 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:14:17.352 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:14:17.633 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 17:14:17.656 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 17:14:17.678 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 17:14:17.770 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 17:14:17.773 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 17:14:17.773 +02:00 INF Hosting environment: Development
][2022-06-24 17:14:17.773 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-24 17:14:20.601 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-24 17:14:20.742 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-24 17:14:20.742 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-24 17:14:20.744 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.5479ms
][2022-06-24 17:14:20.753 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 154.9714ms
][2022-06-24 17:14:20.766 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 24.0197ms
][2022-06-24 17:14:20.941 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-24 17:14:21.026 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 85.1889ms
][2022-06-24 17:14:30.624 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-24 17:14:30.860 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:14:30.873 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-24 17:14:30.883 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 5.4658ms
][2022-06-24 17:14:30.884 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:14:30.928 +02:00 ERR Unable to resolve service for type 'Diligent.WebAPI.Business.MongoServices.InsuranceCompanyService' while attempting to activate 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController'.
][2022-06-24 17:14:30.929 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - - - 500 - application/json 304.7314ms
][2022-06-24 17:15:51.955 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:15:52.020 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:15:52.145 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:15:52.407 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 17:15:52.429 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 17:15:52.450 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 17:15:52.548 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 17:15:52.551 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 17:15:52.551 +02:00 INF Hosting environment: Development
][2022-06-24 17:15:52.551 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-24 17:15:55.173 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-24 17:15:55.231 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:15:55.240 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-24 17:15:55.246 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 1.4603ms
][2022-06-24 17:15:55.246 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:15:55.279 +02:00 ERR Unable to resolve service for type 'Diligent.WebAPI.Business.MongoServices.InsuranceCompanyService' while attempting to activate 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController'.
][2022-06-24 17:15:55.291 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - - - 500 - application/json 120.2666ms
][2022-06-24 17:15:56.672 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-24 17:15:56.760 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-24 17:15:56.764 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-24 17:15:56.766 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.5402ms
][2022-06-24 17:15:56.770 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 98.3309ms
][2022-06-24 17:15:56.783 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 22.4032ms
][2022-06-24 17:15:56.971 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-24 17:15:57.054 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 82.5289ms
][2022-06-24 17:16:02.082 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-24 17:16:02.083 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:16:02.083 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-24 17:16:02.084 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 0.5191ms
][2022-06-24 17:16:02.084 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:16:02.101 +02:00 ERR Unable to resolve service for type 'Diligent.WebAPI.Business.MongoServices.InsuranceCompanyService' while attempting to activate 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController'.
][2022-06-24 17:16:02.101 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - - - 500 - application/json 18.7213ms
][2022-06-24 17:17:47.359 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:17:47.429 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:17:47.573 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:17:47.845 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 17:17:47.867 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 17:17:47.886 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 17:17:47.979 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 17:17:47.982 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 17:17:47.982 +02:00 INF Hosting environment: Development
][2022-06-24 17:17:47.982 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-24 17:17:50.478 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-24 17:17:50.622 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-24 17:17:50.624 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-24 17:17:50.628 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.7075ms
][2022-06-24 17:17:50.628 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 154.1987ms
][2022-06-24 17:17:50.651 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 29.2245ms
][2022-06-24 17:17:50.828 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-24 17:17:50.914 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 85.9799ms
][2022-06-24 17:17:55.642 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-24 17:17:55.654 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:17:55.664 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-24 17:20:13.116 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:20:13.181 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:20:13.301 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:20:13.581 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 17:20:13.603 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 17:20:13.624 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 17:20:13.732 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 17:20:13.735 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 17:20:13.736 +02:00 INF Hosting environment: Development
][2022-06-24 17:20:13.736 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-24 17:20:15.420 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-24 17:20:15.564 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-24 17:20:15.564 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-24 17:20:15.566 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.6247ms
][2022-06-24 17:20:15.567 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 149.6313ms
][2022-06-24 17:20:15.586 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 21.8533ms
][2022-06-24 17:20:15.759 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-24 17:20:15.839 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 80.8115ms
][2022-06-24 17:20:20.372 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
][2022-06-24 17:20:20.382 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
][2022-06-24 17:20:20.392 +02:00 INF Route matched with {action = "GetInsuranceCompanies", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO]]] GetInsuranceCompanies() on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
][2022-06-24 17:20:20.508 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:20:20.725 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
FROM [InsuranceCompanies] AS [i]
][2022-06-24 17:20:20.807 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-24 17:20:20.822 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 426.6629ms
][2022-06-24 17:20:20.823 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
][2022-06-24 17:20:20.826 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - - - 200 - application/json;+charset=utf-8 453.4390ms
][2022-06-24 17:20:30.415 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-24 17:20:30.419 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:20:30.421 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-24 17:22:49.086 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:22:49.150 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:22:49.274 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:22:49.536 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 17:22:49.558 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 17:22:49.577 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 17:22:49.667 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 17:22:49.670 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 17:22:49.670 +02:00 INF Hosting environment: Development
][2022-06-24 17:22:49.670 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-24 17:23:19.304 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/api/mongo/InsuranceCompany application/json 190
][2022-06-24 17:23:19.347 +02:00 INF CORS policy execution failed.
][2022-06-24 17:23:19.347 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-06-24 17:23:19.364 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-06-24 17:23:19.380 +02:00 INF Route matched with {action = "Post", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Post(Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyCreateDTO) on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-24 17:24:33.284 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:24:33.350 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:24:33.475 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:24:33.749 +02:00 INF Executed DbCommand (17ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 17:24:33.775 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 17:24:33.795 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 17:24:33.884 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 17:24:33.887 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 17:24:33.887 +02:00 INF Hosting environment: Development
][2022-06-24 17:24:33.887 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-24 17:24:37.215 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/api/mongo/InsuranceCompany application/json 190
][2022-06-24 17:24:37.260 +02:00 INF CORS policy execution failed.
][2022-06-24 17:24:37.260 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-06-24 17:24:37.271 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-06-24 17:24:37.287 +02:00 INF Route matched with {action = "Post", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Post(Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyCreateDTO) on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-24 17:26:42.471 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:26:42.547 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:26:42.688 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:26:42.955 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 17:26:42.979 +02:00 INF Executed DbCommand (14ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 17:26:42.999 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 17:26:43.092 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 17:26:43.095 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 17:26:43.095 +02:00 INF Hosting environment: Development
][2022-06-24 17:26:43.095 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-24 17:26:47.324 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-24 17:26:47.465 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-24 17:26:47.468 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-24 17:26:47.470 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.6574ms
][2022-06-24 17:26:47.481 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 160.0609ms
][2022-06-24 17:26:47.491 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 26.0504ms
][2022-06-24 17:26:47.688 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-24 17:26:47.777 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 89.0339ms
][2022-06-24 17:26:52.216 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-24 17:26:52.231 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:26:52.241 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-24 17:27:47.428 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:27:47.495 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:27:47.671 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:27:47.960 +02:00 INF Executed DbCommand (18ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 17:27:47.983 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 17:27:48.003 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 17:27:48.096 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 17:27:48.099 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 17:27:48.099 +02:00 INF Hosting environment: Development
][2022-06-24 17:27:48.099 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-24 17:27:49.493 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-24 17:27:49.550 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:27:49.559 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-24 17:31:08.310 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:31:08.375 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:31:08.506 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:31:08.794 +02:00 INF Executed DbCommand (17ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 17:31:08.816 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 17:31:08.835 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 17:31:08.927 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 17:31:08.929 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 17:31:08.930 +02:00 INF Hosting environment: Development
][2022-06-24 17:31:08.930 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-24 17:31:11.449 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-24 17:31:11.597 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-24 17:31:11.597 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-24 17:31:11.599 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.5841ms
][2022-06-24 17:31:11.602 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 156.3960ms
][2022-06-24 17:31:11.622 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 25.1071ms
][2022-06-24 17:31:11.818 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-24 17:31:11.903 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 85.5291ms
][2022-06-24 17:31:15.017 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-24 17:31:15.030 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:31:15.041 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-24 17:31:15.609 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-24 17:31:15.623 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 577.931ms
][2022-06-24 17:31:15.623 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:31:15.623 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - - - 200 - application/json;+charset=utf-8 606.7502ms
][2022-06-24 17:33:41.286 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:33:41.354 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:33:41.480 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:33:41.745 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 17:33:41.768 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 17:33:41.788 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 17:33:41.880 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 17:33:41.882 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 17:33:41.883 +02:00 INF Hosting environment: Development
][2022-06-24 17:33:41.883 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-24 17:33:54.302 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurancePolicies - -
][2022-06-24 17:33:54.351 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicies (Diligent.WebAPI.Host)'
][2022-06-24 17:33:54.361 +02:00 INF Route matched with {action = "GetInsurancePolicies", controller = "InsurancePolicies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsurancePolicyDTOs.InsurancePolicyReadDTO]]] GetInsurancePolicies() on controller Diligent.WebAPI.Host.Controllers.InsurancePoliciesController (Diligent.WebAPI.Host).
][2022-06-24 17:33:54.455 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:33:54.715 +02:00 INF Executed DbCommand (10ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [i].[Id], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[EndDate], [i].[InsurerId], [i].[Premium], [i].[StartDate], [i].[Type], [i].[UpdatedAtUtc], [i0].[Id], [i0].[Address], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DateOfBirth], [i0].[DeletedAtUtc], [i0].[Email], [i0].[FirstName], [i0].[InsuranceCompanyId], [i0].[LastName], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc], [i1].[Id], [i1].[City], [i1].[Country], [i1].[CreatedAtUtc], [i1].[DeletedAtUtc], [i1].[Fax], [i1].[LegalAddress], [i1].[LegalEmail], [i1].[Name], [i1].[PhoneNumber], [i1].[PostalCode], [i1].[UpdatedAtUtc]
FROM [InsurancePolicies] AS [i]
INNER JOIN [Insurers] AS [i0] ON [i].[InsurerId] = [i0].[Id]
INNER JOIN [InsuranceCompanies] AS [i1] ON [i0].[InsuranceCompanyId] = [i1].[Id]
][2022-06-24 17:33:54.832 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsurancePolicyDTOs.InsurancePolicyReadDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-24 17:33:54.871 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicies (Diligent.WebAPI.Host) in 505.2264ms
][2022-06-24 17:33:54.871 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicies (Diligent.WebAPI.Host)'
][2022-06-24 17:33:54.876 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurancePolicies - - - 200 - application/json;+charset=utf-8 576.1520ms
][2022-06-24 17:36:52.745 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:36:52.810 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:36:52.939 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:36:53.202 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 17:36:53.223 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 17:36:53.242 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 17:36:53.334 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 17:36:53.336 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 17:36:53.336 +02:00 INF Hosting environment: Development
][2022-06-24 17:36:53.337 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-24 17:37:12.297 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insurancePolicies - -
][2022-06-24 17:37:12.347 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicies (Diligent.WebAPI.Host)'
][2022-06-24 17:37:12.357 +02:00 INF Route matched with {action = "GetInsurancePolicies", controller = "InsurancePolicies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsurancePolicyDTOs.InsurancePolicyReadDTO]]] GetInsurancePolicies() on controller Diligent.WebAPI.Host.Controllers.InsurancePoliciesController (Diligent.WebAPI.Host).
][2022-06-24 17:37:12.456 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:37:12.751 +02:00 INF Executed DbCommand (10ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [i].[Id], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[EndDate], [i].[InsurerId], [i].[Premium], [i].[StartDate], [i].[Type], [i].[UpdatedAtUtc], [i0].[Id], [i0].[Address], [i0].[City], [i0].[Country], [i0].[CreatedAtUtc], [i0].[DateOfBirth], [i0].[DeletedAtUtc], [i0].[Email], [i0].[FirstName], [i0].[InsuranceCompanyId], [i0].[LastName], [i0].[PhoneNumber], [i0].[PostalCode], [i0].[UpdatedAtUtc], [i1].[Id], [i1].[City], [i1].[Country], [i1].[CreatedAtUtc], [i1].[DeletedAtUtc], [i1].[Fax], [i1].[LegalAddress], [i1].[LegalEmail], [i1].[Name], [i1].[PhoneNumber], [i1].[PostalCode], [i1].[UpdatedAtUtc]
FROM [InsurancePolicies] AS [i]
INNER JOIN [Insurers] AS [i0] ON [i].[InsurerId] = [i0].[Id]
INNER JOIN [InsuranceCompanies] AS [i1] ON [i0].[InsuranceCompanyId] = [i1].[Id]
][2022-06-24 17:37:12.875 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsurancePolicyDTOs.InsurancePolicyReadDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-24 17:37:12.917 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicies (Diligent.WebAPI.Host) in 554.1451ms
][2022-06-24 17:37:12.918 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsurancePoliciesController.GetInsurancePolicies (Diligent.WebAPI.Host)'
][2022-06-24 17:37:12.923 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insurancePolicies - - - 200 - application/json;+charset=utf-8 628.7860ms
][2022-06-24 17:43:54.062 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:43:54.144 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:43:54.282 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:43:54.574 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 17:43:54.598 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 17:43:54.619 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 17:43:54.717 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 17:43:54.720 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 17:43:54.720 +02:00 INF Hosting environment: Development
][2022-06-24 17:43:54.720 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-24 17:43:58.648 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-24 17:43:58.841 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-24 17:43:58.841 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-24 17:43:58.846 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 2.8862ms
][2022-06-24 17:43:58.846 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 199.9016ms
][2022-06-24 17:43:58.870 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 28.3409ms
][2022-06-24 17:43:58.971 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-24 17:43:59.057 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 85.5425ms
][2022-06-24 17:44:05.196 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-24 17:44:05.208 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:44:05.217 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-24 17:44:05.670 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-24 17:44:05.685 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 463.1138ms
][2022-06-24 17:44:05.685 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:44:05.685 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - - - 200 - application/json;+charset=utf-8 488.8873ms
][2022-06-24 17:44:15.713 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany/62a08b3500432c683a4b58d4 - -
][2022-06-24 17:44:15.714 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:44:15.728 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get(System.String) on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-24 17:44:15.776 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO'.
][2022-06-24 17:44:15.776 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 47.8866ms
][2022-06-24 17:44:15.776 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:44:15.776 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany/62a08b3500432c683a4b58d4 - - - 200 - application/json;+charset=utf-8 63.3898ms
][2022-06-24 17:44:21.833 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany/62a08b3500432c683a4b58d5 - -
][2022-06-24 17:44:21.834 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:44:21.834 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get(System.String) on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-24 17:44:21.903 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 69.4007ms
][2022-06-24 17:44:21.904 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:44:21.996 +02:00 ERR Company not found
][2022-06-24 17:44:21.997 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany/62a08b3500432c683a4b58d5 - - - 404 - application/json 163.4194ms
][2022-06-24 17:57:44.044 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-24 17:57:44.109 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-24 17:57:44.263 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-24 17:57:44.533 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-24 17:57:44.555 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-24 17:57:44.580 +02:00 INF Executed DbCommand (4ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-24 17:57:44.674 +02:00 INF Now listening on: http://localhost:5116
][2022-06-24 17:57:44.677 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-24 17:57:44.677 +02:00 INF Hosting environment: Development
][2022-06-24 17:57:44.677 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-24 17:57:55.123 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany/62a08b3500432c683a4b58d4 - -
][2022-06-24 17:57:55.182 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:57:55.199 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get(System.String) on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-24 17:57:55.671 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO'.
][2022-06-24 17:57:55.695 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 491.1608ms
][2022-06-24 17:57:55.695 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-24 17:57:55.698 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany/62a08b3500432c683a4b58d4 - - - 200 - application/json;+charset=utf-8 576.4886ms
]

+ 0
- 782
Backend/Diligent.WebAPI.Host/Logging/webapi-20220627.log Целия файл

@@ -1,782 +0,0 @@
[2022-06-27 11:25:06.196 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 11:25:06.289 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 11:25:06.453 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 11:25:07.405 +02:00 INF Executed DbCommand (19ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 11:25:07.428 +02:00 INF Executed DbCommand (14ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 11:25:07.451 +02:00 INF Executed DbCommand (4ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 11:25:07.693 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 11:25:07.696 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 11:25:07.697 +02:00 INF Hosting environment: Development
][2022-06-27 11:25:07.697 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-27 11:25:08.775 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-27 11:25:08.970 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/swagger-ui.css - -
][2022-06-27 11:25:08.972 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/swagger-ui-bundle.js - -
][2022-06-27 11:25:08.973 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/swagger-ui-standalone-preset.js - -
][2022-06-27 11:25:08.977 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-27 11:25:08.985 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-27 11:25:09.001 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 17.4380ms
][2022-06-27 11:25:09.003 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 234.6542ms
][2022-06-27 11:25:09.007 +02:00 INF The file /swagger-ui-bundle.js was not modified
][2022-06-27 11:25:09.007 +02:00 INF The file /swagger-ui.css was not modified
][2022-06-27 11:25:09.007 +02:00 INF The file /swagger-ui-standalone-preset.js was not modified
][2022-06-27 11:25:09.008 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/swagger-ui.css - - - 304 - text/css 37.8672ms
][2022-06-27 11:25:09.008 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/swagger-ui-standalone-preset.js - - - 304 - application/javascript 35.3456ms
][2022-06-27 11:25:09.008 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/swagger-ui-bundle.js - - - 304 - application/javascript 35.6206ms
][2022-06-27 11:25:09.028 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 42.6425ms
][2022-06-27 11:25:09.197 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-27 11:25:09.342 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 145.0835ms
][2022-06-27 11:25:15.458 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-27 11:25:15.469 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 11:25:15.481 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-27 11:25:15.491 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 5.6267ms
][2022-06-27 11:25:15.492 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 11:25:15.524 +02:00 ERR Unable to resolve service for type 'Diligent.WebAPI.Business.MongoServices.InsuranceCompanyService' while attempting to activate 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController'.
][2022-06-27 11:25:15.525 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - - - 500 - application/json 66.7930ms
][2022-06-27 11:25:59.816 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 11:25:59.883 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 11:26:00.011 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 11:26:00.275 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 11:26:00.296 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 11:26:00.316 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 11:26:00.409 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 11:26:00.411 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 11:26:00.411 +02:00 INF Hosting environment: Development
][2022-06-27 11:26:00.411 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-27 11:26:02.276 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-27 11:26:02.335 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 11:26:02.344 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-27 11:26:02.349 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 1.398ms
][2022-06-27 11:26:02.350 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 11:26:02.382 +02:00 ERR Unable to resolve service for type 'Diligent.WebAPI.Business.MongoServices.InsuranceCompanyService' while attempting to activate 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController'.
][2022-06-27 11:26:02.394 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - - - 500 - application/json 120.3035ms
][2022-06-27 11:26:04.349 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-27 11:26:04.440 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-27 11:26:04.440 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-27 11:26:04.441 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.5192ms
][2022-06-27 11:26:04.442 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 93.3124ms
][2022-06-27 11:26:04.460 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 19.8877ms
][2022-06-27 11:26:04.640 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-27 11:26:04.649 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/favicon-32x32.png - -
][2022-06-27 11:26:04.654 +02:00 INF The file /favicon-32x32.png was not modified
][2022-06-27 11:26:04.654 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/favicon-32x32.png - - - 304 - image/png 5.5402ms
][2022-06-27 11:26:04.726 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 85.8981ms
][2022-06-27 11:26:19.501 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-27 11:26:19.502 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 11:26:19.502 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-27 11:26:19.503 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 0.5737ms
][2022-06-27 11:26:19.503 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 11:26:19.520 +02:00 ERR Unable to resolve service for type 'Diligent.WebAPI.Business.MongoServices.InsuranceCompanyService' while attempting to activate 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController'.
][2022-06-27 11:26:19.520 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - - - 500 - application/json 18.7660ms
][2022-06-27 11:26:46.061 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 11:26:46.138 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 11:26:46.267 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 11:26:46.526 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 11:26:46.548 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 11:26:46.568 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 11:26:46.669 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 11:26:46.672 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 11:26:46.673 +02:00 INF Hosting environment: Development
][2022-06-27 11:26:46.673 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-27 11:26:48.026 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-27 11:26:48.168 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-27 11:26:48.171 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-27 11:26:48.180 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 156.3908ms
][2022-06-27 11:26:48.180 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.6661ms
][2022-06-27 11:26:48.190 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 21.4237ms
][2022-06-27 11:26:48.268 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-27 11:26:48.353 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 84.4292ms
][2022-06-27 11:26:52.991 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/api/mongo/InsuranceCompany application/json 191
][2022-06-27 11:26:53.000 +02:00 INF CORS policy execution failed.
][2022-06-27 11:26:53.000 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-06-27 11:26:53.004 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-06-27 11:26:53.024 +02:00 INF Route matched with {action = "Post", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Post(Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyCreateDTO) on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-27 11:26:53.717 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host) in 689.3592ms
][2022-06-27 11:26:53.718 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-06-27 11:26:53.734 +02:00 ERR Missing type map configuration or unsupported mapping.

Mapping types:
InsuranceCompanyCreateDTO -> InsuranceCompanyMongo
Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyCreateDTO -> Diligent.WebAPI.Data.Entities.InsuranceCompanyMongo
][2022-06-27 11:26:53.737 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/api/mongo/InsuranceCompany application/json 191 - 500 - application/json 746.5708ms
][2022-06-27 11:27:01.908 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-27 11:27:01.909 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 11:27:01.912 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-27 11:27:02.097 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-27 11:27:02.105 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 193.4582ms
][2022-06-27 11:27:02.106 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 11:27:02.106 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - - - 200 - application/json;+charset=utf-8 197.7124ms
][2022-06-27 11:27:24.554 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/api/mongo/InsuranceCompany application/json 191
][2022-06-27 11:27:24.554 +02:00 INF CORS policy execution failed.
][2022-06-27 11:27:24.554 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-06-27 11:27:24.554 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-06-27 11:27:24.554 +02:00 INF Route matched with {action = "Post", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Post(Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyCreateDTO) on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-27 11:27:24.581 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host) in 26.6685ms
][2022-06-27 11:27:24.581 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-06-27 11:27:24.594 +02:00 ERR Missing type map configuration or unsupported mapping.

Mapping types:
InsuranceCompanyCreateDTO -> InsuranceCompanyMongo
Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyCreateDTO -> Diligent.WebAPI.Data.Entities.InsuranceCompanyMongo
][2022-06-27 11:27:24.594 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/api/mongo/InsuranceCompany application/json 191 - 500 - application/json 40.3012ms
][2022-06-27 11:28:33.512 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 11:28:33.578 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 11:28:33.700 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 11:28:33.962 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 11:28:33.984 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 11:28:34.005 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 11:28:34.096 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 11:28:34.098 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 11:28:34.098 +02:00 INF Hosting environment: Development
][2022-06-27 11:28:34.098 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-27 11:28:41.922 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/api/mongo/InsuranceCompany application/json 191
][2022-06-27 11:28:41.967 +02:00 INF CORS policy execution failed.
][2022-06-27 11:28:41.967 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-06-27 11:28:41.978 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-06-27 11:28:41.994 +02:00 INF Route matched with {action = "Post", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Post(Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyCreateDTO) on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-27 11:28:42.407 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host) in 408.4889ms
][2022-06-27 11:28:42.408 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-06-27 11:28:42.427 +02:00 ERR Missing type map configuration or unsupported mapping.

Mapping types:
InsuranceCompanyCreateDTO -> InsuranceCompanyMongo
Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyCreateDTO -> Diligent.WebAPI.Data.Entities.InsuranceCompanyMongo
][2022-06-27 11:28:42.435 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/api/mongo/InsuranceCompany application/json 191 - 500 - application/json 515.5680ms
][2022-06-27 11:28:53.418 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/api/mongo/InsuranceCompany application/json 191
][2022-06-27 11:28:53.419 +02:00 INF CORS policy execution failed.
][2022-06-27 11:28:53.419 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-06-27 11:28:53.419 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-06-27 11:28:53.420 +02:00 INF Route matched with {action = "Post", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Post(Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyCreateDTO) on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-27 11:28:53.449 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host) in 29.1027ms
][2022-06-27 11:28:53.449 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-06-27 11:28:53.462 +02:00 ERR Missing type map configuration or unsupported mapping.

Mapping types:
InsuranceCompanyCreateDTO -> InsuranceCompanyMongo
Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyCreateDTO -> Diligent.WebAPI.Data.Entities.InsuranceCompanyMongo
][2022-06-27 11:28:53.463 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/api/mongo/InsuranceCompany application/json 191 - 500 - application/json 44.4426ms
][2022-06-27 11:28:59.404 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-27 11:28:59.406 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 11:28:59.409 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-27 11:28:59.555 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-27 11:28:59.566 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 156.0753ms
][2022-06-27 11:28:59.566 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 11:28:59.567 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - - - 200 - application/json;+charset=utf-8 162.8128ms
][2022-06-27 11:30:01.989 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 11:30:02.059 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 11:30:02.196 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 11:30:02.457 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 11:30:02.478 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 11:30:02.497 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 11:30:02.590 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 11:30:02.593 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 11:30:02.593 +02:00 INF Hosting environment: Development
][2022-06-27 11:30:02.593 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-27 11:30:04.676 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-27 11:30:04.826 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-27 11:30:04.826 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-27 11:30:04.828 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.6214ms
][2022-06-27 11:30:04.830 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 156.4762ms
][2022-06-27 11:30:04.851 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 24.9562ms
][2022-06-27 11:30:04.927 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-27 11:30:05.015 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 88.6514ms
][2022-06-27 11:30:09.882 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - -
][2022-06-27 11:30:09.890 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
][2022-06-27 11:30:09.899 +02:00 INF Route matched with {action = "GetInsuranceCompanies", controller = "InsuranceCompanies"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO]]] GetInsuranceCompanies() on controller Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController (Diligent.WebAPI.Host).
][2022-06-27 11:30:09.997 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 11:30:10.198 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [i].[Id], [i].[City], [i].[Country], [i].[CreatedAtUtc], [i].[DeletedAtUtc], [i].[Fax], [i].[LegalAddress], [i].[LegalEmail], [i].[Name], [i].[PhoneNumber], [i].[PostalCode], [i].[UpdatedAtUtc]
FROM [InsuranceCompanies] AS [i]
][2022-06-27 11:30:10.277 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.DTOs.InsuranceCompanyDTOs.InsuranceCompanyReturnDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-27 11:30:10.292 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host) in 388.6367ms
][2022-06-27 11:30:10.293 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.InsuranceCompaniesController.GetInsuranceCompanies (Diligent.WebAPI.Host)'
][2022-06-27 11:30:10.296 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/insuranceCompanies - - - 200 - application/json;+charset=utf-8 413.8437ms
][2022-06-27 11:30:19.697 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-27 11:30:19.701 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 11:30:19.704 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-27 11:30:20.082 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyReadDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-27 11:30:20.084 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 380.2646ms
][2022-06-27 11:30:20.084 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 11:30:20.084 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - - - 200 - application/json;+charset=utf-8 386.8684ms
][2022-06-27 11:30:34.088 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/api/mongo/InsuranceCompany application/json 190
][2022-06-27 11:30:34.089 +02:00 INF CORS policy execution failed.
][2022-06-27 11:30:34.089 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-06-27 11:30:34.089 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-06-27 11:30:34.099 +02:00 INF Route matched with {action = "Post", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Post(Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyCreateDTO) on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-27 11:34:20.737 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 11:34:20.808 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 11:34:20.939 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 11:34:21.215 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 11:34:21.236 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 11:34:21.256 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 11:34:21.348 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 11:34:21.351 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 11:34:21.351 +02:00 INF Hosting environment: Development
][2022-06-27 11:34:21.351 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-27 11:34:24.618 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/api/mongo/InsuranceCompany application/json 190
][2022-06-27 11:34:24.661 +02:00 INF CORS policy execution failed.
][2022-06-27 11:34:24.661 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-06-27 11:34:24.673 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-06-27 11:34:24.689 +02:00 INF Route matched with {action = "Post", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Post(Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyCreateDTO) on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-27 11:34:25.185 +02:00 INF Executing CreatedAtActionResult, writing value of type 'Diligent.WebAPI.Data.Entities.InsuranceCompanyMongo'.
][2022-06-27 11:34:25.221 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host) in 527.9978ms
][2022-06-27 11:34:25.221 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-06-27 11:34:25.225 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/api/mongo/InsuranceCompany application/json 190 - 201 - application/json;+charset=utf-8 607.9117ms
][2022-06-27 12:00:13.457 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 12:00:13.547 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 12:00:13.726 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 12:00:14.072 +02:00 INF Executed DbCommand (21ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 12:00:14.100 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 12:00:14.127 +02:00 INF Executed DbCommand (4ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 12:00:14.264 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 12:00:14.268 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 12:00:14.268 +02:00 INF Hosting environment: Development
][2022-06-27 12:00:14.269 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-27 12:00:20.403 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-27 12:00:20.462 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 404 0 - 61.6722ms
][2022-06-27 12:02:31.048 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 12:02:31.119 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 12:02:31.249 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 12:02:31.515 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 12:02:31.536 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 12:02:31.555 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 12:02:31.648 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 12:02:31.650 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 12:02:31.650 +02:00 INF Hosting environment: Development
][2022-06-27 12:02:31.650 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-27 12:02:32.453 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-27 12:02:32.642 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-27 12:02:32.642 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-27 12:02:32.644 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.6776ms
][2022-06-27 12:02:32.651 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 203.1599ms
][2022-06-27 12:02:32.691 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 48.6140ms
][2022-06-27 12:02:32.748 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-27 12:02:32.835 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 86.9252ms
][2022-06-27 12:02:37.103 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-27 12:02:37.120 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 12:02:37.133 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-27 12:02:37.139 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 1.8905ms
][2022-06-27 12:02:37.140 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 12:02:37.171 +02:00 ERR Unable to resolve service for type 'Diligent.WebAPI.Business.MongoInterfaces.IInsuranceCompanyService' while attempting to activate 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController'.
][2022-06-27 12:02:37.172 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - - - 500 - application/json 68.6805ms
][2022-06-27 12:04:19.128 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 12:04:19.194 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 12:04:19.324 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 12:04:19.582 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 12:04:19.603 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 12:04:19.622 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 12:04:19.713 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 12:04:19.715 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 12:04:19.716 +02:00 INF Hosting environment: Development
][2022-06-27 12:04:19.716 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-27 12:04:28.139 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-27 12:04:28.198 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 12:04:28.207 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-27 12:04:28.645 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo.InsuranceCompanyReadDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-27 12:04:28.672 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 460.5414ms
][2022-06-27 12:04:28.673 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 12:04:28.675 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - - - 200 - application/json;+charset=utf-8 538.9848ms
][2022-06-27 12:20:13.620 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 12:20:13.685 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 12:20:13.808 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 12:20:14.072 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 12:20:14.093 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 12:20:14.114 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 12:21:45.831 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 12:21:45.903 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 12:21:46.029 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 12:21:46.292 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 12:21:46.314 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 12:21:46.335 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 12:21:46.446 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 12:21:46.450 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 12:21:46.450 +02:00 INF Hosting environment: Development
][2022-06-27 12:21:46.450 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-27 12:21:56.516 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-27 12:21:56.671 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-27 12:21:56.672 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-27 12:21:56.675 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 2.0612ms
][2022-06-27 12:21:56.676 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 163.0936ms
][2022-06-27 12:21:56.694 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 23.1088ms
][2022-06-27 12:21:56.863 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-27 12:21:56.950 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 86.9868ms
][2022-06-27 12:22:22.169 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsurancePolicy - -
][2022-06-27 12:22:22.183 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 12:22:22.192 +02:00 INF Route matched with {action = "Get", controller = "InsurancePolicy"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo.InsurancePolicyReturnDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController (Diligent.WebAPI.Host).
][2022-06-27 12:22:22.656 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo.InsurancePolicyReturnDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-27 12:22:22.667 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host) in 470.9895ms
][2022-06-27 12:22:22.668 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 12:22:22.668 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsurancePolicy - - - 200 - application/json;+charset=utf-8 498.5544ms
][2022-06-27 12:22:59.150 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/api/mongo/InsurancePolicy application/json 129
][2022-06-27 12:22:59.152 +02:00 INF CORS policy execution failed.
][2022-06-27 12:22:59.152 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-06-27 12:22:59.152 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Post (Diligent.WebAPI.Host)'
][2022-06-27 12:22:59.162 +02:00 INF Route matched with {action = "Post", controller = "InsurancePolicy"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Post(Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo.InsurancePolicySaveDTO) on controller Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController (Diligent.WebAPI.Host).
][2022-06-27 12:22:59.272 +02:00 INF Executing CreatedAtActionResult, writing value of type 'Diligent.WebAPI.Data.Entities.InsurancePolicyMongo'.
][2022-06-27 12:22:59.296 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Post (Diligent.WebAPI.Host) in 133.4338ms
][2022-06-27 12:22:59.296 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Post (Diligent.WebAPI.Host)'
][2022-06-27 12:22:59.296 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/api/mongo/InsurancePolicy application/json 129 - 201 - application/json;+charset=utf-8 146.2905ms
][2022-06-27 12:23:06.219 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsurancePolicy - -
][2022-06-27 12:23:06.220 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 12:23:06.220 +02:00 INF Route matched with {action = "Get", controller = "InsurancePolicy"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo.InsurancePolicyReturnDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController (Diligent.WebAPI.Host).
][2022-06-27 12:23:06.235 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo.InsurancePolicyReturnDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-27 12:23:06.236 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host) in 16.6202ms
][2022-06-27 12:23:06.237 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 12:23:06.237 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsurancePolicy - - - 200 - application/json;+charset=utf-8 17.2727ms
][2022-06-27 13:04:40.028 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 13:04:40.148 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 13:04:40.359 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 13:04:40.765 +02:00 INF Executed DbCommand (19ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 13:04:40.791 +02:00 INF Executed DbCommand (14ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 13:04:40.812 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 13:04:40.931 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 13:04:40.935 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 13:04:40.935 +02:00 INF Hosting environment: Development
][2022-06-27 13:04:40.935 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-27 13:05:16.671 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-27 13:05:16.879 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-27 13:05:16.879 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-27 13:05:16.894 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 2.5707ms
][2022-06-27 13:05:16.894 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 225.9642ms
][2022-06-27 13:05:16.928 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 49.4323ms
][2022-06-27 13:05:17.076 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-27 13:05:17.162 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 86.2964ms
][2022-06-27 13:05:23.406 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - -
][2022-06-27 13:05:23.420 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 13:05:23.430 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-06-27 13:05:23.875 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo.InsuranceCompanyReadDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-27 13:05:23.888 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host) in 453.942ms
][2022-06-27 13:05:23.889 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 13:05:23.889 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsuranceCompany - - - 200 - application/json;+charset=utf-8 482.8029ms
][2022-06-27 13:05:31.752 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsurancePolicy - -
][2022-06-27 13:05:31.753 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 13:05:31.756 +02:00 INF Route matched with {action = "Get", controller = "InsurancePolicy"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo.InsurancePolicyReturnDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController (Diligent.WebAPI.Host).
][2022-06-27 13:05:31.775 +02:00 INF Executing ObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo.InsurancePolicyReturnDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-27 13:05:31.779 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host) in 22.9468ms
][2022-06-27 13:05:31.779 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 13:05:31.779 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsurancePolicy - - - 200 - application/json;+charset=utf-8 27.0864ms
][2022-06-27 13:05:48.723 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsurancePolicy/62b98503ee06738fcb31f21b - -
][2022-06-27 13:05:48.723 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 13:05:48.733 +02:00 INF Route matched with {action = "Get", controller = "InsurancePolicy"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo.InsurancePolicyReturnDTO]] Get(System.String) on controller Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController (Diligent.WebAPI.Host).
][2022-06-27 13:05:48.768 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo.InsurancePolicyReturnDTO'.
][2022-06-27 13:05:48.768 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host) in 34.8271ms
][2022-06-27 13:05:48.768 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 13:05:48.769 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsurancePolicy/62b98503ee06738fcb31f21b - - - 200 - application/json;+charset=utf-8 45.6989ms
][2022-06-27 13:06:19.173 +02:00 INF Request starting HTTP/1.1 PUT http://localhost:5116/api/mongo/InsurancePolicy/62b98503ee06738fcb31f21b application/json 257
][2022-06-27 13:06:19.176 +02:00 INF CORS policy execution failed.
][2022-06-27 13:06:19.176 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-06-27 13:06:19.176 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Update (Diligent.WebAPI.Host)'
][2022-06-27 13:06:19.179 +02:00 INF Route matched with {action = "Update", controller = "InsurancePolicy"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Update(System.String, Diligent.WebAPI.Data.Entities.InsurancePolicyMongo) on controller Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController (Diligent.WebAPI.Host).
][2022-06-27 13:06:19.259 +02:00 INF Executing StatusCodeResult, setting HTTP status code 200
][2022-06-27 13:06:19.259 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Update (Diligent.WebAPI.Host) in 80.0514ms
][2022-06-27 13:06:19.259 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Update (Diligent.WebAPI.Host)'
][2022-06-27 13:06:19.260 +02:00 INF Request finished HTTP/1.1 PUT http://localhost:5116/api/mongo/InsurancePolicy/62b98503ee06738fcb31f21b application/json 257 - 200 0 - 86.3501ms
][2022-06-27 13:06:31.659 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsurancePolicy/62b98503ee06738fcb31f21b - -
][2022-06-27 13:06:31.660 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 13:06:31.660 +02:00 INF Route matched with {action = "Get", controller = "InsurancePolicy"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo.InsurancePolicyReturnDTO]] Get(System.String) on controller Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController (Diligent.WebAPI.Host).
][2022-06-27 13:06:31.666 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo.InsurancePolicyReturnDTO'.
][2022-06-27 13:06:31.666 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host) in 6.0543ms
][2022-06-27 13:06:31.666 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 13:06:31.666 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsurancePolicy/62b98503ee06738fcb31f21b - - - 200 - application/json;+charset=utf-8 6.7048ms
][2022-06-27 13:06:40.732 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/api/mongo/InsurancePolicy/62b98503ee06738fcb31f21b - -
][2022-06-27 13:06:40.733 +02:00 INF CORS policy execution failed.
][2022-06-27 13:06:40.733 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-06-27 13:06:40.733 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Delete (Diligent.WebAPI.Host)'
][2022-06-27 13:06:40.735 +02:00 INF Route matched with {action = "Delete", controller = "InsurancePolicy"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Delete(System.String) on controller Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController (Diligent.WebAPI.Host).
][2022-06-27 13:06:40.748 +02:00 INF Executing StatusCodeResult, setting HTTP status code 200
][2022-06-27 13:06:40.748 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Delete (Diligent.WebAPI.Host) in 13.0681ms
][2022-06-27 13:06:40.748 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Delete (Diligent.WebAPI.Host)'
][2022-06-27 13:06:40.749 +02:00 INF Request finished HTTP/1.1 DELETE http://localhost:5116/api/mongo/InsurancePolicy/62b98503ee06738fcb31f21b - - - 200 0 - 16.1373ms
][2022-06-27 13:06:49.882 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/InsurancePolicy/62b98503ee06738fcb31f21b - -
][2022-06-27 13:06:49.883 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 13:06:49.883 +02:00 INF Route matched with {action = "Get", controller = "InsurancePolicy"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo.InsurancePolicyReturnDTO]] Get(System.String) on controller Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController (Diligent.WebAPI.Host).
][2022-06-27 13:06:49.948 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host) in 64.8814ms
][2022-06-27 13:06:49.948 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsurancePolicyController.Get (Diligent.WebAPI.Host)'
][2022-06-27 13:06:50.033 +02:00 ERR Company not found
][2022-06-27 13:06:50.034 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/InsurancePolicy/62b98503ee06738fcb31f21b - - - 404 - application/json 151.2894ms
][2022-06-27 13:14:45.899 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 13:14:45.965 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 13:14:46.090 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 13:14:46.361 +02:00 INF Executed DbCommand (17ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 13:14:46.385 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 13:14:46.411 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 13:14:46.525 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 13:14:46.528 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 13:14:46.529 +02:00 INF Hosting environment: Development
][2022-06-27 13:14:46.529 +02:00 INF Content root path: C:\Users\meris.ahmatovic\Desktop\06242022\Diligent.WebAPI.Host\
][2022-06-27 14:23:45.917 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 14:23:45.988 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 14:23:46.119 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 14:23:46.391 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 14:23:46.412 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 14:23:46.433 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 14:23:46.512 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 14:23:46.515 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 14:23:46.515 +02:00 INF Hosting environment: Development
][2022-06-27 14:23:46.515 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-06-27 14:23:51.924 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-27 14:23:51.976 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 404 0 - 55.0042ms
][2022-06-27 14:25:47.118 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 14:25:47.185 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 14:25:47.315 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 14:25:47.594 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 14:25:47.615 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 14:25:47.635 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 14:25:47.745 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 14:25:47.748 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 14:25:47.748 +02:00 INF Hosting environment: Development
][2022-06-27 14:25:47.748 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-06-27 14:25:49.123 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-27 14:25:49.278 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-27 14:25:49.281 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-27 14:25:49.284 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 164.7467ms
][2022-06-27 14:25:49.284 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 2.1146ms
][2022-06-27 14:25:49.304 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 25.8120ms
][2022-06-27 14:25:49.498 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-27 14:25:49.590 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 91.4483ms
][2022-06-27 14:25:56.080 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - -
][2022-06-27 14:25:56.092 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:25:56.101 +02:00 INF Route matched with {action = "GetAll", controller = "Insurer"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsurerMongo.InsurerReturnDTO]] GetAll() on controller Diligent.WebAPI.Host.MongoController.InsurerController (Diligent.WebAPI.Host).
][2022-06-27 14:25:56.679 +02:00 INF Executed action Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host) in 573.4077ms
][2022-06-27 14:25:56.680 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:25:56.779 +02:00 ERR An error occurred while deserializing the CreatedAtUtc property of class Diligent.WebAPI.Data.Entities.BaseMongo: Cannot deserialize a 'DateTime' from BsonType 'Null'.
][2022-06-27 14:25:56.782 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - - - 500 - application/json 701.7839ms
][2022-06-27 14:26:21.384 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 14:26:21.449 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 14:26:21.574 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 14:26:21.839 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 14:26:21.860 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 14:26:21.880 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 14:26:21.971 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 14:26:21.973 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 14:26:21.973 +02:00 INF Hosting environment: Development
][2022-06-27 14:26:21.974 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-06-27 14:26:23.454 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - -
][2022-06-27 14:26:23.514 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:26:23.525 +02:00 INF Route matched with {action = "GetAll", controller = "Insurer"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsurerMongo.InsurerReturnDTO]] GetAll() on controller Diligent.WebAPI.Host.MongoController.InsurerController (Diligent.WebAPI.Host).
][2022-06-27 14:26:24.089 +02:00 INF Executed action Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host) in 558.7317ms
][2022-06-27 14:26:24.090 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:26:24.203 +02:00 ERR Element 'Name' does not match any field or property of class Diligent.WebAPI.Data.Entities.InsurerMongo.
][2022-06-27 14:26:24.218 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - - - 500 - application/json 766.5954ms
][2022-06-27 14:28:33.693 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 14:28:33.758 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 14:28:33.878 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 14:28:34.149 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 14:28:34.172 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 14:28:34.192 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 14:28:34.283 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 14:28:34.286 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 14:28:34.286 +02:00 INF Hosting environment: Development
][2022-06-27 14:28:34.286 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-06-27 14:28:36.985 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - -
][2022-06-27 14:28:37.042 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:28:37.052 +02:00 INF Route matched with {action = "GetAll", controller = "Insurer"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsurerMongo.InsurerReturnDTO]] GetAll() on controller Diligent.WebAPI.Host.MongoController.InsurerController (Diligent.WebAPI.Host).
][2022-06-27 14:28:37.654 +02:00 INF Executed action Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host) in 596.7514ms
][2022-06-27 14:28:37.656 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:28:37.769 +02:00 ERR Element 'Name' does not match any field or property of class Diligent.WebAPI.Data.Entities.InsurerMongo.
][2022-06-27 14:28:37.784 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - - - 500 - application/json 801.8663ms
][2022-06-27 14:43:36.916 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 14:43:36.982 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 14:43:37.109 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 14:43:37.400 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 14:43:37.422 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 14:43:37.441 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 14:43:37.561 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 14:43:37.564 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 14:43:37.564 +02:00 INF Hosting environment: Development
][2022-06-27 14:43:37.564 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-06-27 14:43:37.659 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-27 14:43:37.819 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-27 14:43:37.819 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-27 14:43:37.821 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.7060ms
][2022-06-27 14:43:37.821 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 164.1997ms
][2022-06-27 14:43:37.840 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 21.6868ms
][2022-06-27 14:43:38.016 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-27 14:43:38.104 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 87.8861ms
][2022-06-27 14:43:45.840 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/api/mongo/Insurer application/json 236
][2022-06-27 14:43:45.853 +02:00 INF CORS policy execution failed.
][2022-06-27 14:43:45.853 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-06-27 14:43:45.856 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.Post (Diligent.WebAPI.Host)'
][2022-06-27 14:43:45.875 +02:00 INF Route matched with {action = "Post", controller = "Insurer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Post(Diligent.WebAPI.Host.MongoDTOs.InsurerMongo.InsurerSaveDTO) on controller Diligent.WebAPI.Host.MongoController.InsurerController (Diligent.WebAPI.Host).
][2022-06-27 14:43:46.337 +02:00 INF Executing CreatedAtActionResult, writing value of type 'Diligent.WebAPI.Data.Entities.InsurerMongo'.
][2022-06-27 14:43:46.367 +02:00 INF Executed action Diligent.WebAPI.Host.MongoController.InsurerController.Post (Diligent.WebAPI.Host) in 487.9136ms
][2022-06-27 14:43:46.367 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.Post (Diligent.WebAPI.Host)'
][2022-06-27 14:43:46.367 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/api/mongo/Insurer application/json 236 - 201 - application/json;+charset=utf-8 527.5421ms
][2022-06-27 14:43:52.835 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - -
][2022-06-27 14:43:52.836 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:43:52.839 +02:00 INF Route matched with {action = "GetAll", controller = "Insurer"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsurerMongo.InsurerReturnDTO]] GetAll() on controller Diligent.WebAPI.Host.MongoController.InsurerController (Diligent.WebAPI.Host).
][2022-06-27 14:43:52.996 +02:00 INF Executed action Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host) in 156.5502ms
][2022-06-27 14:43:52.996 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:43:53.085 +02:00 ERR Element 'Name' does not match any field or property of class Diligent.WebAPI.Data.Entities.InsurerMongo.
][2022-06-27 14:43:53.086 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - - - 500 - application/json 251.6865ms
][2022-06-27 14:45:55.968 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 14:45:56.035 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 14:45:56.166 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 14:45:56.431 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 14:45:56.453 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 14:45:56.473 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 14:45:56.562 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 14:45:56.565 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 14:45:56.565 +02:00 INF Hosting environment: Development
][2022-06-27 14:45:56.565 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-06-27 14:46:05.637 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer/62b9a602503b9180da18e537 - -
][2022-06-27 14:46:05.694 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.Get (Diligent.WebAPI.Host)'
][2022-06-27 14:46:05.710 +02:00 INF Route matched with {action = "Get", controller = "Insurer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.MongoDTOs.InsurerMongo.InsurerReturnDTO]] Get(System.String) on controller Diligent.WebAPI.Host.MongoController.InsurerController (Diligent.WebAPI.Host).
][2022-06-27 14:46:06.193 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.MongoDTOs.InsurerMongo.InsurerReturnDTO'.
][2022-06-27 14:46:06.217 +02:00 INF Executed action Diligent.WebAPI.Host.MongoController.InsurerController.Get (Diligent.WebAPI.Host) in 502.6632ms
][2022-06-27 14:46:06.217 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.Get (Diligent.WebAPI.Host)'
][2022-06-27 14:46:06.220 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer/62b9a602503b9180da18e537 - - - 200 - application/json;+charset=utf-8 585.5722ms
][2022-06-27 14:47:41.398 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 14:47:41.463 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 14:47:41.585 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 14:47:41.850 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 14:47:41.872 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 14:47:41.893 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 14:47:41.984 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 14:47:41.987 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 14:47:41.987 +02:00 INF Hosting environment: Development
][2022-06-27 14:47:41.987 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-06-27 14:47:44.528 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - -
][2022-06-27 14:47:44.587 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:47:44.596 +02:00 INF Route matched with {action = "GetAll", controller = "Insurer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.MongoController.InsurerController (Diligent.WebAPI.Host).
][2022-06-27 14:47:45.194 +02:00 INF Executed action Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host) in 594.3964ms
][2022-06-27 14:47:45.195 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:47:45.309 +02:00 ERR Element 'Name' does not match any field or property of class Diligent.WebAPI.Data.Entities.InsurerMongo.
][2022-06-27 14:47:45.326 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - - - 500 - application/json 800.5691ms
][2022-06-27 14:48:07.767 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 14:48:07.833 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 14:48:07.957 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 14:48:08.221 +02:00 INF Executed DbCommand (16ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 14:48:08.242 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 14:48:08.262 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 14:48:08.352 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 14:48:08.355 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 14:48:08.355 +02:00 INF Hosting environment: Development
][2022-06-27 14:48:08.355 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-06-27 14:48:09.960 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-27 14:48:10.106 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-27 14:48:10.107 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-27 14:48:10.111 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 2.8652ms
][2022-06-27 14:48:10.111 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 153.9964ms
][2022-06-27 14:48:10.134 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 27.8613ms
][2022-06-27 14:48:10.327 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-27 14:48:10.418 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 91.1987ms
][2022-06-27 14:48:16.997 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - -
][2022-06-27 14:48:17.008 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:48:17.018 +02:00 INF Route matched with {action = "GetAll", controller = "Insurer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.MongoController.InsurerController (Diligent.WebAPI.Host).
][2022-06-27 14:48:17.570 +02:00 INF Executed action Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host) in 547.7025ms
][2022-06-27 14:48:17.571 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:48:17.666 +02:00 ERR Element 'Name' does not match any field or property of class Diligent.WebAPI.Data.Entities.InsurerMongo.
][2022-06-27 14:48:17.670 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - - - 500 - application/json 672.6705ms
][2022-06-27 14:52:07.150 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 14:52:07.218 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 14:52:07.340 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 14:52:07.605 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 14:52:07.626 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 14:52:07.646 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 14:52:07.738 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 14:52:07.740 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 14:52:07.741 +02:00 INF Hosting environment: Development
][2022-06-27 14:52:07.741 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-06-27 14:52:11.339 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-27 14:52:11.488 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-27 14:52:11.488 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-27 14:52:11.503 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 5.1339ms
][2022-06-27 14:52:11.503 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 162.5287ms
][2022-06-27 14:52:11.518 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 29.2881ms
][2022-06-27 14:52:11.677 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-27 14:52:11.770 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 93.4585ms
][2022-06-27 14:52:32.737 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - -
][2022-06-27 14:52:32.748 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:52:32.757 +02:00 INF Route matched with {action = "GetAll", controller = "Insurer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.MongoController.InsurerController (Diligent.WebAPI.Host).
][2022-06-27 14:52:33.223 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Host.MongoDTOs.InsurerMongo.InsurerReturnDTO, Diligent.WebAPI.Host, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-06-27 14:52:33.233 +02:00 INF Executed action Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host) in 472.0872ms
][2022-06-27 14:52:33.233 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:52:33.233 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - - - 200 - application/json;+charset=utf-8 496.8518ms
][2022-06-27 14:53:37.096 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 14:53:37.161 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 14:53:37.283 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 14:53:37.545 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 14:53:37.567 +02:00 INF Executed DbCommand (13ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 14:53:37.587 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 14:53:37.698 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 14:53:37.702 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 14:53:37.702 +02:00 INF Hosting environment: Development
][2022-06-27 14:53:37.702 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-06-27 14:53:39.811 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-27 14:53:39.991 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-27 14:53:39.991 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-27 14:53:39.993 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 2.0065ms
][2022-06-27 14:53:39.993 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 184.6729ms
][2022-06-27 14:53:40.015 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 24.0854ms
][2022-06-27 14:53:40.206 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-27 14:53:40.310 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 104.0097ms
][2022-06-27 14:53:45.536 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - -
][2022-06-27 14:53:45.548 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:53:45.557 +02:00 INF Route matched with {action = "GetAll", controller = "Insurer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.MongoController.InsurerController (Diligent.WebAPI.Host).
][2022-06-27 14:53:46.112 +02:00 INF Executed action Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host) in 550.8538ms
][2022-06-27 14:53:46.113 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.GetAll (Diligent.WebAPI.Host)'
][2022-06-27 14:53:46.212 +02:00 ERR Element 'Name' does not match any field or property of class Diligent.WebAPI.Data.Entities.InsurerMongo.
][2022-06-27 14:53:46.216 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/api/mongo/Insurer - - - 500 - application/json 679.5518ms
][2022-06-27 15:46:19.812 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 15:46:19.878 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 15:46:20.010 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 15:46:20.711 +02:00 INF Executed DbCommand (15ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 15:46:20.732 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 15:46:20.751 +02:00 INF Executed DbCommand (3ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 15:46:20.958 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 15:46:20.960 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 15:46:20.961 +02:00 INF Hosting environment: Development
][2022-06-27 15:46:20.961 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-06-27 15:48:40.532 +02:00 WRN Sensitive data logging is enabled. Log entries and exception messages may include sensitive application data; this mode should only be enabled during development.
][2022-06-27 15:48:40.599 +02:00 WRN No store type was specified for the decimal property 'Premium' on entity type 'InsurancePolicy'. This will cause values to be silently truncated if they do not fit in the default precision and scale. Explicitly specify the SQL server column type that can accommodate all the values in 'OnModelCreating' using 'HasColumnType', specify precision and scale using 'HasPrecision', or configure a value converter using 'HasConversion'.
][2022-06-27 15:48:40.720 +02:00 INF Entity Framework Core 6.0.3 initialized 'DatabaseContext' using provider 'Microsoft.EntityFrameworkCore.SqlServer:6.0.3' with options: SensitiveDataLoggingEnabled
][2022-06-27 15:48:40.991 +02:00 INF Executed DbCommand (23ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT 1
][2022-06-27 15:48:41.013 +02:00 INF Executed DbCommand (12ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT OBJECT_ID(N'[__EFMigrationsHistory]');
][2022-06-27 15:48:41.035 +02:00 INF Executed DbCommand (2ms) [Parameters=[], CommandType='"Text"', CommandTimeout='30']
SELECT [MigrationId], [ProductVersion]
FROM [__EFMigrationsHistory]
ORDER BY [MigrationId];
][2022-06-27 15:48:41.127 +02:00 INF Now listening on: http://localhost:5116
][2022-06-27 15:48:41.130 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-06-27 15:48:41.130 +02:00 INF Hosting environment: Development
][2022-06-27 15:48:41.130 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-06-27 15:48:50.001 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-06-27 15:48:50.195 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-06-27 15:48:50.195 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-06-27 15:48:50.197 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.7149ms
][2022-06-27 15:48:50.197 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 198.5704ms
][2022-06-27 15:48:50.214 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 19.2995ms
][2022-06-27 15:48:50.396 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-06-27 15:48:50.545 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 148.8534ms
][2022-06-27 15:48:59.240 +02:00 INF Request starting HTTP/1.1 DELETE http://localhost:5116/api/mongo/Insurer/62b9a602503b9180da18e537 - -
][2022-06-27 15:48:59.250 +02:00 INF CORS policy execution failed.
][2022-06-27 15:48:59.250 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-06-27 15:48:59.253 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.Delete (Diligent.WebAPI.Host)'
][2022-06-27 15:48:59.272 +02:00 INF Route matched with {action = "Delete", controller = "Insurer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Delete(System.String) on controller Diligent.WebAPI.Host.MongoController.InsurerController (Diligent.WebAPI.Host).
][2022-06-27 15:49:00.118 +02:00 INF Executing StatusCodeResult, setting HTTP status code 200
][2022-06-27 15:49:00.124 +02:00 INF Executed action Diligent.WebAPI.Host.MongoController.InsurerController.Delete (Diligent.WebAPI.Host) in 847.2157ms
][2022-06-27 15:49:00.125 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoController.InsurerController.Delete (Diligent.WebAPI.Host)'
][2022-06-27 15:49:00.128 +02:00 INF Request finished HTTP/1.1 DELETE http://localhost:5116/api/mongo/Insurer/62b9a602503b9180da18e537 - - - 200 0 - 888.1801ms
]

+ 0
- 1001
Backend/Diligent.WebAPI.Host/Logging/webapi-20220628.log
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 0
- 1
Backend/Diligent.WebAPI.Host/Logging/webapi-20220629.log Целия файл

@@ -1 +0,0 @@
]

+ 0
- 1
Backend/Diligent.WebAPI.Host/Logging/webapi-20220630.log Целия файл

@@ -1 +0,0 @@
]

+ 0
- 563
Backend/Diligent.WebAPI.Host/Logging/webapi-20220701.log Целия файл

@@ -1,563 +0,0 @@
[2022-07-01 08:45:06.175 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 08:45:06.239 +02:00 INF Creating key {dfa320ef-43c0-4e3a-a0d6-9c4c66c91e9e} with creation date 2022-07-01 06:45:06Z, activation date 2022-07-01 06:45:06Z, and expiration date 2022-09-29 06:45:06Z.
][2022-07-01 08:45:06.271 +02:00 INF Writing data to file 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys\key-dfa320ef-43c0-4e3a-a0d6-9c4c66c91e9e.xml'.
][2022-07-01 08:45:06.404 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 08:45:06.406 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 08:45:06.406 +02:00 INF Hosting environment: Development
][2022-07-01 08:45:06.406 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 08:45:06.454 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - -
][2022-07-01 08:45:06.519 +02:00 INF CORS policy execution successful.
][2022-07-01 08:45:06.554 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - - - 204 - - 101.3759ms
][2022-07-01 08:45:06.582 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49
][2022-07-01 08:45:06.590 +02:00 INF CORS policy execution successful.
][2022-07-01 08:45:06.939 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 08:45:06.959 +02:00 INF Route matched with {action = "Login", controller = "Customer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO]] Login(Diligent.WebAPI.Host.DTOs.Customer.CustomerLoginDTO) on controller Diligent.WebAPI.Host.Controllers.CustomerController (Diligent.WebAPI.Host).
][2022-07-01 08:45:07.376 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49
][2022-07-01 08:45:07.377 +02:00 INF CORS policy execution successful.
][2022-07-01 08:45:07.377 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 08:45:07.378 +02:00 INF Route matched with {action = "Login", controller = "Customer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO]] Login(Diligent.WebAPI.Host.DTOs.Customer.CustomerLoginDTO) on controller Diligent.WebAPI.Host.Controllers.CustomerController (Diligent.WebAPI.Host).
][2022-07-01 08:45:08.099 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO'.
][2022-07-01 08:45:08.099 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO'.
][2022-07-01 08:45:08.119 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host) in 737.5084ms
][2022-07-01 08:45:08.119 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host) in 1155.5866ms
][2022-07-01 08:45:08.120 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 08:45:08.120 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 08:45:08.121 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49 - 200 - application/json;+charset=utf-8 745.1720ms
][2022-07-01 08:45:08.121 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49 - 200 - application/json;+charset=utf-8 1539.0918ms
][2022-07-01 08:45:22.691 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - -
][2022-07-01 08:45:22.692 +02:00 INF CORS policy execution successful.
][2022-07-01 08:45:22.692 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - - - 204 - - 0.6180ms
][2022-07-01 08:45:22.693 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49
][2022-07-01 08:45:22.693 +02:00 INF CORS policy execution successful.
][2022-07-01 08:45:22.695 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 08:45:22.695 +02:00 INF Route matched with {action = "Login", controller = "Customer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO]] Login(Diligent.WebAPI.Host.DTOs.Customer.CustomerLoginDTO) on controller Diligent.WebAPI.Host.Controllers.CustomerController (Diligent.WebAPI.Host).
][2022-07-01 08:45:22.817 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO'.
][2022-07-01 08:45:22.818 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host) in 122.5521ms
][2022-07-01 08:45:22.818 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 08:45:22.818 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49 - 200 - application/json;+charset=utf-8 124.8998ms
][2022-07-01 08:45:35.374 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - -
][2022-07-01 08:45:35.374 +02:00 INF CORS policy execution successful.
][2022-07-01 08:45:35.374 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - - - 204 - - 0.3886ms
][2022-07-01 08:45:35.375 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49
][2022-07-01 08:45:35.376 +02:00 INF CORS policy execution successful.
][2022-07-01 08:45:35.376 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 08:45:35.376 +02:00 INF Route matched with {action = "Login", controller = "Customer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO]] Login(Diligent.WebAPI.Host.DTOs.Customer.CustomerLoginDTO) on controller Diligent.WebAPI.Host.Controllers.CustomerController (Diligent.WebAPI.Host).
][2022-07-01 08:45:35.489 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO'.
][2022-07-01 08:45:35.490 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host) in 114.0706ms
][2022-07-01 08:45:35.490 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 08:45:35.490 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49 - 200 - application/json;+charset=utf-8 114.6925ms
][2022-07-01 10:04:54.249 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 10:04:54.353 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 10:04:54.356 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 10:04:54.356 +02:00 INF Hosting environment: Development
][2022-07-01 10:04:54.356 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 14:24:57.160 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 14:24:57.305 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 14:24:57.310 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 14:24:57.310 +02:00 INF Hosting environment: Development
][2022-07-01 14:24:57.311 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 14:25:45.504 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - -
][2022-07-01 14:25:45.536 +02:00 INF CORS policy execution successful.
][2022-07-01 14:25:45.546 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - - - 204 - - 44.1465ms
][2022-07-01 14:25:45.554 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49
][2022-07-01 14:25:45.560 +02:00 INF CORS policy execution successful.
][2022-07-01 14:25:45.617 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 14:25:45.634 +02:00 INF Route matched with {action = "Login", controller = "Customer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO]] Login(Diligent.WebAPI.Host.DTOs.Customer.CustomerLoginDTO) on controller Diligent.WebAPI.Host.Controllers.CustomerController (Diligent.WebAPI.Host).
][2022-07-01 14:25:46.402 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO'.
][2022-07-01 14:25:46.416 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host) in 778.3522ms
][2022-07-01 14:25:46.417 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 14:25:46.419 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49 - 200 - application/json;+charset=utf-8 864.4371ms
][2022-07-01 14:25:50.579 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Customer/chats - -
][2022-07-01 14:25:50.580 +02:00 INF CORS policy execution successful.
][2022-07-01 14:25:50.580 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Customer/chats - - - 404 0 - 0.9636ms
][2022-07-01 14:25:50.581 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Customer/chats - -
][2022-07-01 14:25:50.581 +02:00 INF CORS policy execution successful.
][2022-07-01 14:25:50.581 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Customer/chats - - - 404 0 - 0.4914ms
][2022-07-01 14:27:50.513 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 14:27:50.649 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 14:27:50.651 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 14:27:50.651 +02:00 INF Hosting environment: Development
][2022-07-01 14:27:50.651 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 14:27:53.423 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-07-01 14:27:53.678 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-07-01 14:27:53.678 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-07-01 14:27:53.683 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 3.4421ms
][2022-07-01 14:27:53.683 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 262.2154ms
][2022-07-01 14:27:53.883 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 205.5372ms
][2022-07-01 14:27:53.939 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-07-01 14:27:54.037 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 97.6370ms
][2022-07-01 14:28:00.898 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat - -
][2022-07-01 14:28:00.908 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 14:28:00.917 +02:00 INF Route matched with {action = "GetAll", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 14:28:42.466 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 14:28:42.576 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 14:28:42.579 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 14:28:42.579 +02:00 INF Hosting environment: Development
][2022-07-01 14:28:42.579 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 14:28:45.519 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat - -
][2022-07-01 14:28:45.628 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 14:28:45.639 +02:00 INF Route matched with {action = "GetAll", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 14:35:01.315 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 14:35:01.435 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 14:35:01.438 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 14:35:01.438 +02:00 INF Hosting environment: Development
][2022-07-01 14:35:01.438 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 14:35:08.671 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-07-01 14:35:08.888 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-07-01 14:35:08.888 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-07-01 14:35:08.891 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.6487ms
][2022-07-01 14:35:08.891 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 223.4544ms
][2022-07-01 14:35:08.911 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 22.3974ms
][2022-07-01 14:35:09.091 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-07-01 14:35:09.185 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 94.5689ms
][2022-07-01 14:36:26.376 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 14:36:26.487 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 14:36:26.490 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 14:36:26.490 +02:00 INF Hosting environment: Development
][2022-07-01 14:36:26.490 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 14:36:30.863 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-07-01 14:36:31.058 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-07-01 14:36:31.058 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-07-01 14:36:31.061 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.7105ms
][2022-07-01 14:36:31.061 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 200.1339ms
][2022-07-01 14:36:31.084 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 25.3399ms
][2022-07-01 14:36:31.276 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-07-01 14:36:31.377 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 100.7391ms
][2022-07-01 14:37:26.688 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat application/json 161
][2022-07-01 14:37:26.697 +02:00 INF CORS policy execution failed.
][2022-07-01 14:37:26.698 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-07-01 14:37:26.702 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.CreateChat (Diligent.WebAPI.Host)'
][2022-07-01 14:37:26.718 +02:00 INF Route matched with {action = "CreateChat", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateChat(Diligent.WebAPI.Data.Entities.Room) on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 14:39:13.300 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 14:39:13.418 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 14:39:13.421 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 14:39:13.421 +02:00 INF Hosting environment: Development
][2022-07-01 14:39:13.421 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 14:39:14.754 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat application/json 161
][2022-07-01 14:39:14.792 +02:00 INF CORS policy execution failed.
][2022-07-01 14:39:14.793 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-07-01 14:39:14.857 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.CreateChat (Diligent.WebAPI.Host)'
][2022-07-01 14:39:14.874 +02:00 INF Route matched with {action = "CreateChat", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateChat(Diligent.WebAPI.Data.Entities.Room) on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 14:39:41.176 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 14:39:41.289 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 14:39:41.292 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 14:39:41.293 +02:00 INF Hosting environment: Development
][2022-07-01 14:39:41.293 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 14:40:44.588 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/InsuranceCompany application/json 191
][2022-07-01 14:40:44.627 +02:00 INF CORS policy execution failed.
][2022-07-01 14:40:44.627 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-07-01 14:40:44.691 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-07-01 14:40:44.710 +02:00 INF Route matched with {action = "Post", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Post(Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo.InsuranceCompanyCreateDTO) on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-07-01 14:43:48.971 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 14:43:49.085 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 14:43:49.092 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 14:43:49.092 +02:00 INF Hosting environment: Development
][2022-07-01 14:43:49.092 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 14:43:58.710 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/InsuranceCompany application/json 191
][2022-07-01 14:43:58.749 +02:00 INF CORS policy execution failed.
][2022-07-01 14:43:58.749 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-07-01 14:43:58.826 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-07-01 14:43:58.846 +02:00 INF Route matched with {action = "Post", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Post(Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo.InsuranceCompanyCreateDTO) on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-07-01 14:47:55.689 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 14:47:55.760 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 14:47:55.762 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 14:47:55.762 +02:00 INF Hosting environment: Development
][2022-07-01 14:47:55.762 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 14:47:58.437 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/InsuranceCompany application/json 191
][2022-07-01 14:47:58.469 +02:00 INF CORS policy execution failed.
][2022-07-01 14:47:58.470 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-07-01 14:47:58.495 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-07-01 14:47:58.510 +02:00 INF Route matched with {action = "Post", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult] Post(Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo.InsuranceCompanyCreateDTO) on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-07-01 14:47:58.516 +02:00 INF Executed action Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host) in 2.3832ms
][2022-07-01 14:47:58.517 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Post (Diligent.WebAPI.Host)'
][2022-07-01 14:47:58.518 +02:00 ERR Value cannot be null. (Parameter 'connectionString')
][2022-07-01 14:47:58.528 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/InsuranceCompany application/json 191 - 500 - application/json 93.2859ms
][2022-07-01 15:12:42.500 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 15:12:42.646 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 15:12:42.649 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 15:12:42.649 +02:00 INF Hosting environment: Development
][2022-07-01 15:12:42.649 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 15:12:44.270 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-07-01 15:12:44.474 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-07-01 15:12:44.474 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-07-01 15:12:44.477 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 208.8010ms
][2022-07-01 15:12:44.477 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.8189ms
][2022-07-01 15:12:44.502 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 27.2468ms
][2022-07-01 15:12:44.670 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-07-01 15:12:44.770 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 99.8686ms
][2022-07-01 15:13:01.064 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Customer/register application/json 120
][2022-07-01 15:13:01.073 +02:00 INF CORS policy execution failed.
][2022-07-01 15:13:01.073 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-07-01 15:13:01.078 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Register (Diligent.WebAPI.Host)'
][2022-07-01 15:13:01.095 +02:00 INF Route matched with {action = "Register", controller = "Customer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO]] Register(Diligent.WebAPI.Host.DTOs.Customer.CustomerCreateDTO) on controller Diligent.WebAPI.Host.Controllers.CustomerController (Diligent.WebAPI.Host).
][2022-07-01 15:13:01.213 +02:00 WRN User password validation failed: PasswordRequiresNonAlphanumeric;PasswordRequiresDigit;PasswordRequiresUpper.
][2022-07-01 15:13:01.443 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.CustomerController.Register (Diligent.WebAPI.Host) in 342.7244ms
][2022-07-01 15:13:01.444 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Register (Diligent.WebAPI.Host)'
][2022-07-01 15:13:01.508 +02:00 ERR Role CUSTOMER does not exist.
][2022-07-01 15:13:01.512 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Customer/register application/json 120 - 500 - application/json 448.1106ms
][2022-07-01 15:13:20.908 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/InsuranceCompany - -
][2022-07-01 15:13:20.908 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController.Get (Diligent.WebAPI.Host)'
][2022-07-01 15:13:20.911 +02:00 INF Route matched with {action = "Get", controller = "InsuranceCompany"}. Executing controller action with signature System.Threading.Tasks.Task`1[System.Collections.Generic.List`1[Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo.InsuranceCompanyReadDTO]] Get() on controller Diligent.WebAPI.Host.MongoControllers.InsuranceCompanyController (Diligent.WebAPI.Host).
][2022-07-01 15:16:00.308 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 15:16:00.425 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 15:16:00.428 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 15:16:00.428 +02:00 INF Hosting environment: Development
][2022-07-01 15:16:00.428 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 15:16:17.082 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat - -
][2022-07-01 15:16:17.184 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:16:17.193 +02:00 INF Route matched with {action = "GetAll", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:16:17.576 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Data.Entities.Room, Diligent.WebAPI.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-07-01 15:16:17.609 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host) in 410.1649ms
][2022-07-01 15:16:17.610 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:16:17.613 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Chat - - - 200 - application/json;+charset=utf-8 533.7006ms
][2022-07-01 15:16:54.158 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat application/json 162
][2022-07-01 15:16:54.164 +02:00 INF CORS policy execution failed.
][2022-07-01 15:16:54.164 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-07-01 15:16:54.166 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.CreateChat (Diligent.WebAPI.Host)'
][2022-07-01 15:16:54.175 +02:00 INF Route matched with {action = "CreateChat", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateChat(Diligent.WebAPI.Data.Entities.Room) on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:16:54.399 +02:00 INF Executing CreatedAtActionResult, writing value of type 'Diligent.WebAPI.Data.Entities.Room'.
][2022-07-01 15:16:54.417 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.CreateChat (Diligent.WebAPI.Host) in 241.8755ms
][2022-07-01 15:16:54.418 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.CreateChat (Diligent.WebAPI.Host)'
][2022-07-01 15:16:54.529 +02:00 ERR No route matches the supplied values.
][2022-07-01 15:16:54.532 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat application/json 162 - 500 - application/json 374.1023ms
][2022-07-01 15:18:59.995 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 15:19:00.109 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 15:19:00.115 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 15:19:00.115 +02:00 INF Hosting environment: Development
][2022-07-01 15:19:00.116 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 15:19:04.946 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/index.html - -
][2022-07-01 15:19:05.142 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_vs/browserLink - -
][2022-07-01 15:19:05.142 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - -
][2022-07-01 15:19:05.145 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_framework/aspnetcore-browser-refresh.js - - - 200 12010 application/javascript;+charset=utf-8 1.6188ms
][2022-07-01 15:19:05.145 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/index.html - - - 200 - text/html;charset=utf-8 201.4926ms
][2022-07-01 15:19:05.166 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/_vs/browserLink - - - 200 - text/javascript;+charset=UTF-8 23.5940ms
][2022-07-01 15:19:05.340 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - -
][2022-07-01 15:19:05.436 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/swagger/v1/swagger.json - - - 200 - application/json;charset=utf-8 96.0569ms
][2022-07-01 15:19:11.911 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat - -
][2022-07-01 15:19:11.921 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:19:11.931 +02:00 INF Route matched with {action = "GetAll", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:19:12.314 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Data.Entities.Room, Diligent.WebAPI.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-07-01 15:19:12.332 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host) in 397.1251ms
][2022-07-01 15:19:12.332 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:19:12.332 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Chat - - - 200 - application/json;+charset=utf-8 421.7457ms
][2022-07-01 15:19:42.272 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat application/json 159
][2022-07-01 15:19:42.276 +02:00 INF CORS policy execution failed.
][2022-07-01 15:19:42.276 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-07-01 15:19:42.277 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.CreateChat (Diligent.WebAPI.Host)'
][2022-07-01 15:19:42.288 +02:00 INF Route matched with {action = "CreateChat", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateChat(Diligent.WebAPI.Data.Entities.Room) on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:19:57.098 +02:00 INF Executing CreatedAtActionResult, writing value of type 'Diligent.WebAPI.Data.Entities.Room'.
][2022-07-01 15:19:57.169 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.CreateChat (Diligent.WebAPI.Host) in 14880.4625ms
][2022-07-01 15:19:57.169 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.CreateChat (Diligent.WebAPI.Host)'
][2022-07-01 15:20:29.305 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 15:20:29.418 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 15:20:29.421 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 15:20:29.421 +02:00 INF Hosting environment: Development
][2022-07-01 15:20:29.421 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 15:20:34.074 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat - -
][2022-07-01 15:20:34.172 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:20:34.181 +02:00 INF Route matched with {action = "GetAll", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:20:34.570 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Data.Entities.Room, Diligent.WebAPI.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-07-01 15:20:34.610 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host) in 424.7449ms
][2022-07-01 15:20:34.610 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:20:34.613 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Chat - - - 200 - application/json;+charset=utf-8 542.0821ms
][2022-07-01 15:21:11.315 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 15:21:11.436 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 15:21:11.439 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 15:21:11.439 +02:00 INF Hosting environment: Development
][2022-07-01 15:21:11.439 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 15:21:17.809 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat application/json 159
][2022-07-01 15:21:17.849 +02:00 INF CORS policy execution failed.
][2022-07-01 15:21:17.849 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-07-01 15:21:17.917 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.CreateChat (Diligent.WebAPI.Host)'
][2022-07-01 15:21:17.932 +02:00 INF Route matched with {action = "CreateChat", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateChat(Diligent.WebAPI.Data.Entities.Room) on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:21:18.382 +02:00 INF Executing OkObjectResult, writing value of type 'Diligent.WebAPI.Data.Entities.Room'.
][2022-07-01 15:21:18.398 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.CreateChat (Diligent.WebAPI.Host) in 461.9192ms
][2022-07-01 15:21:18.399 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.CreateChat (Diligent.WebAPI.Host)'
][2022-07-01 15:21:18.401 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat application/json 159 - 200 - application/json;+charset=utf-8 595.1797ms
][2022-07-01 15:22:48.118 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 15:22:48.255 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 15:22:48.259 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 15:22:48.259 +02:00 INF Hosting environment: Development
][2022-07-01 15:22:48.259 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 15:22:48.421 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Customer/chats - -
][2022-07-01 15:22:48.460 +02:00 INF CORS policy execution successful.
][2022-07-01 15:22:48.536 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Customer/chats - - - 404 0 - 116.6473ms
][2022-07-01 15:23:13.665 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - -
][2022-07-01 15:23:13.667 +02:00 INF CORS policy execution successful.
][2022-07-01 15:23:13.668 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - - - 204 - - 2.7821ms
][2022-07-01 15:23:13.672 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49
][2022-07-01 15:23:13.676 +02:00 INF CORS policy execution successful.
][2022-07-01 15:23:13.679 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 15:23:13.697 +02:00 INF Route matched with {action = "Login", controller = "Customer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO]] Login(Diligent.WebAPI.Host.DTOs.Customer.CustomerLoginDTO) on controller Diligent.WebAPI.Host.Controllers.CustomerController (Diligent.WebAPI.Host).
][2022-07-01 15:23:14.484 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO'.
][2022-07-01 15:23:14.498 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host) in 796.7125ms
][2022-07-01 15:23:14.498 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 15:23:14.500 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49 - 200 - application/json;+charset=utf-8 827.6632ms
][2022-07-01 15:23:16.172 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Customer/chats - -
][2022-07-01 15:23:16.172 +02:00 INF CORS policy execution successful.
][2022-07-01 15:23:16.173 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Customer/chats - - - 404 0 - 1.9235ms
][2022-07-01 15:23:16.174 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Customer/chats - -
][2022-07-01 15:23:16.174 +02:00 INF CORS policy execution successful.
][2022-07-01 15:23:16.174 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Customer/chats - - - 404 0 - 0.2030ms
][2022-07-01 15:24:14.833 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Customer/chats - -
][2022-07-01 15:24:14.833 +02:00 INF CORS policy execution successful.
][2022-07-01 15:24:14.833 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Customer/chats - - - 404 0 - 0.4155ms
][2022-07-01 15:24:36.829 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat/chats - -
][2022-07-01 15:24:36.829 +02:00 INF CORS policy execution successful.
][2022-07-01 15:24:36.830 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Chat/chats - - - 404 0 - 0.3970ms
][2022-07-01 15:25:04.978 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - -
][2022-07-01 15:25:04.978 +02:00 INF CORS policy execution successful.
][2022-07-01 15:25:04.978 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - - - 204 - - 0.4141ms
][2022-07-01 15:25:04.982 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:25:04.982 +02:00 INF CORS policy execution successful.
][2022-07-01 15:25:04.982 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 0.2908ms
][2022-07-01 15:25:18.664 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - -
][2022-07-01 15:25:18.664 +02:00 INF CORS policy execution successful.
][2022-07-01 15:25:18.665 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - - - 204 - - 0.3258ms
][2022-07-01 15:25:18.665 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:25:18.665 +02:00 INF CORS policy execution successful.
][2022-07-01 15:25:18.665 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 0.1987ms
][2022-07-01 15:26:34.346 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - -
][2022-07-01 15:26:34.346 +02:00 INF CORS policy execution successful.
][2022-07-01 15:26:34.346 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - - - 204 - - 0.2742ms
][2022-07-01 15:26:34.349 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:26:34.349 +02:00 INF CORS policy execution successful.
][2022-07-01 15:26:34.349 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 0.2004ms
][2022-07-01 15:26:50.894 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - -
][2022-07-01 15:26:50.894 +02:00 INF CORS policy execution successful.
][2022-07-01 15:26:50.894 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - - - 204 - - 0.2565ms
][2022-07-01 15:26:50.898 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:26:50.898 +02:00 INF CORS policy execution successful.
][2022-07-01 15:26:50.898 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 0.2171ms
][2022-07-01 15:26:51.922 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:26:51.922 +02:00 INF CORS policy execution successful.
][2022-07-01 15:26:51.922 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 0.3662ms
][2022-07-01 15:26:52.101 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:26:52.101 +02:00 INF CORS policy execution successful.
][2022-07-01 15:26:52.101 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 0.2974ms
][2022-07-01 15:26:52.263 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:26:52.263 +02:00 INF CORS policy execution successful.
][2022-07-01 15:26:52.263 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 0.2923ms
][2022-07-01 15:26:52.417 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:26:52.417 +02:00 INF CORS policy execution successful.
][2022-07-01 15:26:52.417 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 0.2587ms
][2022-07-01 15:27:16.479 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 56
][2022-07-01 15:27:16.479 +02:00 INF CORS policy execution failed.
][2022-07-01 15:27:16.479 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-07-01 15:27:16.480 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 15:27:16.480 +02:00 INF Route matched with {action = "Login", controller = "Customer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO]] Login(Diligent.WebAPI.Host.DTOs.Customer.CustomerLoginDTO) on controller Diligent.WebAPI.Host.Controllers.CustomerController (Diligent.WebAPI.Host).
][2022-07-01 15:27:16.530 +02:00 WRN Invalid password for user.
][2022-07-01 15:27:16.530 +02:00 INF Executing BadRequestObjectResult, writing value of type 'System.String'.
][2022-07-01 15:27:16.531 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host) in 51.4ms
][2022-07-01 15:27:16.531 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 15:27:16.531 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 56 - 400 - text/plain;+charset=utf-8 52.4391ms
][2022-07-01 15:27:25.380 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 58
][2022-07-01 15:27:25.380 +02:00 INF CORS policy execution failed.
][2022-07-01 15:27:25.380 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-07-01 15:27:25.380 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 15:27:25.380 +02:00 INF Route matched with {action = "Login", controller = "Customer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO]] Login(Diligent.WebAPI.Host.DTOs.Customer.CustomerLoginDTO) on controller Diligent.WebAPI.Host.Controllers.CustomerController (Diligent.WebAPI.Host).
][2022-07-01 15:27:25.502 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO'.
][2022-07-01 15:27:25.502 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host) in 121.6092ms
][2022-07-01 15:27:25.502 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 15:27:25.502 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 58 - 200 - application/json;+charset=utf-8 122.1656ms
][2022-07-01 15:29:16.558 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - -
][2022-07-01 15:29:16.559 +02:00 INF CORS policy execution successful.
][2022-07-01 15:29:16.559 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - - - 204 - - 0.3765ms
][2022-07-01 15:29:16.559 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49
][2022-07-01 15:29:16.559 +02:00 INF CORS policy execution successful.
][2022-07-01 15:29:16.559 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 15:29:16.560 +02:00 INF Route matched with {action = "Login", controller = "Customer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO]] Login(Diligent.WebAPI.Host.DTOs.Customer.CustomerLoginDTO) on controller Diligent.WebAPI.Host.Controllers.CustomerController (Diligent.WebAPI.Host).
][2022-07-01 15:29:16.670 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO'.
][2022-07-01 15:29:16.670 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host) in 110.931ms
][2022-07-01 15:29:16.671 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 15:29:16.671 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49 - 200 - application/json;+charset=utf-8 111.3368ms
][2022-07-01 15:29:23.930 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Customer - -
][2022-07-01 15:29:23.930 +02:00 INF CORS policy execution successful.
][2022-07-01 15:29:23.930 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Customer - - - 404 0 - 0.3015ms
][2022-07-01 15:29:23.931 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Customer - -
][2022-07-01 15:29:23.931 +02:00 INF CORS policy execution successful.
][2022-07-01 15:29:23.931 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Customer - - - 404 0 - 0.2869ms
][2022-07-01 15:29:48.675 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 15:29:48.832 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 15:29:48.835 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 15:29:48.835 +02:00 INF Hosting environment: Development
][2022-07-01 15:29:48.836 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 15:30:10.708 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - -
][2022-07-01 15:30:10.743 +02:00 INF CORS policy execution successful.
][2022-07-01 15:30:10.751 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - - - 204 - - 44.8188ms
][2022-07-01 15:30:10.760 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:30:10.762 +02:00 INF CORS policy execution successful.
][2022-07-01 15:30:10.821 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 60.9366ms
][2022-07-01 15:30:25.509 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - -
][2022-07-01 15:30:25.510 +02:00 INF CORS policy execution successful.
][2022-07-01 15:30:25.510 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - - - 204 - - 0.5318ms
][2022-07-01 15:30:25.511 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:30:25.511 +02:00 INF CORS policy execution successful.
][2022-07-01 15:30:25.512 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 1.0007ms
][2022-07-01 15:31:33.329 +02:00 INF User profile is available. Using 'C:\Users\ermin.bronja\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
][2022-07-01 15:31:33.440 +02:00 INF Now listening on: http://localhost:5116
][2022-07-01 15:31:33.443 +02:00 INF Application started. Press Ctrl+C to shut down.
][2022-07-01 15:31:33.443 +02:00 INF Hosting environment: Development
][2022-07-01 15:31:33.443 +02:00 INF Content root path: C:\Users\ermin.bronja\Desktop\Projekat\Diligent.WebAPI.Host\
][2022-07-01 15:32:16.558 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - -
][2022-07-01 15:32:16.592 +02:00 INF CORS policy execution successful.
][2022-07-01 15:32:16.601 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - - - 204 - - 45.0171ms
][2022-07-01 15:32:16.609 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:32:16.611 +02:00 INF CORS policy execution successful.
][2022-07-01 15:32:16.672 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 62.5161ms
][2022-07-01 15:32:27.943 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - -
][2022-07-01 15:32:27.943 +02:00 INF CORS policy execution successful.
][2022-07-01 15:32:27.943 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/login - - - 204 - - 0.5175ms
][2022-07-01 15:32:27.944 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:32:27.944 +02:00 INF CORS policy execution successful.
][2022-07-01 15:32:27.944 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 0.5064ms
][2022-07-01 15:32:28.761 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:32:28.761 +02:00 INF CORS policy execution successful.
][2022-07-01 15:32:28.762 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 1.9187ms
][2022-07-01 15:32:29.389 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:32:29.389 +02:00 INF CORS policy execution successful.
][2022-07-01 15:32:29.389 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 0.4646ms
][2022-07-01 15:32:29.754 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:32:29.754 +02:00 INF CORS policy execution successful.
][2022-07-01 15:32:29.754 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 0.2940ms
][2022-07-01 15:32:30.084 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49
][2022-07-01 15:32:30.084 +02:00 INF CORS policy execution successful.
][2022-07-01 15:32:30.084 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/login application/json 49 - 404 0 - 0.2985ms
][2022-07-01 15:34:38.013 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/Customer/login - -
][2022-07-01 15:34:38.013 +02:00 INF CORS policy execution successful.
][2022-07-01 15:34:38.014 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Chat/Customer/login - - - 204 - - 0.2881ms
][2022-07-01 15:34:38.017 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/Customer/login application/json 49
][2022-07-01 15:34:38.017 +02:00 INF CORS policy execution successful.
][2022-07-01 15:34:38.018 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/Customer/login application/json 49 - 404 0 - 0.2527ms
][2022-07-01 15:34:40.376 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat/Customer/login application/json 49
][2022-07-01 15:34:40.376 +02:00 INF CORS policy execution successful.
][2022-07-01 15:34:40.376 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat/Customer/login application/json 49 - 404 0 - 0.3222ms
][2022-07-01 15:36:35.288 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - -
][2022-07-01 15:36:35.289 +02:00 INF CORS policy execution successful.
][2022-07-01 15:36:35.289 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - - - 204 - - 1.0344ms
][2022-07-01 15:36:35.290 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49
][2022-07-01 15:36:35.296 +02:00 INF CORS policy execution successful.
][2022-07-01 15:36:35.299 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 15:36:35.315 +02:00 INF Route matched with {action = "Login", controller = "Customer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO]] Login(Diligent.WebAPI.Host.DTOs.Customer.CustomerLoginDTO) on controller Diligent.WebAPI.Host.Controllers.CustomerController (Diligent.WebAPI.Host).
][2022-07-01 15:36:43.585 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO'.
][2022-07-01 15:36:43.598 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host) in 8278.8807ms
][2022-07-01 15:36:43.598 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 15:36:43.600 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49 - 200 - application/json;+charset=utf-8 8309.9792ms
][2022-07-01 15:36:47.369 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0 - -
][2022-07-01 15:36:47.369 +02:00 INF CORS policy execution successful.
][2022-07-01 15:36:47.370 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0 - - - 404 0 - 1.1136ms
][2022-07-01 15:36:47.371 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0 - -
][2022-07-01 15:36:47.371 +02:00 INF CORS policy execution successful.
][2022-07-01 15:36:47.371 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0 - - - 404 0 - 0.2192ms
][2022-07-01 15:37:34.840 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat - -
][2022-07-01 15:37:34.840 +02:00 INF CORS policy execution successful.
][2022-07-01 15:37:34.840 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:37:34.842 +02:00 INF Route matched with {action = "GetAll", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:37:34.952 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Data.Entities.Room, Diligent.WebAPI.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-07-01 15:37:34.965 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host) in 122.7675ms
][2022-07-01 15:37:34.965 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:37:34.966 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Chat - - - 200 - application/json;+charset=utf-8 125.9347ms
][2022-07-01 15:37:47.288 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - -
][2022-07-01 15:37:47.288 +02:00 INF CORS policy execution successful.
][2022-07-01 15:37:47.288 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - - - 204 - - 0.3700ms
][2022-07-01 15:37:47.289 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49
][2022-07-01 15:37:47.289 +02:00 INF CORS policy execution successful.
][2022-07-01 15:37:47.289 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 15:37:47.289 +02:00 INF Route matched with {action = "Login", controller = "Customer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO]] Login(Diligent.WebAPI.Host.DTOs.Customer.CustomerLoginDTO) on controller Diligent.WebAPI.Host.Controllers.CustomerController (Diligent.WebAPI.Host).
][2022-07-01 15:37:47.414 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO'.
][2022-07-01 15:37:47.414 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host) in 124.4919ms
][2022-07-01 15:37:47.414 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 15:37:47.414 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49 - 200 - application/json;+charset=utf-8 125.0802ms
][2022-07-01 15:37:48.904 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat - -
][2022-07-01 15:37:48.904 +02:00 INF CORS policy execution successful.
][2022-07-01 15:37:48.904 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:37:48.904 +02:00 INF Route matched with {action = "GetAll", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:37:48.930 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Data.Entities.Room, Diligent.WebAPI.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-07-01 15:37:48.930 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host) in 25.9026ms
][2022-07-01 15:37:48.930 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:37:48.930 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Chat - - - 200 - application/json;+charset=utf-8 26.4396ms
][2022-07-01 15:37:48.931 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat - -
][2022-07-01 15:37:48.931 +02:00 INF CORS policy execution successful.
][2022-07-01 15:37:48.932 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:37:48.932 +02:00 INF Route matched with {action = "GetAll", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:37:48.957 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Data.Entities.Room, Diligent.WebAPI.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-07-01 15:37:48.958 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host) in 26.0197ms
][2022-07-01 15:37:48.958 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:37:48.958 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Chat - - - 200 - application/json;+charset=utf-8 26.5147ms
][2022-07-01 15:39:04.838 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat - -
][2022-07-01 15:39:04.839 +02:00 INF CORS policy execution successful.
][2022-07-01 15:39:04.839 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:39:04.839 +02:00 INF Route matched with {action = "GetAll", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:39:04.868 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Data.Entities.Room, Diligent.WebAPI.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-07-01 15:39:04.868 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host) in 29.3114ms
][2022-07-01 15:39:04.868 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:39:04.868 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Chat - - - 200 - application/json;+charset=utf-8 29.9836ms
][2022-07-01 15:39:10.261 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat - -
][2022-07-01 15:39:10.262 +02:00 INF CORS policy execution successful.
][2022-07-01 15:39:10.262 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:39:10.262 +02:00 INF Route matched with {action = "GetAll", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:39:10.288 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Data.Entities.Room, Diligent.WebAPI.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-07-01 15:39:10.288 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host) in 25.9424ms
][2022-07-01 15:39:10.288 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:39:10.288 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Chat - - - 200 - application/json;+charset=utf-8 26.6286ms
][2022-07-01 15:39:10.289 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat - -
][2022-07-01 15:39:10.289 +02:00 INF CORS policy execution successful.
][2022-07-01 15:39:10.289 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:39:10.289 +02:00 INF Route matched with {action = "GetAll", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:39:10.315 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Data.Entities.Room, Diligent.WebAPI.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-07-01 15:39:10.315 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host) in 26.0101ms
][2022-07-01 15:39:10.315 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:39:10.315 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Chat - - - 200 - application/json;+charset=utf-8 26.4309ms
][2022-07-01 15:39:33.667 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Chat application/json 159
][2022-07-01 15:39:33.667 +02:00 INF CORS policy execution failed.
][2022-07-01 15:39:33.667 +02:00 INF Request origin http://localhost:5116 does not have permission to access the resource.
][2022-07-01 15:39:33.667 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.CreateChat (Diligent.WebAPI.Host)'
][2022-07-01 15:39:33.669 +02:00 INF Route matched with {action = "CreateChat", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] CreateChat(Diligent.WebAPI.Data.Entities.Room) on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:39:33.778 +02:00 INF Executing OkObjectResult, writing value of type 'Diligent.WebAPI.Data.Entities.Room'.
][2022-07-01 15:39:33.778 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.CreateChat (Diligent.WebAPI.Host) in 108.3911ms
][2022-07-01 15:39:33.778 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.CreateChat (Diligent.WebAPI.Host)'
][2022-07-01 15:39:33.778 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Chat application/json 159 - 200 - application/json;+charset=utf-8 111.1220ms
][2022-07-01 15:39:40.482 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat - -
][2022-07-01 15:39:40.482 +02:00 INF CORS policy execution successful.
][2022-07-01 15:39:40.483 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:39:40.483 +02:00 INF Route matched with {action = "GetAll", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:39:40.509 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Data.Entities.Room, Diligent.WebAPI.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-07-01 15:39:40.509 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host) in 25.9383ms
][2022-07-01 15:39:40.509 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:39:40.509 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Chat - - - 200 - application/json;+charset=utf-8 26.7005ms
][2022-07-01 15:39:40.510 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat - -
][2022-07-01 15:39:40.510 +02:00 INF CORS policy execution successful.
][2022-07-01 15:39:40.510 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:39:40.510 +02:00 INF Route matched with {action = "GetAll", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:39:40.536 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Data.Entities.Room, Diligent.WebAPI.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-07-01 15:39:40.536 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host) in 25.9616ms
][2022-07-01 15:39:40.536 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:39:40.536 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Chat - - - 200 - application/json;+charset=utf-8 26.3370ms
][2022-07-01 15:45:32.237 +02:00 INF Request starting HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - -
][2022-07-01 15:45:32.237 +02:00 INF CORS policy execution successful.
][2022-07-01 15:45:32.237 +02:00 INF Request finished HTTP/1.1 OPTIONS http://localhost:5116/v1.0/Customer/login - - - 204 - - 0.2480ms
][2022-07-01 15:45:32.238 +02:00 INF Request starting HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49
][2022-07-01 15:45:32.238 +02:00 INF CORS policy execution successful.
][2022-07-01 15:45:32.238 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 15:45:32.239 +02:00 INF Route matched with {action = "Login", controller = "Customer"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.ActionResult`1[Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO]] Login(Diligent.WebAPI.Host.DTOs.Customer.CustomerLoginDTO) on controller Diligent.WebAPI.Host.Controllers.CustomerController (Diligent.WebAPI.Host).
][2022-07-01 15:45:32.354 +02:00 INF Executing ObjectResult, writing value of type 'Diligent.WebAPI.Host.DTOs.Customer.CustomerReadDTO'.
][2022-07-01 15:45:32.355 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host) in 115.9759ms
][2022-07-01 15:45:32.355 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.CustomerController.Login (Diligent.WebAPI.Host)'
][2022-07-01 15:45:32.355 +02:00 INF Request finished HTTP/1.1 POST http://localhost:5116/v1.0/Customer/login application/json 49 - 200 - application/json;+charset=utf-8 116.4634ms
][2022-07-01 15:45:38.814 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat - -
][2022-07-01 15:45:38.814 +02:00 INF CORS policy execution successful.
][2022-07-01 15:45:38.814 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:45:38.814 +02:00 INF Route matched with {action = "GetAll", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:45:38.840 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Data.Entities.Room, Diligent.WebAPI.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-07-01 15:45:38.840 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host) in 25.8185ms
][2022-07-01 15:45:38.840 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:45:38.840 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Chat - - - 200 - application/json;+charset=utf-8 26.3018ms
][2022-07-01 15:45:38.841 +02:00 INF Request starting HTTP/1.1 GET http://localhost:5116/v1.0/Chat - -
][2022-07-01 15:45:38.841 +02:00 INF CORS policy execution successful.
][2022-07-01 15:45:38.841 +02:00 INF Executing endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:45:38.841 +02:00 INF Route matched with {action = "GetAll", controller = "Chat"}. Executing controller action with signature System.Threading.Tasks.Task`1[Microsoft.AspNetCore.Mvc.IActionResult] GetAll() on controller Diligent.WebAPI.Host.Controllers.ChatController (Diligent.WebAPI.Host).
][2022-07-01 15:45:38.867 +02:00 INF Executing OkObjectResult, writing value of type 'System.Collections.Generic.List`1[[Diligent.WebAPI.Data.Entities.Room, Diligent.WebAPI.Data, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
][2022-07-01 15:45:38.867 +02:00 INF Executed action Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host) in 25.7054ms
][2022-07-01 15:45:38.867 +02:00 INF Executed endpoint 'Diligent.WebAPI.Host.Controllers.ChatController.GetAll (Diligent.WebAPI.Host)'
][2022-07-01 15:45:38.867 +02:00 INF Request finished HTTP/1.1 GET http://localhost:5116/v1.0/Chat - - - 200 - application/json;+charset=utf-8 26.1429ms
]

+ 0
- 1395
Backend/Diligent.WebAPI.Host/Logging/webapi-20220704.log
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 0
- 1618
Backend/Diligent.WebAPI.Host/Logging/webapi-20220705.log
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 0
- 2476
Backend/Diligent.WebAPI.Host/Logging/webapi-20220706.log
Файловите разлики са ограничени, защото са твърде много
Целия файл


+ 0
- 26
Backend/Diligent.WebAPI.Host/Mapper/CompanyMappingProfile.cs Целия файл

@@ -1,26 +0,0 @@
using AutoMapper;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.MongoDTOs.InsuranceCompanyMongo;

namespace Diligent.WebAPI.Host.Mapper
{
public class CompanyMappingProfile : Profile
{
public CompanyMappingProfile()
{

#region Models to DTOs
//sql
//mongo
CreateMap<InsuranceCompanyMongo, InsuranceCompanyReadDTO>();
#endregion

#region DTOs to Models
//sql
//mongo
CreateMap<InsuranceCompanyCreateDTO, InsuranceCompanyMongo>();
#endregion
}
}
}

+ 0
- 26
Backend/Diligent.WebAPI.Host/Mapper/InsurerMappingProfile.cs Целия файл

@@ -1,26 +0,0 @@
using AutoMapper;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.MongoDTOs.InsurerMongo;

namespace Diligent.WebAPI.Host.Mapper
{
public class InsurerMappingProfile : Profile
{
public InsurerMappingProfile()
{
#region DTO to Model
// sql

// mongo
CreateMap<InsurerSaveDTO, InsurerMongo>();
#endregion

#region Model to DTO
// sql

// mongo
CreateMap<InsurerMongo, InsurerReturnDTO>();
#endregion
}
}
}

+ 0
- 18
Backend/Diligent.WebAPI.Host/Mapper/PolicyMappingProfiles.cs Целия файл

@@ -1,18 +0,0 @@
using AutoMapper;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.MongoDTOs.InsurancePolicyMongo;

namespace Diligent.WebAPI.Host.Mapper
{
public class PolicyMappingProfiles:Profile
{
public PolicyMappingProfiles()
{
//mongo
CreateMap<InsurancePolicySaveDTO, InsurancePolicyMongo>();
CreateMap<InsurancePolicyMongo, InsurancePolicyReturnDTO>();


}
}
}

+ 13
- 0
Backend/Diligent.WebAPI.Host/Mediator/Authentication/Commands/AddRoleCommand.cs Целия файл

@@ -0,0 +1,13 @@
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Authentication.Commands
{
public class AddRoleCommand:IRequest<Unit>
{
public string NameOfRole { get; }
public AddRoleCommand(string nameOfRole)
{
NameOfRole = nameOfRole;
}
}
}

+ 14
- 0
Backend/Diligent.WebAPI.Host/Mediator/Authentication/Commands/RegisterUserCommand.cs Целия файл

@@ -0,0 +1,14 @@
using Diligent.WebAPI.Host.DTOs.Customer;
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Authentication.Commands
{
public class RegisterUserCommand:IRequest<CustomerReadDTO>
{
public CustomerCreateDTO CustomerCreateDTO { get; set; }
public RegisterUserCommand(CustomerCreateDTO customerCreateDTO)
{
CustomerCreateDTO = customerCreateDTO;
}
}
}

+ 24
- 0
Backend/Diligent.WebAPI.Host/Mediator/Authentication/Handlers/AddRoleHandler.cs Целия файл

@@ -0,0 +1,24 @@
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.Mediator.Authentication.Commands;
using MediatR;
using Microsoft.AspNetCore.Identity;
using System.Web.Http.ModelBinding;

namespace Diligent.WebAPI.Host.Mediator.Authentication.Handlers
{
public class AddRoleHandler : IRequestHandler<AddRoleCommand, Unit>
{
private readonly RoleManager<Roles> _roleManager;

public AddRoleHandler(RoleManager<Roles> roleManager)
{
_roleManager = roleManager;
}
public async Task<Unit> Handle(AddRoleCommand request, CancellationToken cancellationToken)
{
await _roleManager.CreateAsync(new Roles() { Name = request.NameOfRole });

return new Unit();
}
}
}

+ 39
- 0
Backend/Diligent.WebAPI.Host/Mediator/Authentication/Handlers/LoginUserHandler.cs Целия файл

@@ -0,0 +1,39 @@
using AutoMapper;
using Diligent.WebAPI.Business.Interfaces;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.DTOs.Customer;
using Diligent.WebAPI.Host.Mediator.Authentication.Queries;
using MediatR;
using Microsoft.AspNetCore.Identity;

namespace Diligent.WebAPI.Host.Mediator.Authentication.Handlers
{
public class LoginUserHandler : IRequestHandler<LoginUserQuery, CustomerReadDTO>
{
private readonly UserManager<Customer> _customerManager;
private readonly IAuthenticationService _authenticationService;
private readonly IMapper _mapper;
private readonly ICustomerService _customerService;

public LoginUserHandler(UserManager<Customer> customerManager, IAuthenticationService authenticationService,
IMapper mapper, ICustomerService customerService)
{
_customerManager = customerManager;
_authenticationService = authenticationService;
_mapper = mapper;
_customerService = customerService;
}
public async Task<CustomerReadDTO> Handle(LoginUserQuery request, CancellationToken cancellationToken)
{
var customerLoginDTO = request.CustomerLoginDTO;
if (!await _authenticationService.ValidateCustomer(customerLoginDTO.Username, customerLoginDTO.Password))
throw new BadHttpRequestException("Authentication failed.Wrong Username or password");

Customer customer = await _customerService.GetCustomer(customerLoginDTO.Username);
var customerReadDTO = _mapper.Map<CustomerReadDTO>(customer);
customerReadDTO.Token = await _authenticationService.GenerateToken();
customerReadDTO.Roles = (List<string>)await _customerManager.GetRolesAsync(customer);
return customerReadDTO;
}
}
}

+ 45
- 0
Backend/Diligent.WebAPI.Host/Mediator/Authentication/Handlers/RegisterUserHandler.cs Целия файл

@@ -0,0 +1,45 @@
using AutoMapper;
using Diligent.WebAPI.Business.Interfaces;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.DTOs.Customer;
using Diligent.WebAPI.Host.Mediator.Authentication.Commands;
using MediatR;
using Microsoft.AspNetCore.Identity;

namespace Diligent.WebAPI.Host.Mediator.Authentication.Handlers
{
public class RegisterUserHandler : IRequestHandler<RegisterUserCommand, CustomerReadDTO>
{
private readonly UserManager<Customer> _customerManager;
private readonly IAuthenticationService _authenticationService;
private readonly IMapper _mapper;

public RegisterUserHandler(UserManager<Customer> customerManager,IAuthenticationService authenticationService,
IMapper mapper)
{
_customerManager = customerManager;
_authenticationService = authenticationService;
_mapper = mapper;
}
public async Task<CustomerReadDTO> Handle(RegisterUserCommand request, CancellationToken cancellationToken)
{
var customerCreateDTO = request.CustomerCreateDTO;
Customer customer = new()
{
FirstName = customerCreateDTO.FirstName,
LastName = customerCreateDTO.LastName,
Email = customerCreateDTO.Email,
UserName = customerCreateDTO.Username
};

var result = await _customerManager.CreateAsync(customer, customerCreateDTO.Password);
await _customerManager.AddToRoleAsync(customer, "Support");
await _authenticationService.ValidateCustomer(customer.UserName, customerCreateDTO.Password);
var customerReadDTO = _mapper.Map<CustomerReadDTO>(customer);
customerReadDTO.Token = await _authenticationService.GenerateToken();
customerReadDTO.Roles = (List<string>)await _customerManager.GetRolesAsync(customer);

return customerReadDTO;
}
}
}

+ 14
- 0
Backend/Diligent.WebAPI.Host/Mediator/Authentication/Queries/LoginUserQuery.cs Целия файл

@@ -0,0 +1,14 @@
using Diligent.WebAPI.Host.DTOs.Customer;
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Authentication.Queries
{
public class LoginUserQuery:IRequest<CustomerReadDTO>
{
public CustomerLoginDTO CustomerLoginDTO { get; }
public LoginUserQuery(CustomerLoginDTO customerLoginDTO)
{
CustomerLoginDTO = customerLoginDTO;
}
}
}

+ 1
- 1
Backend/Diligent.WebAPI.Host/Mediator/Notifications/Handlers/AddNotificationHandler.cs Целия файл

@@ -1,4 +1,4 @@
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Business.Interfaces;
using Diligent.WebAPI.Host.Mediator.Notifications.Commands;
using MediatR;


+ 1
- 1
Backend/Diligent.WebAPI.Host/Mediator/Notifications/Handlers/DeleteNotificationHandler.cs Целия файл

@@ -1,4 +1,4 @@
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Business.Interfaces;
using Diligent.WebAPI.Host.Mediator.Notifications.Commands;
using MediatR;


+ 1
- 1
Backend/Diligent.WebAPI.Host/Mediator/Notifications/Handlers/GetNotificationsHandler.cs Целия файл

@@ -1,5 +1,5 @@
using AutoMapper;
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Business.Interfaces;
using Diligent.WebAPI.Host.DTOs.Notification;
using Diligent.WebAPI.Host.Mediator.Notifications.Queries;
using MediatR;

+ 14
- 0
Backend/Diligent.WebAPI.Host/Mediator/Request/Commands/CreateRequestCommand.cs Целия файл

@@ -0,0 +1,14 @@
using Diligent.WebAPI.Host.DTOs.Request;
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Request.Commands
{
public class CreateRequestCommand:IRequest<Data.Entities.Request>
{
public RequestCreateDTO Request { get; }
public CreateRequestCommand(RequestCreateDTO request)
{
Request = request;
}
}
}

+ 32
- 0
Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/CreateRequestHandler.cs Целия файл

@@ -0,0 +1,32 @@
using AutoMapper;
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Host.Mediator.Request.Commands;
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Request.Handlers
{
public class CreateRequestHandler : IRequestHandler<CreateRequestCommand, Data.Entities.Request>
{
private readonly IMapper _mapper;
private readonly RequestService _requestService;

public CreateRequestHandler(IMapper mapper,RequestService requestService)
{
_mapper = mapper;
_requestService = requestService;
}

public async Task<Data.Entities.Request> Handle(CreateRequestCommand request, CancellationToken cancellationToken)
{
var req = request.Request;

if (req == null)
throw new BadHttpRequestException("Resource object cannot be null.");
var createdRequest = _mapper.Map<Data.Entities.Request>(req);
await _requestService.CreateRequestAsync(createdRequest);

return createdRequest;
}
}
}

+ 18
- 0
Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/GetAllRequestHandler.cs Целия файл

@@ -0,0 +1,18 @@
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Host.Mediator.Request.Queries;
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Request.Handlers
{
public class GetAllRequestHandler : IRequestHandler<GetAllRequestsQuery, List<Data.Entities.Request>>
{
private readonly RequestService _requestService;

public GetAllRequestHandler(RequestService requestService)
{
_requestService = requestService;
}
public async Task<List<Data.Entities.Request>> Handle(GetAllRequestsQuery request, CancellationToken cancellationToken) =>
await _requestService.GetRequestsAsync();
}
}

+ 33
- 0
Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/GetRequestHandler.cs Целия файл

@@ -0,0 +1,33 @@
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Host.Exceptions;
using Diligent.WebAPI.Host.Mediator.Request.Queries;
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Request.Handlers
{
public class GetRequestHandler : IRequestHandler<GetRequestQuery, Data.Entities.Request>
{
private readonly RequestService _requestService;

public GetRequestHandler(RequestService requestService)
{
_requestService = requestService;
}
public async Task<Data.Entities.Request> Handle(GetRequestQuery request, CancellationToken cancellationToken)
{
if (request.Id == null)
{
throw new BadHttpRequestException("Id cannot be null");
}

var req = await _requestService.GetRequestAsync(request.Id);

if (request == null)
{
throw new NotFoundException("Request not found");
}

return req;
}
}
}

+ 8
- 0
Backend/Diligent.WebAPI.Host/Mediator/Request/Queries/GetAllRequestsQuery.cs Целия файл

@@ -0,0 +1,8 @@
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Request.Queries
{
public class GetAllRequestsQuery:IRequest<List<Data.Entities.Request>>
{
}
}

+ 13
- 0
Backend/Diligent.WebAPI.Host/Mediator/Request/Queries/GetRequestQuery.cs Целия файл

@@ -0,0 +1,13 @@
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Request.Queries
{
public class GetRequestQuery:IRequest<Data.Entities.Request>
{
public string Id { get; }
public GetRequestQuery(string id)
{
Id = id;
}
}
}

+ 14
- 0
Backend/Diligent.WebAPI.Host/Mediator/Rooms/Commands/CreateRoomCommand.cs Целия файл

@@ -0,0 +1,14 @@
using Diligent.WebAPI.Data.Entities;
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Rooms.Commands
{
public class CreateRoomCommand:IRequest<Unit>
{
public Room Room { get; }
public CreateRoomCommand(Room room)
{
Room = room;
}
}
}

Backend/Diligent.WebAPI.Host/Mediator/Chat/Commands/RemoveUserFromGroupCommand.cs → Backend/Diligent.WebAPI.Host/Mediator/Rooms/Commands/RemoveUserFromGroupCommand.cs Целия файл

@@ -1,6 +1,6 @@
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Chat.Commands
namespace Diligent.WebAPI.Host.Mediator.Rooms.Commands
{
public class RemoveUserFromGroupCommand : IRequest<Unit>
{

+ 27
- 0
Backend/Diligent.WebAPI.Host/Mediator/Rooms/Handlers/CreateRoomHandler.cs Целия файл

@@ -0,0 +1,27 @@
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Host.Mediator.Rooms.Commands;
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Chat.Handlers
{
public class CreateRoomHandler : IRequestHandler<CreateRoomCommand, Unit>
{
private readonly RoomService _roomService;

public CreateRoomHandler(RoomService roomService)
{
_roomService = roomService;
}
public async Task<Unit> Handle(CreateRoomCommand request, CancellationToken cancellationToken)
{
if (request.Room == null)
{
throw new BadHttpRequestException("Room can't be null");
}

await _roomService.CreateRoomAsync(request.Room);

return new Unit();
}
}
}

+ 27
- 0
Backend/Diligent.WebAPI.Host/Mediator/Rooms/Handlers/GetAllRoomsWithFilteredMessagesHandler.cs Целия файл

@@ -0,0 +1,27 @@
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.Mediator.Rooms.Queries;
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Chat.Handlers
{
public class GetAllRoomsWithFilteredMessagesHandler : IRequestHandler<GetAllRoomsWithFilteredMessagesQuery, List<Room>>
{
private readonly RoomService _roomService;

public GetAllRoomsWithFilteredMessagesHandler(RoomService roomService)
{
_roomService = roomService;
}
public async Task<List<Room>> Handle(GetAllRoomsWithFilteredMessagesQuery request, CancellationToken cancellationToken)
{
var rooms = await _roomService.GetRoomsWithFilteredMessages(request.CustomerId);

//if (rooms == null)
// throw new BadHttpRequestException("Please send a valid customer id");

return rooms;

}
}
}

+ 20
- 0
Backend/Diligent.WebAPI.Host/Mediator/Rooms/Handlers/GetRoomsWhichSupportCreatedHandler.cs Целия файл

@@ -0,0 +1,20 @@
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.Mediator.Rooms.Queries;
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Chat.Handlers
{
public class GetRoomsWhichSupportCreatedHandler : IRequestHandler<GetRoomsWhichSupportCreatedQuery, List<Room>>
{
private readonly RoomService _roomService;

public GetRoomsWhichSupportCreatedHandler(RoomService roomService)
{
_roomService = roomService;
}
public async Task<List<Room>> Handle(GetRoomsWhichSupportCreatedQuery request, CancellationToken cancellationToken) =>
await _roomService.GetRoomsWhichSupportCreated(request.SupportId);
}
}

Backend/Diligent.WebAPI.Host/Mediator/Chat/Handlers/RemoveUserFromGroupHandler.cs → Backend/Diligent.WebAPI.Host/Mediator/Rooms/Handlers/RemoveUserFromGroupHandler.cs Целия файл

@@ -1,5 +1,5 @@
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Host.Mediator.Chat.Commands;
using Diligent.WebAPI.Host.Mediator.Rooms.Commands;
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Chat.Handlers

+ 14
- 0
Backend/Diligent.WebAPI.Host/Mediator/Rooms/Queries/GetAllRoomsWithFilteredMessagesQuery.cs Целия файл

@@ -0,0 +1,14 @@
using Diligent.WebAPI.Data.Entities;
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Rooms.Queries
{
public class GetAllRoomsWithFilteredMessagesQuery:IRequest<List<Room>>
{
public string CustomerId { get; }
public GetAllRoomsWithFilteredMessagesQuery(string customerId)
{
CustomerId = customerId;
}
}
}

+ 14
- 0
Backend/Diligent.WebAPI.Host/Mediator/Rooms/Queries/GetRoomsWhichSupportCreatedQuery.cs Целия файл

@@ -0,0 +1,14 @@
using Diligent.WebAPI.Data.Entities;
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Rooms.Queries
{
public class GetRoomsWhichSupportCreatedQuery:IRequest<List<Data.Entities.Room>>
{
public string SupportId { get; }
public GetRoomsWhichSupportCreatedQuery(string supportId)
{
SupportId = supportId;
}
}
}

+ 1
- 2
Backend/Diligent.WebAPI.Host/Usings.cs Целия файл

@@ -1,2 +1 @@
global using Diligent.WebAPI.Host.Extensions;
global using Diligent.WebAPI.Data.Extensions;
global using Diligent.WebAPI.Host.Extensions;

+ 1
- 1
Frontend/src/components/ChatWindow.js Целия файл

@@ -109,7 +109,7 @@ const ChatWindow = ({ room }) => {
{n.content}
</p>
<p className="text-muted small m-0 p-0 mb-4">
{n.senderId !== user?.id ? (
{n.senderId !== user?.id && !n.isAccessMessage ? (
activeUsers.some((m) => m === n.senderId) ? (
<BsCircleFill className="me-2 text-success" />
) : (

+ 2
- 2
Frontend/src/components/LogInForm.js Целия файл

@@ -1,7 +1,7 @@
import React, { useContext, useState } from 'react'
import {FloatingLabel, Form } from 'react-bootstrap'
import { Link, useNavigate } from 'react-router-dom'
import userService from '../services/userService'
import authenticationService from '../services/authenticationService'
import { UserContext } from '../contexts/userContext'

const LogInForm = () => {
@@ -47,7 +47,7 @@ const LogInForm = () => {
e.preventDefault();
if(validate())
userService.logIn({
authenticationService.logIn({
username,
password
})

+ 2
- 2
Frontend/src/components/RegisterForm.js Целия файл

@@ -2,7 +2,7 @@ import React, { useContext, useEffect, useState } from "react";
import { Col, FloatingLabel, Form, FormGroup, Row } from "react-bootstrap";
import { Link, useNavigate } from "react-router-dom";
import { UserContext } from "../contexts/userContext";
import userService from "../services/userService";
import authenticationService from "../services/authenticationService";

const RegisterForm = () => {
const navigate = useNavigate();
@@ -20,7 +20,7 @@ const RegisterForm = () => {
const submitHandler = (e) => {
e.preventDefault();

userService
authenticationService
.register(registerValues)
.then((res) => {
localStorage.setItem("user", JSON.stringify(res));

+ 1
- 1
Frontend/src/index.css Целия файл

@@ -116,7 +116,7 @@ input[type=submit]{
background: url('/public/background.jpg');
}
.overlay{
height: 575px;
height: 100%;
background-color: rgba(255,255,255,0.9);
overflow-y: scroll;
}

+ 13
- 0
Frontend/src/services/authenticationService.js Целия файл

@@ -0,0 +1,13 @@
import axios from "axios";
import { apiUrl } from "../config/urls";

axios.defaults.baseURL = apiUrl

const responseBody = response => response.data

const methods = {
logIn: (loginValues) => axios.post(`/Authentication/login`, loginValues).then(responseBody),
register: (registerValues) => axios.post('/Authentication/register', registerValues).then(responseBody)
}

export default methods

Frontend/src/services/chatService.js → Frontend/src/services/roomService.js Целия файл

@@ -6,9 +6,9 @@ axios.defaults.baseURL = apiUrl;
const responseBody = (response) => response.data;

const methods = {
getChats: (customerId) => axios.get(`/Chat/rooms-with-filtered-messages?customerId=${customerId}`).then(responseBody),
createChat: (payload) => axios.post("/Chat", payload).then(responseBody),
getSupportRooms:(supportId) => axios.get(`/Chat/support-rooms?supportId=${supportId}`).then(responseBody)
getRooms: (customerId) => axios.get(`/Room/rooms-with-filtered-messages?customerId=${customerId}`).then(responseBody),
createRoom: (payload) => axios.post("/Room", payload).then(responseBody),
getSupportRooms:(supportId) => axios.get(`/Room/support-rooms?supportId=${supportId}`).then(responseBody)
};

export default methods;

+ 0
- 15
Frontend/src/services/userService.js Целия файл

@@ -1,15 +0,0 @@
import axios from "axios";
import { apiUrl } from "../config/urls";

axios.defaults.baseURL = apiUrl

const responseBody = response => response.data

// const queryToken = localStorage.getItem("user") ? `?token=${JSON.parse(localStorage.getItem("user").token)}` : ''

const methods = {
logIn: (loginValues) => axios.post(`/Customer/login`, loginValues).then(responseBody),
register: (registerValues) => axios.post('/Customer/register', registerValues).then(responseBody)
}

export default methods

+ 4
- 4
Frontend/src/store/chat-slice.js Целия файл

@@ -1,5 +1,5 @@
import { createSlice, createAsyncThunk } from "@reduxjs/toolkit";
import chatService from "../services/chatService";
import roomService from "../services/roomService";
import notificationService from "../services/notificationService";

const initialState = {
@@ -18,7 +18,7 @@ export const fetchChatRoomsAsync = createAsyncThunk(
"chat/fetchChatRoomsAsync",
async (payload, thunkAPI) => {
try {
return await chatService.getChats(payload);
return await roomService.getRooms(payload);
} catch (error) {
return thunkAPI.rejectWithValue({ error });
}
@@ -29,7 +29,7 @@ export const fetchSupportRoomsAsync = createAsyncThunk(
"chat/fetchSupportRooms",
async (payload, thunkAPI) => {
try {
return await chatService.getSupportRooms(payload);
return await roomService.getSupportRooms(payload);
} catch (error) {
return thunkAPI.rejectWithValue({ error });
}
@@ -40,7 +40,7 @@ export const createChatRoomAsync = createAsyncThunk(
"chat/createChatRoomAsync",
async (payload, thunkAPI) => {
try {
return await chatService.createChat(payload);
return await roomService.createRoom(payload);
} catch (error) {
return thunkAPI.rejectWithValue({ error });
}

Loading…
Отказ
Запис