Click here to Skip to main content
15,513,143 members
Home / Discussions / C#
   

C#

 
QuestionFree licensing solution Pin
Moses Man29-Sep-22 12:45
Moses Man29-Sep-22 12:45 
AnswerRe: Free licensing solution Pin
Gerry Schmitz1-Oct-22 10:01
mveGerry Schmitz1-Oct-22 10:01 
AnswerRe: Free licensing solution Pin
Dave Kreskowiak1-Oct-22 12:48
mveDave Kreskowiak1-Oct-22 12:48 
QuestionC# Service Locator Pin
Kevin Marois28-Sep-22 8:01
professionalKevin Marois28-Sep-22 8:01 
AnswerRe: C# Service Locator Pin
Gerry Schmitz29-Sep-22 8:54
mveGerry Schmitz29-Sep-22 8:54 
GeneralRe: C# Service Locator Pin
Kevin Marois29-Sep-22 12:45
professionalKevin Marois29-Sep-22 12:45 
GeneralRe: C# Service Locator Pin
Richard Deeming29-Sep-22 22:39
mveRichard Deeming29-Sep-22 22:39 
AnswerRe: C# Service Locator Pin
lmoelleb29-Sep-22 23:40
lmoelleb29-Sep-22 23:40 
From the top of my head:

Dependency injection makes it a bit easier to write unit tests - you do not have to mock the service locator and you can see straight from the constructor what the dependencies are.

It is also better failing early. It can often detect missing dependencies when you spin up the app, instead of when some obscure case happens 3 weeks after deploying to production. It's not guaranteed for complex registrations (factories) but the simple stuff it will do.

I would always use DI for new projects, but it's unlikely I would spend time refactoring old SL based code. I can say from the code base I have inherited: If you use both in the same application everything becomes a mess. Smile | :)

Edit: Followed the link and read his "summary" - which is basically identical to my reply.
AnswerRe: C# Service Locator Pin
jochance4-Nov-22 6:48
jochance4-Nov-22 6:48 
QuestionSkype Personal integration with C# Pin
Member 1462363928-Sep-22 5:36
Member 1462363928-Sep-22 5:36 
AnswerRe: Skype Personal integration with C# Pin
Gerry Schmitz28-Sep-22 6:26
mveGerry Schmitz28-Sep-22 6:26 
GeneralRe: Skype Personal integration with C# Pin
Member 1462363928-Sep-22 7:10
Member 1462363928-Sep-22 7:10 
GeneralRe: Skype Personal integration with C# Pin
Victor Nijegorodov28-Sep-22 21:14
Victor Nijegorodov28-Sep-22 21:14 
GeneralRe: Skype Personal integration with C# Pin
Member 1462363928-Sep-22 21:22
Member 1462363928-Sep-22 21:22 
GeneralRe: Skype Personal integration with C# Pin
Mycroft Holmes29-Sep-22 14:18
professionalMycroft Holmes29-Sep-22 14:18 
GeneralRe: Skype Personal integration with C# Pin
Member 1462363929-Sep-22 20:48
Member 1462363929-Sep-22 20:48 
QuestionAsync - await Pin
dataminers20-Sep-22 5:22
dataminers20-Sep-22 5:22 
AnswerRe: Async - await Pin
OriginalGriff20-Sep-22 5:57
mveOriginalGriff20-Sep-22 5:57 
GeneralRe: Async - await Pin
Richard Deeming20-Sep-22 6:01
mveRichard Deeming20-Sep-22 6:01 
AnswerRe: Async - await PinPopular
Richard Deeming20-Sep-22 6:06
mveRichard Deeming20-Sep-22 6:06 
GeneralRe: Async - await Pin
MarkTJohnson20-Sep-22 6:47
professionalMarkTJohnson20-Sep-22 6:47 
GeneralRe: Async - await Pin
dataminers21-Sep-22 1:04
dataminers21-Sep-22 1:04 
GeneralRe: Async - await Pin
Richard Deeming21-Sep-22 3:07
mveRichard Deeming21-Sep-22 3:07 
GeneralRe: Async - await Pin
dataminers21-Sep-22 6:33
dataminers21-Sep-22 6:33 
QuestionHow to make a license key system with Realtime DB? Pin
Moses Man19-Sep-22 1:11
Moses Man19-Sep-22 1:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.