Example #1
0
 public T Resolve(IIdentityMap map, ILoader loader, object id)
 {
     return(map.Get(id, () => loader.LoadDocument <T>(id)));
 }
Example #2
0
 public T Resolve(IIdentityMap map, ILoader loader, object id)
 {
     // TODO -- watch it here if it's the wrong type
     return(map.Get(id, () => loader.LoadDocument <TBase>(id)) as T);
 }