casog
casog
CC#
Created by Owltávio on 4/22/2024 in #help
Trying to simulate a turtle race and getting my ass kicked...
Have fun
12 replies
CC#
Created by salty_pepper on 3/17/2024 in #help
Who handles dependency Injection in a class library?
Or you can use autofac
61 replies
CC#
Created by salty_pepper on 3/17/2024 in #help
Who handles dependency Injection in a class library?
That way if they want to use your library they gotta know what dependencies are available and required
61 replies
CC#
Created by salty_pepper on 3/17/2024 in #help
Who handles dependency Injection in a class library?
Centralized and clean
61 replies
CC#
Created by salty_pepper on 3/17/2024 in #help
Who handles dependency Injection in a class library?
I’d personally create a middleware extension where you can go builder.services.AddMYCoolLibrary(provider => { options.Dep1; … options.Dep2… })
61 replies
CC#
Created by salty_pepper on 3/17/2024 in #help
Who handles dependency Injection in a class library?
If it’s good enough for eBay….
61 replies
CC#
Created by salty_pepper on 3/17/2024 in #help
Who handles dependency Injection in a class library?
Maybe define functionality for DL injection methods as interfaces in the library and make the user handle the ancillary DI config through this mechanism first which enables the use of the rest of library. Or a middleware handler that will allow you to inject all necessary dependencies at startup based on the libraries middleware handler extension , like the aspnet.security.oauth2.providers library. I’m interested in this as well because today I ran into compiling the eBay sdk for notification api and it was just interfaces and concrete solutions for which I had to extract all concretes and implement in my consuming project and inject with the libraries interface
61 replies
CC#
Created by casog on 3/15/2024 in #help
Ebay's new "RESTFUL" api's seem to have done away with seller JSON responses
Actually they’re well done, just too much
7 replies
CC#
Created by casog on 3/15/2024 in #help
Ebay's new "RESTFUL" api's seem to have done away with seller JSON responses
Answer: Ebays new API's are purposefully complicated due to overengineering
7 replies
CC#
Created by casog on 3/15/2024 in #help
Ebay's new "RESTFUL" api's seem to have done away with seller JSON responses
Their docs suck too
7 replies
CC#
Created by casog on 3/15/2024 in #help
Ebay's new "RESTFUL" api's seem to have done away with seller JSON responses
Your supposed to know everything
7 replies
CC#
Created by casog on 3/15/2024 in #help
Ebay's new "RESTFUL" api's seem to have done away with seller JSON responses
7 replies
CC#
Created by PurplePeopleEater on 1/20/2024 in #help
Automatically logging all errors without using try-catch
Task.run has a parameter for a cancellation token, just one reason I can think of
34 replies
CC#
Created by PurplePeopleEater on 1/20/2024 in #help
Automatically logging all errors without using try-catch
It's an application/structure design decision, it has to be built in when you imagine the program or added later
34 replies
CC#
Created by PurplePeopleEater on 1/20/2024 in #help
Automatically logging all errors without using try-catch
Seems not, but there are patterns you can use. Maybe a CQRS pattern with a exception / logging handler at the highest level of the stack, the place where the services/data is queried
34 replies
CC#
Created by PurplePeopleEater on 1/20/2024 in #help
Automatically logging all errors without using try-catch
Never used WPF 😦 Sorry
34 replies
CC#
Created by PurplePeopleEater on 1/20/2024 in #help
Automatically logging all errors without using try-catch
You can use centralized exception handling in middleware by setting your applicationbuilder to "UseExceptionhandler()". Ihttps://andrewhalil.com/2022/03/10/centralized-logging-and-exception-handling-in-a-net-core-application/
34 replies
CC#
Created by casog on 5/11/2023 in #help
✅ Lagging IOptionsMonitorCache for openidconnnect
Answer was redirect to another action then ChallengeAsync(), so the postconfigure options could propagate through the context of the framework I’m using
25 replies