Hejle
Hejle
CC#
Created by Hejle on 5/9/2024 in #help
MinimalApi vs Mvc - ValidationOfHeaders
No description
7 replies
CC#
Created by Hejle on 5/9/2024 in #help
MinimalApi vs Mvc - ValidationOfHeaders
The Error from MinimalApi Looks like this for Environment set to Production
7 replies
CC#
Created by Hejle on 5/9/2024 in #help
MinimalApi vs Mvc - ValidationOfHeaders
No description
7 replies
CC#
Created by Hejle on 5/9/2024 in #help
MinimalApi vs Mvc - ValidationOfHeaders
The Error from MinimalApi Looks like this for Environment set to Development
7 replies
CC#
Created by Hejle on 5/9/2024 in #help
MinimalApi vs Mvc - ValidationOfHeaders
No description
7 replies
CC#
Created by Hejle on 5/9/2024 in #help
MinimalApi vs Mvc - ValidationOfHeaders
The Error from Mvc Looks like this for both Environment set to Development and Production
7 replies
CC#
Created by Hejle on 12/12/2023 in #help
Docker - NanoServer - Dotnet with PowershellCore
I recon it would be easy on Linux, yeah
27 replies
CC#
Created by Hejle on 12/12/2023 in #help
Docker - NanoServer - Dotnet with PowershellCore
sad
27 replies
CC#
Created by Hejle on 12/12/2023 in #help
Docker - NanoServer - Dotnet with PowershellCore
So no, no blockers :)
27 replies
CC#
Created by Hejle on 12/12/2023 in #help
Docker - NanoServer - Dotnet with PowershellCore
None of this is a blocker - since its just hobby stuff And I could survive using Nano without powershell
27 replies
CC#
Created by Hejle on 12/12/2023 in #help
Docker - NanoServer - Dotnet with PowershellCore
As far as I understand it is a small WindowsImage.
27 replies
CC#
Created by Hejle on 12/12/2023 in #help
Docker - NanoServer - Dotnet with PowershellCore
I am using QWERTY. The problem was that I had forgotten to escape the backticks who was not defining codeblocks
27 replies
CC#
Created by Hejle on 12/12/2023 in #help
Docker - NanoServer - Dotnet with PowershellCore
Unrelated, but formatting a Discord-Post with a Backtick in it, is really tricky catthinking
27 replies
CC#
Created by Hejle on 11/21/2023 in #help
Manual setup of OpenTelemetry with/without Microsoft.Extensions.Hosting in a Console application
But if anyone has any suggestions to things I can improve / look into I would of course not mind that :)
4 replies
CC#
Created by Hejle on 11/21/2023 in #help
Manual setup of OpenTelemetry with/without Microsoft.Extensions.Hosting in a Console application
Alright, I actually found the solution myself catthinking I had forgotten to register my actitivy-source with the AddSource-method. So it should have looked like this:
builder.Services.AddOpenTelemetry()
.ConfigureResource(resourceBuilder =>
resourceBuilder.AddService(serviceName: SERVICE_NAME, serviceVersion: SERVICE_VERSION))
.WithTracing(tracerProviderBuilder =>
tracerProviderBuilder
.AddSource(SERVICE_NAME) //Forgot this ;(
.AddConsoleExporter());
builder.Services.AddOpenTelemetry()
.ConfigureResource(resourceBuilder =>
resourceBuilder.AddService(serviceName: SERVICE_NAME, serviceVersion: SERVICE_VERSION))
.WithTracing(tracerProviderBuilder =>
tracerProviderBuilder
.AddSource(SERVICE_NAME) //Forgot this ;(
.AddConsoleExporter());
And It does apear to be neccesary to call StartAsync for OTL to listen to the Acitivy.
4 replies
CC#
Created by Hejle on 11/21/2023 in #help
Manual setup of OpenTelemetry with/without Microsoft.Extensions.Hosting in a Console application
Note: It does not seem to matter if I StartAsync or not, but I feel like that could be related to the issue I have. I am also using the following imports: <PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.0" /> <PackageReference Include="OpenTelemetry" Version="1.7.0-alpha.1" /> <PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.7.0-alpha.1" /> <PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.7.0-alpha.1" />
4 replies
CC#
Created by Hejle on 6/2/2023 in #help
.NET Generic Host Writing "Application Started" when its done with its work
Thanks for the help
26 replies
CC#
Created by Hejle on 6/2/2023 in #help
.NET Generic Host Writing "Application Started" when its done with its work
Yeah, is using it for config/DI
26 replies
CC#
Created by Hejle on 6/2/2023 in #help
.NET Generic Host Writing "Application Started" when its done with its work
Which structure would/should I use instead?
26 replies
CC#
Created by Hejle on 6/2/2023 in #help
.NET Generic Host Writing "Application Started" when its done with its work
While I could make the startup-message myself, it would feel stupid, to have: Startup-message "Work-being-done"-messages Startup-message Closing-message
26 replies