Bunda
Bunda
CC#
Created by Bunda on 3/15/2023 in #help
❔ How to properly handle exceptions between API controller and service layer?
I'm creating an API and I'm having trouble figuring out how to properly catch errors between my service layer and controller. Could someone take a look at my current code and give me some advice? Useful docs or tutorials are also greatly appreciated. To better understand the controller, this the controller route: /api/v1/identity-users/{userRefId:guid}/risks This is my current controller: https://pastebin.com/Cg4CJ0QE My service: https://pastebin.com/KVaN3nYR
13 replies
CC#
Created by Bunda on 10/6/2022 in #help
Launch WinForms app when user inactive
I'm trying to create a WinForms app that will show a banner after x minutes and lock the screen. Now I currently do have a Form with an overlay that gradually fades the screen and will lock it. However I'm not sure how to launch it after x minutes of user inactivity. Does Windows have any API's that you can listen to to make it easier? If anyone can guide me in the right direction that would be great.
13 replies