Avoiding 'new' in IOC
Hello,
I am learning about dependency injection and one of the things said to avoid is using
where I need
Thanks!
I am learning about dependency injection and one of the things said to avoid is using
new in the constructor. How can I avoid doing stuff like this:where I need
_sendingClient throughout multiple methods in the class?Thanks!