public T Resolve(IIdentityMap map, ILoader loader, object id) { return(map.Get(id, () => loader.LoadDocument <T>(id))); }
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); }