ソースを参照

first commit

master
Ermin Bronja 3年前
コミット
3bc7c3a1e3
94個のファイルの変更12575行の追加0行の削除
  1. 4
    0
      Backend/.editorconfig
  2. 13
    0
      Backend/.gitignore
  3. 24
    0
      Backend/Diligent.WebAPI.Business/Diligent.WebAPI.Business.csproj
  4. 15
    0
      Backend/Diligent.WebAPI.Business/HelperModels/DeleteCustomerRequest.cs
  5. 93
    0
      Backend/Diligent.WebAPI.Business/Services/AuthenticationService.cs
  6. 23
    0
      Backend/Diligent.WebAPI.Business/Services/BaseMongo.cs
  7. 16
    0
      Backend/Diligent.WebAPI.Business/Services/IAuthenticationService.cs
  8. 28
    0
      Backend/Diligent.WebAPI.Business/Services/InsuranceCompanyService.cs
  9. 28
    0
      Backend/Diligent.WebAPI.Business/Services/InsurancePolicyService.cs
  10. 29
    0
      Backend/Diligent.WebAPI.Business/Services/InsurerService.cs
  11. 38
    0
      Backend/Diligent.WebAPI.Business/Services/RequestService.cs
  12. 64
    0
      Backend/Diligent.WebAPI.Business/Services/RoomService.cs
  13. 22
    0
      Backend/Diligent.WebAPI.Data/Diligent.WebAPI.Data.csproj
  14. 15
    0
      Backend/Diligent.WebAPI.Data/Entities/BaseMongo.cs
  15. 12
    0
      Backend/Diligent.WebAPI.Data/Entities/Customer.cs
  16. 14
    0
      Backend/Diligent.WebAPI.Data/Entities/InsuranceCompanyMongo.cs
  17. 11
    0
      Backend/Diligent.WebAPI.Data/Entities/InsurancePolicyMongo.cs
  18. 22
    0
      Backend/Diligent.WebAPI.Data/Entities/InsurerMongo.cs
  19. 17
    0
      Backend/Diligent.WebAPI.Data/Entities/Message.cs
  20. 14
    0
      Backend/Diligent.WebAPI.Data/Entities/Request.cs
  21. 10
    0
      Backend/Diligent.WebAPI.Data/Entities/Roles.cs
  22. 22
    0
      Backend/Diligent.WebAPI.Data/Entities/Room.cs
  23. 9
    0
      Backend/Diligent.WebAPI.Data/Extensions/ServiceCollection.cs
  24. 9
    0
      Backend/Diligent.WebAPI.Data/Extensions/ServiceScope.cs
  25. 15
    0
      Backend/Diligent.WebAPI.Data/HelperModels/CustomerDTO.cs
  26. 3
    0
      Backend/Diligent.WebAPI.Data/Usings.cs
  27. 15
    0
      Backend/Diligent.WebAPI.Data/WebApiDatabaseSettings.cs
  28. 39
    0
      Backend/Diligent.WebAPI.Host/Controllers/ChatController.cs
  29. 88
    0
      Backend/Diligent.WebAPI.Host/Controllers/CustomerController.cs
  30. 86
    0
      Backend/Diligent.WebAPI.Host/Controllers/InsuranceCompanyController.cs
  31. 120
    0
      Backend/Diligent.WebAPI.Host/Controllers/InsurancePolicyController.cs
  32. 104
    0
      Backend/Diligent.WebAPI.Host/Controllers/InsurerController.cs
  33. 21
    0
      Backend/Diligent.WebAPI.Host/Controllers/MessageController.cs
  34. 91
    0
      Backend/Diligent.WebAPI.Host/Controllers/RequestController.cs
  35. 11
    0
      Backend/Diligent.WebAPI.Host/DTOs/Customer/CustomerCreateDTO.cs
  36. 13
    0
      Backend/Diligent.WebAPI.Host/DTOs/Customer/CustomerLoginDTO.cs
  37. 13
    0
      Backend/Diligent.WebAPI.Host/DTOs/Customer/CustomerReadDTO.cs
  38. 10
    0
      Backend/Diligent.WebAPI.Host/DTOs/Customer/CustomerRequestRoomReadDTO.cs
  39. 14
    0
      Backend/Diligent.WebAPI.Host/DTOs/InsuranceCompanyMongo/InsuranceCompanyCreateDTO.cs
  40. 18
    0
      Backend/Diligent.WebAPI.Host/DTOs/InsuranceCompanyMongo/InsuranceCompanyReadDTO.cs
  41. 21
    0
      Backend/Diligent.WebAPI.Host/DTOs/InsurancePolicyMongo/InsurancePolicyReturnDTO.cs
  42. 12
    0
      Backend/Diligent.WebAPI.Host/DTOs/InsurancePolicyMongo/InsurancePolicySaveDTO.cs
  43. 23
    0
      Backend/Diligent.WebAPI.Host/DTOs/InsurerMongo/InsurerReturnDTO.cs
  44. 18
    0
      Backend/Diligent.WebAPI.Host/DTOs/InsurerMongo/InsurerSaveDTO.cs
  45. 8
    0
      Backend/Diligent.WebAPI.Host/DTOs/Request/AcceptCustomerDTO.cs
  46. 10
    0
      Backend/Diligent.WebAPI.Host/DTOs/Request/RequestCreateDTO.cs
  47. 8
    0
      Backend/Diligent.WebAPI.Host/DTOs/Request/RequestRoomReadDTO.cs
  48. 37
    0
      Backend/Diligent.WebAPI.Host/Diligent.WebAPI.Host.csproj
  49. 7
    0
      Backend/Diligent.WebAPI.Host/Diligent.WebAPI.Host.csproj.user
  50. 13
    0
      Backend/Diligent.WebAPI.Host/Exceptions/BaseException.cs
  51. 14
    0
      Backend/Diligent.WebAPI.Host/Exceptions/ErrorDetails.cs
  52. 14
    0
      Backend/Diligent.WebAPI.Host/Exceptions/NotFoundException.cs
  53. 18
    0
      Backend/Diligent.WebAPI.Host/Extensions/ApiConfiguration.cs
  54. 12
    0
      Backend/Diligent.WebAPI.Host/Extensions/ExceptionHandlingMiddlewareExtensions.cs
  55. 14
    0
      Backend/Diligent.WebAPI.Host/Extensions/WebApp.cs
  56. 99
    0
      Backend/Diligent.WebAPI.Host/Extensions/WebAppBuilder.cs
  57. 7
    0
      Backend/Diligent.WebAPI.Host/Hubs/Attachment.cs
  58. 67
    0
      Backend/Diligent.WebAPI.Host/Hubs/ChatHub.cs
  59. 14
    0
      Backend/Diligent.WebAPI.Host/Hubs/ChatMessage.cs
  60. 7
    0
      Backend/Diligent.WebAPI.Host/Hubs/IChatClient.cs
  61. 14
    0
      Backend/Diligent.WebAPI.Host/Hubs/UserConnection.cs
  62. 92
    0
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220622.log
  63. 1933
    0
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220623.log
  64. 542
    0
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220624.log
  65. 782
    0
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220627.log
  66. 1001
    0
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220628.log
  67. 1
    0
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220629.log
  68. 1
    0
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220630.log
  69. 563
    0
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220701.log
  70. 1395
    0
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220704.log
  71. 1618
    0
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220705.log
  72. 2476
    0
      Backend/Diligent.WebAPI.Host/Logging/webapi-20220706.log
  73. 26
    0
      Backend/Diligent.WebAPI.Host/Mapper/CompanyMappingProfile.cs
  74. 14
    0
      Backend/Diligent.WebAPI.Host/Mapper/CustomerMappingProfile.cs
  75. 26
    0
      Backend/Diligent.WebAPI.Host/Mapper/InsurerMappingProfile.cs
  76. 18
    0
      Backend/Diligent.WebAPI.Host/Mapper/PolicyMappingProfiles.cs
  77. 17
    0
      Backend/Diligent.WebAPI.Host/Mapper/RequestMappingProfile.cs
  78. 16
    0
      Backend/Diligent.WebAPI.Host/Mediator/Messages/Commands/AddMessageCommand.cs
  79. 27
    0
      Backend/Diligent.WebAPI.Host/Mediator/Messages/Handlers/AddMessageHandler.cs
  80. 15
    0
      Backend/Diligent.WebAPI.Host/Mediator/Request/Commands/AcceptCustomerRequestCommand.cs
  81. 15
    0
      Backend/Diligent.WebAPI.Host/Mediator/Request/Commands/RejectCustomerRequestCommand.cs
  82. 33
    0
      Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/AcceptCustomerRequestHandler.cs
  83. 44
    0
      Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/GetRoomsForWhichRequestExistHandler.cs
  84. 33
    0
      Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/GetSendersForSpecificRoomHandler.cs
  85. 25
    0
      Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/RejectCustomerRequestHandler.cs
  86. 9
    0
      Backend/Diligent.WebAPI.Host/Mediator/Request/Queries/GetRoomsForWhichRequestExistQuery.cs
  87. 14
    0
      Backend/Diligent.WebAPI.Host/Mediator/Request/Queries/GetSendersForSpecificRequestRoomQuery.cs
  88. 50
    0
      Backend/Diligent.WebAPI.Host/Middlewares/ExceptionHandlingMiddleware.cs
  89. 21
    0
      Backend/Diligent.WebAPI.Host/Program.cs
  90. 29
    0
      Backend/Diligent.WebAPI.Host/Properties/launchSettings.json
  91. 2
    0
      Backend/Diligent.WebAPI.Host/Usings.cs
  92. 6
    0
      Backend/Diligent.WebAPI.Host/appsettings.Development.json
  93. 39
    0
      Backend/Diligent.WebAPI.Host/appsettings.json
  94. 42
    0
      Backend/Diligent.WebAPI.sln

