nicke
nicke
CC#
Created by nicke on 3/8/2024 in #help
EF Core how can I access temporal table PeriordStart value to use it for "last modified" information
If anyone ever runs into this. Here was the best solution: https://github.com/dotnet/efcore/issues/26463#issuecomment-1984046675
2 replies
CC#
Created by nicke on 1/18/2024 in #help
AspNet.Core OpenTelemetry AzureMonitorLogExporter doesn't include ILogger name in AppInsight traces.
No description
44 replies
CC#
Created by nicke on 1/18/2024 in #help
AspNet.Core OpenTelemetry AzureMonitorLogExporter doesn't include ILogger name in AppInsight traces.
Okey, that seems to only work for traces and metrics
44 replies
CC#
Created by nicke on 1/18/2024 in #help
AspNet.Core OpenTelemetry AzureMonitorLogExporter doesn't include ILogger name in AppInsight traces.
44 replies
CC#
Created by nicke on 1/18/2024 in #help
AspNet.Core OpenTelemetry AzureMonitorLogExporter doesn't include ILogger name in AppInsight traces.
Just not stuff like line number, Logger name, file name etc
44 replies
CC#
Created by nicke on 1/18/2024 in #help
AspNet.Core OpenTelemetry AzureMonitorLogExporter doesn't include ILogger name in AppInsight traces.
The customDimensions are populated from the actual log message when using composite formatting
44 replies
CC#
Created by nicke on 1/18/2024 in #help
AspNet.Core OpenTelemetry AzureMonitorLogExporter doesn't include ILogger name in AppInsight traces.
But i'll probably just use the classic ApplicationInsights library as there it seems to work oob
44 replies
CC#
Created by nicke on 1/18/2024 in #help
AspNet.Core OpenTelemetry AzureMonitorLogExporter doesn't include ILogger name in AppInsight traces.
Yeah i've debugged that part of the code and the generated telemetryItems only contain the message and the log level
44 replies
CC#
Created by nicke on 1/18/2024 in #help
AspNet.Core OpenTelemetry AzureMonitorLogExporter doesn't include ILogger name in AppInsight traces.
No description
44 replies
CC#
Created by nicke on 12/21/2023 in #help
Have all ControllerBase ObjectResults return StatusCodeResult with ProblemDetails
Yeah i know. The codebase is just massive and ported from net framework. The bigger issue was BadRequest("foo") returning a ObjectResult thats not automatically mapped to a ProblemDetail result while BadRequest() is
5 replies
CC#
Created by nicke on 12/21/2023 in #help
Have all ControllerBase ObjectResults return StatusCodeResult with ProblemDetails
Never mind, this middleware seems to do everything i want https://github.com/khellang/Middleware/tree/master/src/ProblemDetails
5 replies
CC#
Created by nicke on 12/21/2023 in #help
Have all ControllerBase ObjectResults return StatusCodeResult with ProblemDetails
Some examples: return BadRequest() Returns a ProblemDetails with application/problem+json
{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "Bad Request",
"status": 400,
"traceId": "00-84c1fd4063c38d9f3900d06e56542d48-85d1d4-00"
}
{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "Bad Request",
"status": 400,
"traceId": "00-84c1fd4063c38d9f3900d06e56542d48-85d1d4-00"
}
While return BadRequest("foo") returns Foo with text/plain
5 replies
CC#
Created by nicke on 8/9/2023 in #help
❔ GetOwinContext().Authentication.GetAuthenticationTypes() equivalent in asp.net core
love the arrows, thanks 👍 I guess the AuthenticationType is not the same as AuthenticationScheme but i'll figure that out when i get there. Just +50 controllers to port first
55 replies
CC#
Created by nicke on 8/9/2023 in #help
❔ GetOwinContext().Authentication.GetAuthenticationTypes() equivalent in asp.net core
right i can get the current authentication method that way 👍
55 replies
CC#
Created by nicke on 8/9/2023 in #help
❔ GetOwinContext().Authentication.GetAuthenticationTypes() equivalent in asp.net core
yeah, just don't want to needlessly display the sign out button in that case
55 replies
CC#
Created by nicke on 8/9/2023 in #help
❔ GetOwinContext().Authentication.GetAuthenticationTypes() equivalent in asp.net core
I guess i could just check the same flag that decides if Negotiate handler has been added. insdead of openidconnect handler. Thanks for the help
55 replies
CC#
Created by nicke on 8/9/2023 in #help
❔ GetOwinContext().Authentication.GetAuthenticationTypes() equivalent in asp.net core
If it's jsut using windows authentication i don't want to display a sign out button to the user
55 replies
CC#
Created by nicke on 8/9/2023 in #help
❔ GetOwinContext().Authentication.GetAuthenticationTypes() equivalent in asp.net core
I need to figure out if there are any authentication methods configured or not. To display different information for the user (show sign in button or not)
55 replies