CodePlexProject Hosting for Open Source Software
up until now i was using injection only within the constructor, like so:
protected readonly ILogger theLogger;
public MyClass(ILogger logger)
theLogger = logger;
is there any other way of injecting? without using the constructor?
You can inject properties or use methods. This is all explained in the documentation and the hands-on labs.
Are you sure you want to delete this post? You will not be able to recover it later.
Are you sure you want to delete this thread? You will not be able to recover it later.