+ 4
- 0
Backend/.editorconfig ファイルの表示

@@ -0,0 +1,4 @@
[*.cs]

# CS8618: Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
dotnet_diagnostic.CS8618.severity = none

+ 13
- 0
Backend/.gitignore ファイルの表示

@@ -0,0 +1,13 @@
################################################################################
# This .gitignore file was automatically created by Microsoft(R) Visual Studio.
################################################################################

/.vs
/Diligent.WebAPI.Data/bin/Debug/net6.0
/Diligent.WebAPI.Data/obj
/Diligent.WebAPI.Host/.vs/Diligent.WebAPI/v17
/Diligent.WebAPI.Host/bin/Debug/net6.0
/Diligent.WebAPI.Host/obj
/Diligent.WebAPI.Business/bin/Debug/net6.0
/Diligent.WebAPI.Business/obj/Debug/net6.0
/Diligent.WebAPI.Business/obj

+ 24
- 0
Backend/Diligent.WebAPI.Business/Diligent.WebAPI.Business.csproj ファイルの表示

@@ -0,0 +1,24 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AutoMapper" Version="11.0.1" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="11.0.0" />
<PackageReference Include="MongoDB.Driver" Version="2.16.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Diligent.WebAPI.Data\Diligent.WebAPI.Data.csproj" />
</ItemGroup>

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

</Project>

+ 15
- 0
Backend/Diligent.WebAPI.Business/HelperModels/DeleteCustomerRequest.cs ファイルの表示

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

namespace Diligent.WebAPI.Business.HelperModels
{
public class DeleteCustomerRequest
{
public string? Id { get; set; }

public bool IsSuccess { get; set; }
}
}

+ 93
- 0
Backend/Diligent.WebAPI.Business/Services/AuthenticationService.cs ファイルの表示

@@ -0,0 +1,93 @@
using Diligent.WebAPI.Data.Entities;
using Microsoft.AspNetCore.Identity;
using Microsoft.Extensions.Configuration;
using Microsoft.IdentityModel.Tokens;
using System;
using System.Collections.Generic;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Security.Claims;
using System.Text;
using System.Threading.Tasks;

namespace Diligent.WebAPI.Business.Services
{
public class AuthenticationService:IAuthenticationService
{
private readonly UserManager<Customer> _customerManager;
private readonly IConfiguration _configuration;
private Customer customer;
public AuthenticationService(UserManager<Customer> customerManager,IConfiguration configuration)
{
_customerManager = customerManager;
_configuration = configuration;
}

public async Task<bool> ValidateCustomer(string username,string password)
{
customer = await _customerManager.FindByNameAsync(username);
return (customer != null && await _customerManager.CheckPasswordAsync
(customer, password));
}

public async Task<Customer> GetCustomer(string username)
{
customer = await _customerManager.FindByNameAsync(username);
return customer;
}

public async Task<string> GenerateToken()
{
var signingCredentials = GetSigningCredentials();
var claims = await GetClaims();
var tokenOptions = GenerateTokenOptions(signingCredentials, claims);
// return created token as string
return new JwtSecurityTokenHandler().WriteToken(tokenOptions);
}

private async Task<List<Claim>> GetClaims()
{
//method creates a list of claims with the user name inside and all the roles the user belongs to.
Claim claim = new (ClaimTypes.Name, customer.UserName);

var claims = new List<Claim>
{
claim
};

IList<string> roles = await _customerManager.GetRolesAsync(customer);

foreach (var role in roles)
{
claims.Add(new Claim(ClaimTypes.Role, role));
}

return claims;
}

private SigningCredentials GetSigningCredentials()
{
// This method returns secret key as a byte array with the security algorithm
var jwtSettings = _configuration.GetSection("JwtSettings");
var key = Encoding.UTF8.GetBytes(jwtSettings["jwtSecret"]);
var secret = new SymmetricSecurityKey(key);
return new SigningCredentials(secret, SecurityAlgorithms.HmacSha256);
}

private JwtSecurityToken GenerateTokenOptions(SigningCredentials
signingCredentials, List<Claim> claims)
{
//return an object of the JwtSecurityToken type with all of the required options
var jwtSettings = _configuration.GetSection("JwtSettings");
var tokenOptions = new JwtSecurityToken
(
issuer: jwtSettings.GetSection("validIssuer").Value,
audience: jwtSettings.GetSection("validAudience").Value,
claims: claims,
expires: DateTime.Now.AddDays(7),
signingCredentials: signingCredentials
);
return tokenOptions;
}
}
}

+ 23
- 0
Backend/Diligent.WebAPI.Business/Services/BaseMongo.cs ファイルの表示

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

namespace Diligent.WebAPI.Business.MongoServices
{
public class BaseMongo<T> where T : class
{
protected readonly IMongoCollection<T> _mongoCollection;
private readonly MongoClient _mongoClient;
private readonly IMongoDatabase _mongoDatabase;
public BaseMongo(IOptions<WebApiDatabaseSettings> webApiDatabaseSettings,string nameOfCollection)
{
_mongoClient = new MongoClient(
webApiDatabaseSettings.Value.ConnectionString);

_mongoDatabase = _mongoClient.GetDatabase(
webApiDatabaseSettings.Value.DatabaseName);

_mongoCollection = _mongoDatabase.GetCollection<T>(nameOfCollection);
}
}
}

