#parameters in Constructor and DI
2 messages · Page 1 of 1 (latest)
If you call new you must provide everything necessary. Period
2 messages · Page 1 of 1 (latest)
Is it possible to have a class that has a parameterized constructor and one or two injections?
say I want to initiate a class with parameters only, and I want to use a HttpService in it.
If not, how should I approach this?
If you call new you must provide everything necessary. Period