BananaPie
BananaPie
CC#
Created by Ossie on 11/9/2023 in #help
❔ Execute code on WPF program close
Like run it after it exits / crashes? i don't think so? You might have to write your own custom window service to monitor that.
60 replies
CC#
Created by Ikinidae on 10/26/2023 in #help
❔ Controller routing with dynamic parameter
Can't you just look at the HttpContext.Request.Headers['User-Agent'] to see if the request is from mobile or pc? You can do a custom attribute to check that and redirect.
6 replies
CC#
Created by Pandetthe on 10/26/2023 in #help
❔ WPF app with rest API
But I think you should split them two
5 replies
CC#
Created by Pandetthe on 10/26/2023 in #help
❔ WPF app with rest API
Yes? you can create your own web app builder and start and / host it. Then you can add controllers and stuff
5 replies
CC#
Created by Pandetthe on 10/26/2023 in #help
❔ WPF app with rest API
You want to host your apis within the wpf app?
5 replies
CC#
Created by Denis on 4/3/2023 in #help
❔ How to license a .NET 5+ cross-platform application?
4 replies
CC#
Created by abe_101 on 3/28/2023 in #help
❔ Book recommendation to learn c#/dotnet
10 replies
CC#
Created by abe_101 on 3/28/2023 in #help
❔ Book recommendation to learn c#/dotnet
I'd just scan the MS docs and watch newer online youtube videos
10 replies
CC#
Created by abe_101 on 3/28/2023 in #help
❔ Book recommendation to learn c#/dotnet
It depends? C# can do so much stuff. I am never a big fan of books on programming languages, they get outdated pretty fast.
10 replies
CC#
Created by big OOF on 3/28/2023 in #help
❔ Dev/prod databse
something like EF Core to manage your migrations / database changes
6 replies
CC#
Created by big OOF on 3/28/2023 in #help
❔ Dev/prod databse
yes, correct
6 replies
CC#
Created by big OOF on 3/28/2023 in #help
❔ Dev/prod databse
Not sure how other do it, I'd have 3 databases / environments Production (AWS) Development (AWS) Local (Localhost) The reason is that if you guys are trying to modify the database at the same time, it could break things. The workflow should be you do your database migrations (add, remove columns, etc.) locally then git push / merge and deploy the changes to development. And if everything looks good then push the migrations to production. But if it is just a fun / side project AND only one of you will work on the backend and the database, then do it all on AWS, who cares. But if you think it might go live one day, then you should have some kind of workflow going. Also you can go crazy with test data on local without affecting anyone. Also security best practices: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/CHAP_BestPractices.Security.html
6 replies
CC#
Created by riazuezra on 2/28/2023 in #help
❔ Options Pattern for injecting configuration
then you just pull it in using IOptions<YourOptions> value
6 replies
CC#
Created by riazuezra on 2/28/2023 in #help
❔ Options Pattern for injecting configuration
6 replies
CC#
Created by riazuezra on 2/28/2023 in #help
❔ Options Pattern for injecting configuration
6 replies
CC#
Created by Cuda on 2/15/2023 in #help
✅ Saving api json data to db
then when you save / pull the data, you can check what got changed, maybe put your own version tracking logic
15 replies
CC#
Created by Cuda on 2/15/2023 in #help
✅ Saving api json data to db
imo, you would have an anti-corruption layer in your code to parse the json data into model(s) that your app can understand.
15 replies
CC#
Created by Kiel on 2/13/2023 in #help
❔ Environment variables vs configuration files for storing secrets
I don't see anything is wrong with that approach. I sometimes use multiple config json files. You can also grab your environment and do like "AddJsonFile("config.{Environment}.json")"
12 replies
CC#
Created by antimatter8189 on 2/14/2023 in #help
❔ Simple Api Fails to launch, why?
Unable to resolve service for type 'Core.Interfaces.IRecordRepository' while attempting to activate 'Services.Services.RecordService'
79 replies
CC#
Created by antimatter8189 on 2/14/2023 in #help
❔ Simple Api Fails to launch, why?
did you bind "IRecordRepository"?
79 replies