+ 16
- 0
Backend/Diligent.WebAPI.Business/Services/IAuthenticationService.cs ファイルの表示

@@ -0,0 +1,16 @@
using Diligent.WebAPI.Data.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

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

+ 28
- 0
Backend/Diligent.WebAPI.Business/Services/InsuranceCompanyService.cs ファイルの表示

@@ -0,0 +1,28 @@
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);
}
}

+ 28
- 0
Backend/Diligent.WebAPI.Business/Services/InsurancePolicyService.cs ファイルの表示

@@ -0,0 +1,28 @@
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);
}
}

+ 29
- 0
Backend/Diligent.WebAPI.Business/Services/InsurerService.cs ファイルの表示

@@ -0,0 +1,29 @@
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);
}
}

+ 38
- 0
Backend/Diligent.WebAPI.Business/Services/RequestService.cs ファイルの表示

@@ -0,0 +1,38 @@
using Diligent.WebAPI.Business.HelperModels;
using Diligent.WebAPI.Business.MongoServices;
using Diligent.WebAPI.Data;
using Diligent.WebAPI.Data.Entities;
using Microsoft.Extensions.Options;
using MongoDB.Driver;

namespace Diligent.WebAPI.Business.Services
{
public class RequestService : BaseMongo<Request>
{
public RequestService(IOptions<WebApiDatabaseSettings> webApiDatabaseSettings) :
base(webApiDatabaseSettings, "Request")
{ }

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

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

public async Task CreateRequestAsync(Request req) =>
await _mongoCollection.InsertOneAsync(req);

public async Task<DeleteCustomerRequest> RemoveRequestAsync(string customerId,string roomId)
{
var request = await _mongoCollection.Find(x => x.SenderId == customerId && x.RoomId == roomId).FirstOrDefaultAsync();
if (request == null)
return new DeleteCustomerRequest { IsSuccess = false };

var id = request.Id;

_mongoCollection.DeleteOne(x => x.Id == request.Id);
return new DeleteCustomerRequest { Id = id, IsSuccess = true };
}
}
}

+ 64
- 0
Backend/Diligent.WebAPI.Business/Services/RoomService.cs ファイルの表示

@@ -0,0 +1,64 @@
using Diligent.WebAPI.Business.MongoServices;
using Diligent.WebAPI.Data;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Data.HelperModels;
using Microsoft.Extensions.Options;
using MongoDB.Driver;

namespace Diligent.WebAPI.Business.Services
{
public class RoomService : BaseMongo<Room>
{
public RoomService(IOptions<WebApiDatabaseSettings> webApiDatabaseSettings) :
base(webApiDatabaseSettings, "Room")
{ }

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

public async Task CreateRoomAsync(Room room) =>
await _mongoCollection.InsertOneAsync(room);

public async Task<bool> AddCustomerToRoom(string customerId,string roomId)
{
var room = await _mongoCollection.Find(k => k.Id == roomId).FirstOrDefaultAsync();

if (room is null)
return false;

room.Customers.Add(new CustomerDTO { CustomerId = customerId, DateOfEnteringRoom = DateTime.Now});

await _mongoCollection.ReplaceOneAsync(x => x.Id == roomId, room);

return true;
}
public async Task<Room> GetRoomAsync(string roomId) =>
await _mongoCollection.Find(r => r.Id == roomId).FirstOrDefaultAsync();

public async Task<bool> AddMessage(string roomId,Message message)
{
var room = await GetRoomAsync(roomId);

if (room is null)
return false;

room.Messages.Add(message);
await _mongoCollection.ReplaceOneAsync(x => x.Id == roomId, room);

return true;
}

public async Task<List<Message>> GetMessagesForSpecificRoom(string roomId)
{
var room = await _mongoCollection.Find(r => r.Id == roomId).FirstOrDefaultAsync();

if (room is null) return new List<Message>();

return room.Messages;
}

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

+ 22
- 0
Backend/Diligent.WebAPI.Data/Diligent.WebAPI.Data.csproj ファイルの表示

@@ -0,0 +1,22 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="AspNetCore.Identity.MongoDbCore" Version="3.1.2" />
<PackageReference Include="AutoMapper" Version="11.0.1" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="11.0.0" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.2.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="MongoDB.Driver" Version="2.16.1" />
</ItemGroup>

</Project>

+ 15
- 0
Backend/Diligent.WebAPI.Data/Entities/BaseMongo.cs ファイルの表示

@@ -0,0 +1,15 @@
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace Diligent.WebAPI.Data.Entities
{
public class BaseMongo
{
[BsonId]
[BsonRepresentation(BsonType.ObjectId)]
public string? Id { get; set; }
public DateTime CreatedAtUtc { get; set; } = DateTime.UtcNow;
public DateTime? UpdatedAtUtc { get; set; }
public DateTime? DeletedAtUtc { get; set; }
}
}

+ 12
- 0
Backend/Diligent.WebAPI.Data/Entities/Customer.cs ファイルの表示

@@ -0,0 +1,12 @@
using AspNetCore.Identity.MongoDbCore.Models;
using MongoDbGenericRepository.Attributes;

namespace Diligent.WebAPI.Data.Entities
{
[CollectionName("Customer")]
public class Customer : MongoIdentityUser<Guid>
{
public string FirstName { get; set; }
public string LastName { get; set; }
}
}

+ 14
- 0
Backend/Diligent.WebAPI.Data/Entities/InsuranceCompanyMongo.cs ファイルの表示

@@ -0,0 +1,14 @@
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; }
}
}

+ 11
- 0
Backend/Diligent.WebAPI.Data/Entities/InsurancePolicyMongo.cs ファイルの表示

@@ -0,0 +1,11 @@
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; }
}

+ 22
- 0
Backend/Diligent.WebAPI.Data/Entities/InsurerMongo.cs ファイルの表示

@@ -0,0 +1,22 @@
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; }
}
}

+ 17
- 0
Backend/Diligent.WebAPI.Data/Entities/Message.cs ファイルの表示

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

namespace Diligent.WebAPI.Data.Entities
{
public class Message : BaseMongo
{
public string Content { get; set; }

public string SenderId { get; set; }

public string Username { get; set; }
}
}

+ 14
- 0
Backend/Diligent.WebAPI.Data/Entities/Request.cs ファイルの表示

@@ -0,0 +1,14 @@
namespace Diligent.WebAPI.Data.Entities
{
public class Request : BaseMongo
{
public string SenderId { get; set; }
public string SenderUsername { get; set; }
//public bool Accepted { get; set; }

// in case we would need another type of request
//public string Type { get; set; }
public string RoomId { get; set; }
public string RoomName { get; set; }
}
}

+ 10
- 0
Backend/Diligent.WebAPI.Data/Entities/Roles.cs ファイルの表示

@@ -0,0 +1,10 @@
using AspNetCore.Identity.MongoDbCore.Models;
using MongoDbGenericRepository.Attributes;

namespace Diligent.WebAPI.Data.Entities
{
[CollectionName("Roles")]
public class Roles : MongoIdentityRole<Guid>
{
}
}

+ 22
- 0
Backend/Diligent.WebAPI.Data/Entities/Room.cs ファイルの表示

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

namespace Diligent.WebAPI.Data.Entities
{
public class Room : BaseMongo
{
public string Name { get; set; }

public List<CustomerDTO> Customers { get; set; } = new();

public List<Message> Messages { get; set; } = new();

public bool IsOneToOne { get; set; } = false;

public string CreatedBy { get; set; }
}
}

