public static TankInstance GetInstance(TankUnikey key) { IRepository repository; IXQueryable tank; if (key.TryGetTank(out tank, out repository)) { return(TankInstanceManager.GetInstance(repository, tank, key)); } else { return(null); } }
public static TankInstance GetInstance(IRepository repository, IXQueryable tank) { return(TankInstanceManager.GetInstance(repository, tank, new TankUnikey(repository, tank))); }