✅ Why return IServiceCollection in an extension method?
Is there any reason why not to make the method void instead?
10 Replies
so it can be chained
of course 😄
some people really like to do
(I'm one of those people)
I never used chaining so didn't thought about that
Yeah looks clean as well
Thanks !
this is often called the "fluent" or "builder" pattern
https://dzone.com/articles/fluent-builder-pattern
it does break when you end up with the ones that return a specialized builder, like AddAuthorization etc
Yes 🙂
$close
Use the /close command to mark a forum thread as answered
he did, we juist re-opened it by writing 😄