public IStockManager[] GetStockManagers(string productFamily, IUniqueObject sender) { if (familiesMap.ContainsKey(productFamily)) { return((from sm in familiesMap[productFamily] where sm.Key != sender.GetUID() select sm.Value).ToArray()); } return(new IStockManager[0]); }
public PropagateToken AddHop(IUniqueObject uid) { if (HasHopedOnObject(uid)) { return(this); } string[] newHops = new string[hops.Length + 1]; Array.Copy(hops, newHops, hops.Length); newHops[hops.Length] = uid.GetUID(); hops = newHops; return(this); }
public static IUniqueObject copyOf(IUniqueObject original) { return(new UniqueObject(original.GetUID())); }
public bool HasHopedOnObject(IUniqueObject uid) { return(hops.Contains(uid.GetUID())); }