Click here to Skip to main content
15,881,709 members
Home / Discussions / C#
   

C#

 
QuestionFree licensing solution Pin
Moses Man29-Sep-22 11:45
Moses Man29-Sep-22 11:45 
AnswerRe: Free licensing solution Pin
Gerry Schmitz1-Oct-22 9:01
mveGerry Schmitz1-Oct-22 9:01 
AnswerRe: Free licensing solution Pin
Dave Kreskowiak1-Oct-22 11:48
mveDave Kreskowiak1-Oct-22 11:48 
QuestionC# Service Locator Pin
Kevin Marois28-Sep-22 7:01
professionalKevin Marois28-Sep-22 7:01 
AnswerRe: C# Service Locator Pin
Gerry Schmitz29-Sep-22 7:54
mveGerry Schmitz29-Sep-22 7:54 
GeneralRe: C# Service Locator Pin
Kevin Marois29-Sep-22 11:45
professionalKevin Marois29-Sep-22 11:45 
GeneralRe: C# Service Locator Pin
Richard Deeming29-Sep-22 21:39
mveRichard Deeming29-Sep-22 21:39 
AnswerRe: C# Service Locator Pin
lmoelleb29-Sep-22 22:40
lmoelleb29-Sep-22 22: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 5:48
jochance4-Nov-22 5:48 
QuestionSkype Personal integration with C# Pin
Member 1462363928-Sep-22 4:36
Member 1462363928-Sep-22 4:36 
AnswerRe: Skype Personal integration with C# Pin
Gerry Schmitz28-Sep-22 5:26
mveGerry Schmitz28-Sep-22 5:26 
GeneralRe: Skype Personal integration with C# Pin
Member 1462363928-Sep-22 6:10
Member 1462363928-Sep-22 6:10 
GeneralRe: Skype Personal integration with C# Pin
Victor Nijegorodov28-Sep-22 20:14
Victor Nijegorodov28-Sep-22 20:14 
GeneralRe: Skype Personal integration with C# Pin
Member 1462363928-Sep-22 20:22
Member 1462363928-Sep-22 20:22 
GeneralRe: Skype Personal integration with C# Pin
Mycroft Holmes29-Sep-22 13:18
professionalMycroft Holmes29-Sep-22 13:18 
GeneralRe: Skype Personal integration with C# Pin
Member 1462363929-Sep-22 19:48
Member 1462363929-Sep-22 19:48 
QuestionAsync - await Pin
dataminers20-Sep-22 4:22
dataminers20-Sep-22 4:22 
AnswerRe: Async - await Pin
OriginalGriff20-Sep-22 4:57
mveOriginalGriff20-Sep-22 4:57 
GeneralRe: Async - await Pin
Richard Deeming20-Sep-22 5:01
mveRichard Deeming20-Sep-22 5:01 
AnswerRe: Async - await PinPopular
Richard Deeming20-Sep-22 5:06
mveRichard Deeming20-Sep-22 5:06 
GeneralRe: Async - await Pin
MarkTJohnson20-Sep-22 5:47
professionalMarkTJohnson20-Sep-22 5:47 
GeneralRe: Async - await Pin
dataminers21-Sep-22 0:04
dataminers21-Sep-22 0:04 
GeneralRe: Async - await Pin
Richard Deeming21-Sep-22 2:07
mveRichard Deeming21-Sep-22 2:07 
GeneralRe: Async - await Pin
dataminers21-Sep-22 5:33
dataminers21-Sep-22 5:33 
QuestionHow to make a license key system with Realtime DB? Pin
Moses Man19-Sep-22 0:11
Moses Man19-Sep-22 0: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.