Пример #1
0
 public void Use <TResolveTo>() where TResolveTo : IRepository <T, TId>, new()
 {
     _objectResolver.RegisterLazy <IRepository <T, TId> >(new Lazy <object>(() => new TResolveTo()));
 }