+ 9
- 0
Backend/Diligent.WebAPI.Data/Extensions/ServiceCollection.cs ファイルの表示

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

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

+ 9
- 0
Backend/Diligent.WebAPI.Data/Extensions/ServiceScope.cs ファイルの表示

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

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

+ 15
- 0
Backend/Diligent.WebAPI.Data/HelperModels/CustomerDTO.cs ファイルの表示

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

namespace Diligent.WebAPI.Data.HelperModels
{
public class CustomerDTO
{
public string CustomerId { get; set; }

public DateTime DateOfEnteringRoom { get; set; }
}
}

+ 3
- 0
Backend/Diligent.WebAPI.Data/Usings.cs ファイルの表示

@@ -0,0 +1,3 @@
global using Microsoft.EntityFrameworkCore;
global using Microsoft.Extensions.Configuration;
global using Microsoft.Extensions.DependencyInjection;

+ 15
- 0
Backend/Diligent.WebAPI.Data/WebApiDatabaseSettings.cs ファイルの表示

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

namespace Diligent.WebAPI.Data
{
public class WebApiDatabaseSettings
{
public string ConnectionString { get; set; } = null!;

public string DatabaseName { get; set; } = null!;
}
}

+ 39
- 0
Backend/Diligent.WebAPI.Host/Controllers/ChatController.cs ファイルの表示

@@ -0,0 +1,39 @@
using AutoMapper;
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Data.Entities;
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;
}

[HttpGet]
public async Task<IActionResult> GetAll()
{
return Ok(await _roomService.GetRoomsAsync());
}

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

await _roomService.CreateRoomAsync(room);

return Ok(room);
}
}
}

+ 88
- 0
Backend/Diligent.WebAPI.Host/Controllers/CustomerController.cs ファイルの表示

@@ -0,0 +1,88 @@
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;

public CustomerController(UserManager<Customer> customerManager, RoleManager<Roles> roleManager,IAuthenticationService authenticationService,
IMapper mapper)
{
_customerManager = customerManager;
_roleManager = roleManager;
_authenticationService = authenticationService;
_mapper = mapper;
}
[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 _authenticationService.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, "Customer");

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;
}
}
}

+ 86
- 0
Backend/Diligent.WebAPI.Host/Controllers/InsuranceCompanyController.cs ファイルの表示

@@ -0,0 +1,86 @@
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();
}
}
}

+ 120
- 0
Backend/Diligent.WebAPI.Host/Controllers/InsurancePolicyController.cs ファイルの表示

@@ -0,0 +1,120 @@
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();
}
}
}

+ 104
- 0
Backend/Diligent.WebAPI.Host/Controllers/InsurerController.cs ファイルの表示

@@ -0,0 +1,104 @@
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();
}
}
}

+ 21
- 0
Backend/Diligent.WebAPI.Host/Controllers/MessageController.cs ファイルの表示

@@ -0,0 +1,21 @@
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);
}
}

+ 91
- 0
Backend/Diligent.WebAPI.Host/Controllers/RequestController.cs ファイルの表示

@@ -0,0 +1,91 @@
using AutoMapper;
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.DTOs.Customer;
using Diligent.WebAPI.Host.DTOs.Request;
using Diligent.WebAPI.Host.Exceptions;
using Diligent.WebAPI.Host.Mediator.Request.Commands;
using Diligent.WebAPI.Host.Mediator.Request.Queries;
using MediatR;
using Microsoft.AspNetCore.Mvc;

namespace Diligent.WebAPI.Host.Controllers
{
[ApiVersion("1.0")]
[ApiController]
[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)
{
_requestService = requestService;
_mapper = mapper;
_mediator = mediator;
}

[HttpGet]
public async Task<ActionResult> GetRequests()
{
return Ok(await _requestService.GetRequestsAsync());
}

[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);
}

// get all rooms for which exist at least one request from customer
[HttpGet("request-rooms")]
public async Task<ActionResult<List<RequestRoomReadDTO>>> GetRoomsForWhichRequestExist() =>
await _mediator.Send(new GetRoomsForWhichRequestExistQuery());

[HttpGet("room-customers")]
public async Task<ActionResult<List<CustomerRequestRoomReadDTO>>> GetCustomersForSpecificRequestRoom(string id) =>
await _mediator.Send(new GetSendersForSpecificRequestRoomQuery(id));

[HttpPost("accept-request")]
public async Task<ActionResult> AcceptCustomerRequest(AcceptCustomerDTO acceptCustomerDTO)
{
var id = await _mediator.Send(new AcceptCustomerRequestCommand(acceptCustomerDTO.customerId, acceptCustomerDTO.roomId));
return Ok(id);
}

[HttpPost("reject-request")]
public async Task<ActionResult> RejectCustomerRequest(AcceptCustomerDTO acceptCustomerDTO)
{
var id = await _mediator.Send(new RejectCustomerRequestCommand(acceptCustomerDTO.customerId, acceptCustomerDTO.roomId));
return Ok(id);
}
[HttpPost("join-request")]
public async Task<IActionResult> CreateRequest(RequestCreateDTO resource)
{
if (resource == null)
throw new BadHttpRequestException("Resource object cannot be null.");

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

await _requestService.CreateRequestAsync(room);

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

}
}

+ 11
- 0
Backend/Diligent.WebAPI.Host/DTOs/Customer/CustomerCreateDTO.cs ファイルの表示

@@ -0,0 +1,11 @@
namespace Diligent.WebAPI.Host.DTOs.Customer
{
public class CustomerCreateDTO
{
public string FirstName { get; set; }
public string LastName { get; set; }
public string Email { get; set; }
public string Username { get; set; }
public string Password { get; set; }
}
}

+ 13
- 0
Backend/Diligent.WebAPI.Host/DTOs/Customer/CustomerLoginDTO.cs ファイルの表示

@@ -0,0 +1,13 @@
using System.ComponentModel.DataAnnotations;

namespace Diligent.WebAPI.Host.DTOs.Customer
{
public class CustomerLoginDTO
{
[Required(ErrorMessage = "Username is required")]
public string Username { get; set; }

[Required(ErrorMessage = "Password is required")]
public string Password { get; set; }
}
}

+ 13
- 0
Backend/Diligent.WebAPI.Host/DTOs/Customer/CustomerReadDTO.cs ファイルの表示

@@ -0,0 +1,13 @@
namespace Diligent.WebAPI.Host.DTOs.Customer
{
public class CustomerReadDTO
{
public string Id { get; set; }
public string Username { get; set; }
public string Token { get; set; }
public string Email { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public List<string> Roles { get; set; }
}
}

+ 10
- 0
Backend/Diligent.WebAPI.Host/DTOs/Customer/CustomerRequestRoomReadDTO.cs ファイルの表示

@@ -0,0 +1,10 @@
namespace Diligent.WebAPI.Host.DTOs.Customer
{
public class CustomerRequestRoomReadDTO
{
public string Id { get; set; }
public string SenderId { get; set; }
public string SenderUsername { get; set; }
public string RoomId { get; set; }
}
}

+ 14
- 0
Backend/Diligent.WebAPI.Host/DTOs/InsuranceCompanyMongo/InsuranceCompanyCreateDTO.cs ファイルの表示

@@ -0,0 +1,14 @@
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; }
}
}

+ 18
- 0
Backend/Diligent.WebAPI.Host/DTOs/InsuranceCompanyMongo/InsuranceCompanyReadDTO.cs ファイルの表示

@@ -0,0 +1,18 @@
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; }
}
}

