internal static object GetRegisteredActivity(InstanceReference instanceReference) { var hashCode = instanceReference.GetHashCode(); return registeredInstances.ContainsKey(hashCode) ? registeredInstances.Get(hashCode) : null; }
internal static void RegisterActivity(InstanceReference instanceReference) { var hashCode = instanceReference.GetHashCode(); if (registeredInstances.ContainsKey(hashCode)) registeredInstances.Remove(hashCode); registeredInstances.Put(hashCode, instanceReference.Instance); }