Hacker News new | ask | show | jobs
by nahname 4885 days ago
You don't annotate anything. It simply becomes the following,

  ...
  public Repository(ISessionFactory factory)
  ...
The repository never knows about IoC or where things come from. Nor should it.
1 comments

Oh yeah, because pure magic makes it so understandable.