Use as follows
var x = CreateSource<Eav.DataSources.App>();
x.AppSwitch = 17;
x.ZoneSwitch = 2; // the other portal
var categories = x["Categories];