Ice_
Ice_
CC#
Created by Ice_ on 3/27/2024 in #help
✅ Progressbar progression over taskbar icon without nuget
Thank you for the links!
5 replies
CC#
Created by Ice_ on 12/21/2023 in #help
Dependency injection in WPF
I also don't want a contextfactory for my WPF application. That would cause problems as the code is right now. I want to use the very same dbcontext so it can track all the entities correctly.
18 replies
CC#
Created by Ice_ on 12/21/2023 in #help
Dependency injection in WPF
Also, I have just opened a few files (from links) and tried to understand them so I have not seen the full picture of things yet. It's getting late etc.
18 replies
CC#
Created by Ice_ on 12/21/2023 in #help
Dependency injection in WPF
Thank you guys. The links you sent do use DI but I don't see any DbContext stuff or maybe I'm blind. I'm not really that experienced so I can only assume I am unaware.
18 replies
CC#
Created by Ice_ on 12/21/2023 in #help
Dependency injection in WPF
I made the dbcontext static from MainWindow and that did the trick. I don't like static though
18 replies
CC#
Created by Ice_ on 12/21/2023 in #help
Dependency injection in WPF
I have to add that I am trying to reach the dbcontext from my repository
18 replies
CC#
Created by Ice_ on 12/20/2023 in #help
WPF Checkbox handling
And I rather not create events for Check or Uncheck in the main xaml file
9 replies
CC#
Created by Ice_ on 12/20/2023 in #help
WPF Checkbox handling
That is what I have done. The problem is the check/uncheck handling
9 replies
CC#
Created by Ice_ on 5/11/2023 in #help
❔ Creating a JWT through terminal and use it in production (webapi)
This is just for educational purposes so I want it in a very basic form. So I guess I can just add the JWT into appsettings.json then? I'm not sure how to add the JWT though. Looking into the UserSecrets the JWT comes in two .JSON files. Is that the data I want to add into appsettings.json somehow and if, how would I do that?
17 replies
CC#
Created by Ice_ on 5/11/2023 in #help
❔ Creating a JWT through terminal and use it in production (webapi)
Where should they be stored?
17 replies
CC#
Created by Ice_ on 5/11/2023 in #help
❔ Creating a JWT through terminal and use it in production (webapi)
I agree on that. What would the best way to store these "secrets" in your opinion? And how would I configure my app to use it?
17 replies
CC#
Created by Ice_ on 5/10/2023 in #help
✅ Building a web api release. No HTTPS and how do I change ports?
It does and I meant launchSettings.json, my bad 😅
89 replies
CC#
Created by Ice_ on 5/10/2023 in #help
✅ Building a web api release. No HTTPS and how do I change ports?
Debugging works, it's using the ports in the appsettings.development.json file. When I switch from Debug to Release and build it, it will simply use port 5000. There are no settings where this is defined. So it's most automatically defined. I've tried several things to include ssl etc. but it doesn't work. At one point it didn't even accept my HTTP anymore. There has to be a simple fix to this rater than adding 10 lines of code?
89 replies
CC#
Created by Ice_ on 5/10/2023 in #help
✅ Building a web api release. No HTTPS and how do I change ports?
Not even those are used in "release"
89 replies
CC#
Created by Ice_ on 5/10/2023 in #help
✅ Building a web api release. No HTTPS and how do I change ports?
That's about it
89 replies
CC#
Created by Ice_ on 5/10/2023 in #help
✅ Building a web api release. No HTTPS and how do I change ports?
Yes, you have a few DEBUGGER ports
89 replies
CC#
Created by Ice_ on 5/10/2023 in #help
✅ Building a web api release. No HTTPS and how do I change ports?
In the settings file at least
89 replies
CC#
Created by Ice_ on 5/10/2023 in #help
✅ Building a web api release. No HTTPS and how do I change ports?
But there are NO port 5000 anywhere to be found
89 replies
CC#
Created by Ice_ on 5/10/2023 in #help
✅ Building a web api release. No HTTPS and how do I change ports?
Project 1: A website using a HTTP client to connect to API (Project 2) Project 2: Running a web api
89 replies
CC#
Created by Ice_ on 5/10/2023 in #help
✅ Building a web api release. No HTTPS and how do I change ports?
Why do Visual Studio insist on having everything listening on port 5000?
89 replies