+ 21
- 0
Backend/Diligent.WebAPI.Host/DTOs/InsurancePolicyMongo/InsurancePolicyReturnDTO.cs ファイルの表示

@@ -0,0 +1,21 @@
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; }
}
}

+ 12
- 0
Backend/Diligent.WebAPI.Host/DTOs/InsurancePolicyMongo/InsurancePolicySaveDTO.cs ファイルの表示

@@ -0,0 +1,12 @@
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; }
}
}

+ 23
- 0
Backend/Diligent.WebAPI.Host/DTOs/InsurerMongo/InsurerReturnDTO.cs ファイルの表示

@@ -0,0 +1,23 @@
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; }
}
}

+ 18
- 0
Backend/Diligent.WebAPI.Host/DTOs/InsurerMongo/InsurerSaveDTO.cs ファイルの表示

@@ -0,0 +1,18 @@
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; }
}
}

+ 8
- 0
Backend/Diligent.WebAPI.Host/DTOs/Request/AcceptCustomerDTO.cs ファイルの表示

@@ -0,0 +1,8 @@
namespace Diligent.WebAPI.Host.DTOs.Request
{
public class AcceptCustomerDTO
{
public string customerId { get; set; }
public string roomId { get; set; }
}
}

+ 10
- 0
Backend/Diligent.WebAPI.Host/DTOs/Request/RequestCreateDTO.cs ファイルの表示

@@ -0,0 +1,10 @@
namespace Diligent.WebAPI.Host.DTOs.Request
{
public class RequestCreateDTO
{
public string SenderId { get; set; }
public string SenderUsername { get; set; }
public string RoomId { get; set; }
public string RoomName { get; set; }
}
}

+ 8
- 0
Backend/Diligent.WebAPI.Host/DTOs/Request/RequestRoomReadDTO.cs ファイルの表示

@@ -0,0 +1,8 @@
namespace Diligent.WebAPI.Host.DTOs.Request
{
public class RequestRoomReadDTO
{
public string Id { get; set; }
public string Name { get; set; }
}
}

+ 37
- 0
Backend/Diligent.WebAPI.Host/Diligent.WebAPI.Host.csproj ファイルの表示

@@ -0,0 +1,37 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>

<ItemGroup>
<None Include="..\.editorconfig" Link=".editorconfig" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="11.0.0" />
<PackageReference Include="MediatR" Version="10.0.1" />
<PackageReference Include="MediatR.Extensions.Microsoft.DependencyInjection" Version="10.0.1" />
<PackageReference Include="Microsoft.AspNet.WebApi.Core" Version="5.2.9" />
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="6.0.6" />
<PackageReference Include="Microsoft.AspNetCore.Identity" Version="2.2.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Versioning" Version="5.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="6.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Serilog" Version="2.11.0" />
<PackageReference Include="Serilog.AspNetCore" Version="5.0.0" />
<PackageReference Include="Serilog.Sinks.Console" Version="4.0.1" />
<PackageReference Include="Serilog.Sinks.File" Version="5.0.0" />
<PackageReference Include="Serilog.Sinks.Seq" Version="5.1.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Diligent.WebAPI.Business\Diligent.WebAPI.Business.csproj" />
<ProjectReference Include="..\Diligent.WebAPI.Data\Diligent.WebAPI.Data.csproj" />
</ItemGroup>

</Project>

+ 7
- 0
Backend/Diligent.WebAPI.Host/Diligent.WebAPI.Host.csproj.user ファイルの表示

@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Controller_SelectedScaffolderID>ApiControllerEmptyScaffolder</Controller_SelectedScaffolderID>
<Controller_SelectedScaffolderCategoryPath>root/Common/Api</Controller_SelectedScaffolderCategoryPath>
</PropertyGroup>
</Project>

+ 13
- 0
Backend/Diligent.WebAPI.Host/Exceptions/BaseException.cs ファイルの表示

@@ -0,0 +1,13 @@
using System.Runtime.Serialization;

namespace Diligent.WebAPI.Host.Exceptions
{
public class BaseException : Exception
{
public BaseException() { }
public BaseException(string? message) : base(message) { }
public BaseException(string message, Exception innerException) : base(message, innerException) { }
public BaseException(SerializationInfo info, StreamingContext context) : base(info, context) { }

}
}

+ 14
- 0
Backend/Diligent.WebAPI.Host/Exceptions/ErrorDetails.cs ファイルの表示

@@ -0,0 +1,14 @@
using System.Text.Json;

namespace Diligent.WebAPI.Host.Exceptions
{
public class ErrorDetails
{
public string? Message { get; set; }
public int StatusCode { get; set; }
public override string ToString()
{
return JsonSerializer.Serialize(this);
}
}
}

+ 14
- 0
Backend/Diligent.WebAPI.Host/Exceptions/NotFoundException.cs ファイルの表示

@@ -0,0 +1,14 @@
using System.Runtime.Serialization;

namespace Diligent.WebAPI.Host.Exceptions
{
public class NotFoundException : BaseException
{

public NotFoundException() { }
public NotFoundException(string? message) : base(message) { }
public NotFoundException(string message, Exception innerException) : base(message, innerException) { }
public NotFoundException(SerializationInfo info, StreamingContext context) : base(info, context) { }

}
}

+ 18
- 0
Backend/Diligent.WebAPI.Host/Extensions/ApiConfiguration.cs ファイルの表示

@@ -0,0 +1,18 @@
using Microsoft.AspNetCore.Mvc;

namespace Diligent.WebAPI.Host.Extensions
{
public static class ApiConfiguration
{
public static void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddApiVersioning(options =>
{
options.AssumeDefaultVersionWhenUnspecified = true;
options.ReportApiVersions = true;
options.DefaultApiVersion = new ApiVersion(1, 0);
});
}
}
}

+ 12
- 0
Backend/Diligent.WebAPI.Host/Extensions/ExceptionHandlingMiddlewareExtensions.cs ファイルの表示

@@ -0,0 +1,12 @@
using Diligent.WebAPI.Host.Middlewares;

namespace Diligent.WebAPI.Host.Extensions
{
public static class ExceptionHandlingMiddlewareExtensions
{
public static void ConfigureCustomExceptionMiddleware(this IApplicationBuilder app)
{
app.UseMiddleware<ExceptionHandlingMiddleware>();
}
}
}

+ 14
- 0
Backend/Diligent.WebAPI.Host/Extensions/WebApp.cs ファイルの表示

@@ -0,0 +1,14 @@

namespace Diligent.WebAPI.Host.Extensions;

public static class WebApp
{
public static void SetupData(this WebApplication app)
{
IServiceScope serviceScope = app.Services.CreateScope();
serviceScope.SetupData();

app.ConfigureCustomExceptionMiddleware();

}
}

+ 99
- 0
Backend/Diligent.WebAPI.Host/Extensions/WebAppBuilder.cs ファイルの表示

@@ -0,0 +1,99 @@
using Diligent.WebAPI.Business.MongoServices;
using Diligent.WebAPI.Data;
using Diligent.WebAPI.Host.Hubs;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.Mapper;
using MediatR;
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;


namespace Diligent.WebAPI.Host.Extensions;

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.AddSingleton<InsuranceCompanyService>();
builder.Services.AddSingleton<InsurancePolicyService>();
builder.Services.AddSingleton<InsurerService>();
builder.Services.AddSingleton<RoomService>();
builder.Services.AddSingleton<RequestService>();

builder.Services.AddMediatR(Assembly.GetExecutingAssembly());
builder.Services.AddSignalR();

var mongoDbSettings = configuration.GetSection("WebApiDB");

