Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Framework/YCompany.Claims.Logging/Logger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Except
if (IsEnabled(logLevel))
{
// send log to queue for open search processing.
Console.WriteLine($"[{logLevel}] ({categoryName}) - {formatter(state, exception)}");
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<PackageReference Include="Duende.IdentityServer.EntityFramework" Version="6.2.3" />
<PackageReference Include="Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore" Version="6.0.14" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="6.0.14" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.5" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.25" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.4" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"ConnectionStrings": {
"DefaultConnection": "Server=localhost\\MSSQLSERVER02;Database=ycompany;Trusted_Connection=True;",
"IdentityServer": "Server=localhost\\MSSQLSERVER02;Database=ycompany;Trusted_Connection=True;"
"DefaultConnection": "Server=IN-PG0351ZV;Database=ycompany;Trusted_Connection=True;Integrated Security=True;TrustServerCertificate=True",
"IdentityServer": "Server=IN-PG0351ZV;Database=ycompany;Trusted_Connection=True;Integrated Security=True;TrustServerCertificate=True"
},
"Logging": {
"LogLevel": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using YCompany.Configurations;
using YCompanyPaymentsAPI.Data;
using YCompanyPaymentsAPI.Models;

Expand All @@ -11,10 +12,12 @@ namespace YCompanyThirdPartyAPI.Controllers
public class ThirdPartyController : ControllerBase
{
private readonly InsuranceContext _context;
private readonly IConfiguration _configuration;

public ThirdPartyController(InsuranceContext context)
public ThirdPartyController(InsuranceContext context, IConfiguration configuration)
{
_context = context;
_configuration = configuration;
}

[HttpGet]
Expand All @@ -23,5 +26,17 @@ public IEnumerable<Policy> Get()
List<Policy> result = _context.Policies.ToList();
return result;
}

//[HttpGet]
//public IActionResult GetValue()
//{
// var metadata = new SecretManagerConfigurationSecurityMetadata
// {
// Key1 = _configuration["Key1"],
// Key2 = _configuration["Key2"]
// };
// Console.WriteLine(metadata);
// return Ok(metadata);
//}
}
}
Loading