builder.Services.AddIdentity<Customer, Roles>()
.AddMongoDbStores<Customer, Roles, Guid>
(
mongoDbSettings["ConnectionString"], mongoDbSettings["DatabaseName"]
);

var jwtSettings = configuration.GetSection("JwtSettings");

builder.Services.AddAuthentication(opt =>
{
opt.DefaultAuthenticateScheme = JwtBearerDefaults.AuthenticationScheme;
opt.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme;
})
.AddJwtBearer(options =>
{
options.TokenValidationParameters = new TokenValidationParameters
{
ValidateIssuer = true,
ValidateAudience = true,
ValidateLifetime = true,
ValidateIssuerSigningKey = true,
ValidIssuer = jwtSettings.GetSection("validIssuer").Value,
ValidAudience = jwtSettings.GetSection("validAudience").Value,
IssuerSigningKey = new SymmetricSecurityKey(Encoding.UTF8.GetBytes(jwtSettings["jwtSecret"]))
};
});

builder.Services.AddCors(options =>
{
options.AddPolicy("ClientPermission", policy =>
{
policy.AllowAnyHeader()
.AllowAnyMethod()
.WithOrigins("http://localhost:3000")
.AllowCredentials();
});
});

var logger = new LoggerConfiguration()
.ReadFrom.Configuration(builder.Configuration)
.Enrich.FromLogContext()
.CreateLogger();

builder.Logging.ClearProviders();
builder.Logging.AddSerilog(logger);

builder.Services.AddSingleton<Serilog.ILogger>(Log.Logger);

// SignalR group chat configuration
builder.Services.AddSingleton<IDictionary<string, UserConnection>>(opts => new Dictionary<string, UserConnection>());
}
}

+ 7
- 0
Backend/Diligent.WebAPI.Host/Hubs/Attachment.cs ファイルの表示

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

+ 67
- 0
Backend/Diligent.WebAPI.Host/Hubs/ChatHub.cs ファイルの表示

@@ -0,0 +1,67 @@
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.Mediator.Messages.Commands;
using MediatR;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.SignalR;

namespace Diligent.WebAPI.Host.Hubs
{
public class ChatHub : Hub<IChatClient>
{
private readonly IDictionary<string, UserConnection> _connections;
private readonly IMediator _mediator;

public ChatHub(IDictionary<string, UserConnection> connections,IMediator mediator)
{
_connections = connections;
_mediator = mediator;
}

//public override Task OnDisconnectedAsync(Exception? exception)
//{
// if (_connections.TryGetValue(Context.ConnectionId, out UserConnection room))
// {
// _connections.Remove(Context.ConnectionId);
// Clients.Group(room.RoomId).ReceiveMessage(new ChatMessage { User = room.UserId, Message = $"{room.UserId} has left room" });
// }

// return base.OnDisconnectedAsync(exception);
//}

// Not completed
//[HubMethodName("SendMessageToUser")]
//public async Task DirectMessage(string message)
//{
// // Send message to another user
// await Clients.User(message.User).ReceiveMessage(new ChatMessage { User = "Ermin", Message = message.Message });
//}

[HubMethodName("SendMessageToGroup")]
public async Task SendMessageToGroup(ChatMessage message)
{
// Find user's room and send message to everyone
//if (_connections.TryGetValue(Context.ConnectionId, out UserConnection room))
if (_connections.TryGetValue(message.ConnId, out UserConnection room))
{
await Clients.Group(room.RoomId).ReceiveMessage(new ChatMessage { User = room.UserId, Message = message.Message });
await _mediator.Send(new AddMessageCommand(room.RoomId, new Message {Content=message.Message,SenderId=message.UserId,Username=room.Username }));
}
}

[HubMethodName("JoinRoom")]
public async Task JoinRoom(UserConnection userConnection)
{
// Check is user in requested room
var result = _connections.Where(x => x.Value.UserId == userConnection.UserId && x.Value.RoomId == userConnection.RoomId).FirstOrDefault();

// If user is not in room, add him
// Return message "User has joined room" to all users in room
if(result.Value == null)
{
await Groups.AddToGroupAsync(Context.ConnectionId, userConnection.RoomId);
_connections[Context.ConnectionId] = userConnection;
await Clients.Group(userConnection.RoomId).ReceiveMessage(new ChatMessage { User = userConnection.UserId, Message = $"{userConnection.Username} has joined room", ConnId = Context.ConnectionId });
}
}
}
}

+ 14
- 0
Backend/Diligent.WebAPI.Host/Hubs/ChatMessage.cs ファイルの表示

@@ -0,0 +1,14 @@
namespace Diligent.WebAPI.Host.Hubs
{
public class ChatMessage
{
public string? UserId { get; set; }
public string? User { get; set; }
public string Message { get; set; }
public DateTime Created { get; set; } = DateTime.Now;
public Attachment? Attachment { get; set; }

// Context.ConnectionId generated by SignalR
public string ConnId { get; set; }
}
}

+ 7
- 0
Backend/Diligent.WebAPI.Host/Hubs/IChatClient.cs ファイルの表示

@@ -0,0 +1,7 @@
namespace Diligent.WebAPI.Host.Hubs
{
public interface IChatClient
{
Task ReceiveMessage(ChatMessage message);
}
}

+ 14
- 0
Backend/Diligent.WebAPI.Host/Hubs/UserConnection.cs ファイルの表示

@@ -0,0 +1,14 @@
namespace Diligent.WebAPI.Host.Hubs
{
public class UserConnection
{
// UserId in hub
public string UserId { get; set; }

// Username in hub
public string Username { get; set; }

// RoomId in hub
public string RoomId { get; set; }
}
}

+ 92
- 0
Backend/Diligent.WebAPI.Host/Logging/webapi-20220622.log ファイルの表示

@@ -0,0 +1,92 @@
[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
]

+ 1933
- 0
Backend/Diligent.WebAPI.Host/Logging/webapi-20220623.log
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 542
- 0
Backend/Diligent.WebAPI.Host/Logging/webapi-20220624.log ファイルの表示

@@ -0,0 +1,542 @@
[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
]

+ 782
- 0
Backend/Diligent.WebAPI.Host/Logging/webapi-20220627.log ファイルの表示

@@ -0,0 +1,782 @@
[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
]

+ 1001
- 0
Backend/Diligent.WebAPI.Host/Logging/webapi-20220628.log
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 1
- 0
Backend/Diligent.WebAPI.Host/Logging/webapi-20220629.log ファイルの表示

@@ -0,0 +1 @@
]

+ 1
- 0
Backend/Diligent.WebAPI.Host/Logging/webapi-20220630.log ファイルの表示

@@ -0,0 +1 @@
]

+ 563
- 0
Backend/Diligent.WebAPI.Host/Logging/webapi-20220701.log ファイルの表示

@@ -0,0 +1,563 @@
[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
]

+ 1395
- 0
Backend/Diligent.WebAPI.Host/Logging/webapi-20220704.log
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 1618
- 0
Backend/Diligent.WebAPI.Host/Logging/webapi-20220705.log
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 2476
- 0
Backend/Diligent.WebAPI.Host/Logging/webapi-20220706.log
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 26
- 0
Backend/Diligent.WebAPI.Host/Mapper/CompanyMappingProfile.cs ファイルの表示

@@ -0,0 +1,26 @@
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
}
}
}

+ 14
- 0
Backend/Diligent.WebAPI.Host/Mapper/CustomerMappingProfile.cs ファイルの表示

@@ -0,0 +1,14 @@
using AutoMapper;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.DTOs.Customer;

namespace Diligent.WebAPI.Host.Mapper
{
public class CustomerMappingProfile : Profile
{
public CustomerMappingProfile()
{
CreateMap<Customer, CustomerReadDTO>();
}
}
}

+ 26
- 0
Backend/Diligent.WebAPI.Host/Mapper/InsurerMappingProfile.cs ファイルの表示

@@ -0,0 +1,26 @@
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
}
}
}

+ 18
- 0
Backend/Diligent.WebAPI.Host/Mapper/PolicyMappingProfiles.cs ファイルの表示

@@ -0,0 +1,18 @@
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>();


}
}
}

+ 17
- 0
Backend/Diligent.WebAPI.Host/Mapper/RequestMappingProfile.cs ファイルの表示

@@ -0,0 +1,17 @@
using AutoMapper;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.DTOs.Customer;
using Diligent.WebAPI.Host.DTOs.Request;

namespace Diligent.WebAPI.Host.Mapper
{
public class RequestMappingProfile : Profile
{
public RequestMappingProfile()
{
CreateMap<RequestCreateDTO, Request>();
CreateMap<Room, RequestRoomReadDTO>();
CreateMap<Request, CustomerRequestRoomReadDTO>();
}
}
}

+ 16
- 0
Backend/Diligent.WebAPI.Host/Mediator/Messages/Commands/AddMessageCommand.cs ファイルの表示

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

namespace Diligent.WebAPI.Host.Mediator.Messages.Commands
{
public class AddMessageCommand:IRequest<Unit>
{
public string roomId { get;}
public Message message { get;}
public AddMessageCommand(string roomId,Message message)
{
this.roomId = roomId;
this.message = message;
}
}
}

+ 27
- 0
Backend/Diligent.WebAPI.Host/Mediator/Messages/Handlers/AddMessageHandler.cs ファイルの表示

@@ -0,0 +1,27 @@
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.Exceptions;
using Diligent.WebAPI.Host.Mediator.Messages.Commands;
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Messages.Handlers
{
public class AddMessageHandler : IRequestHandler<AddMessageCommand, Unit>
{
private readonly RoomService _roomService;

public AddMessageHandler(RoomService roomService)
{
_roomService = roomService;
}
public async Task<Unit> Handle(AddMessageCommand request, CancellationToken cancellationToken)
{
var result = await _roomService.AddMessage(request.roomId,request.message);

if (!result)
throw new NotFoundException("Room id doesn't exist");

return new Unit();
}
}
}

+ 15
- 0
Backend/Diligent.WebAPI.Host/Mediator/Request/Commands/AcceptCustomerRequestCommand.cs ファイルの表示

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

namespace Diligent.WebAPI.Host.Mediator.Request.Commands
{
public class AcceptCustomerRequestCommand:IRequest<string>
{
public AcceptCustomerRequestCommand(string customerId,string roomId)
{
CustomerId = customerId;
RoomId = roomId;
}
public string CustomerId { get; }
public string RoomId { get; }
}
}

+ 15
- 0
Backend/Diligent.WebAPI.Host/Mediator/Request/Commands/RejectCustomerRequestCommand.cs ファイルの表示

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

namespace Diligent.WebAPI.Host.Mediator.Request.Commands
{
public class RejectCustomerRequestCommand:IRequest<string>
{
public RejectCustomerRequestCommand(string customerId, string roomId)
{
CustomerId = customerId;
RoomId = roomId;
}
public string CustomerId { get; }
public string RoomId { get; }
}
}

+ 33
- 0
Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/AcceptCustomerRequestHandler.cs ファイルの表示

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

namespace Diligent.WebAPI.Host.Mediator.Request.Handlers
{
public class AcceptCustomerRequestHandler : IRequestHandler<AcceptCustomerRequestCommand, string?>
{
private readonly RequestService _requestService;
private readonly RoomService _roomService;

public AcceptCustomerRequestHandler(RequestService requestService,RoomService roomService)
{
_requestService = requestService;
_roomService = roomService;
}
public async Task<string?> Handle(AcceptCustomerRequestCommand request, CancellationToken cancellationToken)
{
var result1 = await _roomService.AddCustomerToRoom(request.CustomerId, request.RoomId);

if (!result1)
throw new NotFoundException($"Room with id={request.RoomId} doesn't exist");

var result2 = await _requestService.RemoveRequestAsync(request.CustomerId, request.RoomId);

if (!result2.IsSuccess)
throw new BadHttpRequestException("customerId or roomId is invalid");

return result2.Id;
}
}
}

+ 44
- 0
Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/GetRoomsForWhichRequestExistHandler.cs ファイルの表示

@@ -0,0 +1,44 @@
using AutoMapper;
using Diligent.WebAPI.Business.Services;
using Diligent.WebAPI.Data.Entities;
using Diligent.WebAPI.Host.DTOs.Request;
using Diligent.WebAPI.Host.Mediator.Request.Queries;
using MediatR;

namespace Diligent.WebAPI.Host.Mediator.Request.Handlers
{
public class GetRoomsForWhichRequestExistHandler : IRequestHandler<GetRoomsForWhichRequestExistQuery, List<RequestRoomReadDTO>>
{
private readonly RequestService _requestService;
private readonly RoomService _roomService;
private readonly IMapper _mapper;

public GetRoomsForWhichRequestExistHandler(RequestService requestService,RoomService roomService,IMapper mapper)
{
_requestService = requestService;
_roomService = roomService;
_mapper = mapper;
}
public async Task<List<RequestRoomReadDTO>> Handle(GetRoomsForWhichRequestExistQuery request, CancellationToken cancellationToken)
{
var requests = await _requestService.GetRequestsAsync();
var rooms = await _roomService.GetRoomsAsync();
List<Room> temp = new();
foreach (var req in requests)
{
foreach (var room in rooms)
{
if (req.RoomId == room.Id)
{
if (!temp.Contains(room))
{
temp.Add(room);
}
}

}
}
return _mapper.Map<List<RequestRoomReadDTO>>(temp);
}
}
}

+ 33
- 0
Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/GetSendersForSpecificRoomHandler.cs ファイルの表示

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

namespace Diligent.WebAPI.Host.Mediator.Request.Handlers
{
public class GetSendersForSpecificRoomHandler : IRequestHandler<GetSendersForSpecificRequestRoomQuery, List<CustomerRequestRoomReadDTO>>
{
private readonly RequestService _requestService;
private readonly IMapper _mapper;

public GetSendersForSpecificRoomHandler(RequestService requestService,IMapper mapper)
{
_requestService = requestService;
_mapper = mapper;
}
public async Task<List<CustomerRequestRoomReadDTO>> Handle(GetSendersForSpecificRequestRoomQuery request, CancellationToken cancellationToken)
{
var requests = await _requestService.GetRequestsAsync();
List<CustomerRequestRoomReadDTO> users = new();
foreach (var req in requests)
{
if(req.RoomId == request.RoomId)
{
users.Add(_mapper.Map<CustomerRequestRoomReadDTO>(req));
}
}
return users;
}
}
}

+ 25
- 0
Backend/Diligent.WebAPI.Host/Mediator/Request/Handlers/RejectCustomerRequestHandler.cs ファイルの表示

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

namespace Diligent.WebAPI.Host.Mediator.Request.Handlers
{
public class RejectCustomerRequestHandler : IRequestHandler<RejectCustomerRequestCommand, string?>
{
private readonly RequestService _requestService;

public RejectCustomerRequestHandler(RequestService requestService)
{
_requestService = requestService;
}
public async Task<string?> Handle(RejectCustomerRequestCommand request, CancellationToken cancellationToken)
{
var result = await _requestService.RemoveRequestAsync(request.CustomerId, request.RoomId);

if(!result.IsSuccess)
throw new BadHttpRequestException("customerId or roomId is invalid");

return result.Id;
}
}
}

+ 9
- 0
Backend/Diligent.WebAPI.Host/Mediator/Request/Queries/GetRoomsForWhichRequestExistQuery.cs ファイルの表示

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

namespace Diligent.WebAPI.Host.Mediator.Request.Queries
{
public class GetRoomsForWhichRequestExistQuery:IRequest<List<RequestRoomReadDTO>>
{
}
}

+ 14
- 0
Backend/Diligent.WebAPI.Host/Mediator/Request/Queries/GetSendersForSpecificRequestRoomQuery.cs ファイルの表示

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

namespace Diligent.WebAPI.Host.Mediator.Request.Queries
{
public class GetSendersForSpecificRequestRoomQuery:IRequest<List<CustomerRequestRoomReadDTO>>
{
public GetSendersForSpecificRequestRoomQuery(string roomId)
{
RoomId = roomId;
}
public string RoomId { get; }
}
}

+ 50
- 0
Backend/Diligent.WebAPI.Host/Middlewares/ExceptionHandlingMiddleware.cs ファイルの表示

@@ -0,0 +1,50 @@
using AutoMapper;
using Diligent.WebAPI.Host.Exceptions;
using System.Net;

namespace Diligent.WebAPI.Host.Middlewares
{
public class ExceptionHandlingMiddleware
{
private readonly RequestDelegate _next;
private readonly ILogger<ExceptionHandlingMiddleware> _logger;

public ExceptionHandlingMiddleware(RequestDelegate next, ILogger<ExceptionHandlingMiddleware> logger)
{
_next = next;
_logger = logger;
}
public async Task InvokeAsync(HttpContext httpContext)
{
try
{
await _next(httpContext);
}
catch (Exception ex)
{
await HandleExceptionAsync(httpContext, ex);
}
}
private async Task HandleExceptionAsync(HttpContext context, Exception ex)
{
context.Response.ContentType = "application/json";

context.Response.StatusCode = ex switch
{
NotFoundException => (int)HttpStatusCode.NotFound,
KeyNotFoundException => (int)HttpStatusCode.NotFound,
BadHttpRequestException => (int)HttpStatusCode.BadRequest,
//...
_ => (int)HttpStatusCode.InternalServerError
};

_logger.LogError(ex.Message);

await context.Response.WriteAsync(new ErrorDetails()
{
StatusCode = context.Response.StatusCode,
Message = ex.Message
}.ToString());
}
}
}

+ 21
- 0
Backend/Diligent.WebAPI.Host/Program.cs ファイルの表示

@@ -0,0 +1,21 @@
using Diligent.WebAPI.Host.Hubs;
using Serilog;
using Serilog.Formatting.Json;

var builder = WebApplication.CreateBuilder(args);

builder.ConfigureData(builder.Configuration);
var collection = builder.Services;
Diligent.WebAPI.Host.Extensions.ApiConfiguration.ConfigureServices(collection);
var app = builder.Build();

app.UseCors("ClientPermission");

app.MapControllers();
app.UseAuthentication();
app.UseAuthorization();
app.SetupData();

app.MapHub<ChatHub>("/chatHub");

app.Run();

+ 29
- 0
Backend/Diligent.WebAPI.Host/Properties/launchSettings.json ファイルの表示

@@ -0,0 +1,29 @@
{
"$schema": "https://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:26081",
"sslPort": 0
}
},
"profiles": {
"Diligent.WebAPI.Host": {
"commandName": "Project",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
},
"applicationUrl": "http://localhost:5116",
"dotnetRunMessages": true
},
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "weatherforecast",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

+ 2
- 0
Backend/Diligent.WebAPI.Host/Usings.cs ファイルの表示

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

+ 6
- 0
Backend/Diligent.WebAPI.Host/appsettings.Development.json ファイルの表示

@@ -0,0 +1,6 @@
{
"ConnectionStrings": {
"WebApi": "Data Source=localhost,2433;User=sa;Password=developer_pw;Initial Catalog=WebApiDB;MultipleActiveResultSets=True"
},
"Microsoft.AspNetCore.HttpLogging.HttpLoggingMiddleware": "Information"
}

+ 39
- 0
Backend/Diligent.WebAPI.Host/appsettings.json ファイルの表示

@@ -0,0 +1,39 @@
{
"WebApiDB": {
"ConnectionString": "mongodb+srv://dzenis12:Nekasifra123@chat.hvh4y.mongodb.net/?retryWrites=true&w=majority",
"DatabaseName": "WebApiDB"
},
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft.AspNetCore": "Warning"
}
},
"JwtSettings": {
"validIssuer": "http://localhost:5116",
"validAudience": "http://localhost:3000",
"jwtSecret": "Ovo je neka sifra koja treba biti tajna"
},
"Serilog": {
"Using": [ "Serilog.Sinks.File" ],
"MinimumLevel": {
"Default": "Information"
},
"WriteTo": [
//{
// "Name": "File",
// "Args": {
// "path": "../Diligent.WebAPI.Host/Logging/webapi-.log",
// "rollingInterval": "Day",
// "outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {CorrelationId} {Level:u3} {Username} {Message:lj}{NewLine}{Exception}]"
// }
//},
{
"Name": "Seq",
"Args": {
"serverUrl": "http://localhost:5117"
}
}
]
}
}

+ 42
- 0
Backend/Diligent.WebAPI.sln ファイルの表示

@@ -0,0 +1,42 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.1.32319.34
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Diligent.WebAPI.Host", "Diligent.WebAPI.Host\Diligent.WebAPI.Host.csproj", "{CBA426E3-0CB5-4096-9BF2-57F8DCCA785B}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Diligent.WebAPI.Business", "Diligent.WebAPI.Business\Diligent.WebAPI.Business.csproj", "{13FEE6BE-492B-4912-8C2C-3595DC219C66}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Diligent.WebAPI.Data", "Diligent.WebAPI.Data\Diligent.WebAPI.Data.csproj", "{69367FC8-603A-4E4B-BAD7-99D24308D5F2}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{63BF3E45-8117-4BDC-891C-1D2A8F4B5DFE}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CBA426E3-0CB5-4096-9BF2-57F8DCCA785B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CBA426E3-0CB5-4096-9BF2-57F8DCCA785B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CBA426E3-0CB5-4096-9BF2-57F8DCCA785B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CBA426E3-0CB5-4096-9BF2-57F8DCCA785B}.Release|Any CPU.Build.0 = Release|Any CPU
{13FEE6BE-492B-4912-8C2C-3595DC219C66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{13FEE6BE-492B-4912-8C2C-3595DC219C66}.Debug|Any CPU.Build.0 = Debug|Any CPU
{13FEE6BE-492B-4912-8C2C-3595DC219C66}.Release|Any CPU.ActiveCfg = Release|Any CPU
{13FEE6BE-492B-4912-8C2C-3595DC219C66}.Release|Any CPU.Build.0 = Release|Any CPU
{69367FC8-603A-4E4B-BAD7-99D24308D5F2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{69367FC8-603A-4E4B-BAD7-99D24308D5F2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{69367FC8-603A-4E4B-BAD7-99D24308D5F2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{69367FC8-603A-4E4B-BAD7-99D24308D5F2}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0C38E282-49DD-4563-BB34-71C79422118B}
EndGlobalSection
EndGlobal

読み込み中…
キャンセル
保存