/// <inheritdoc /> public void UnSubscribeFromEntityExitColShape(string name, ColShapeEvent colShapeEvent) { ConsoleOutput.WriteLine(ConsoleType.Info, $"UnSubscribe from ColShapeExit event ~#85a7dd~{name}~;~ in ~#85a7dd~" + (colShapeEvent.Cab.Method.DeclaringType != null ? colShapeEvent.Cab.Method.DeclaringType.FullName : "?." + colShapeEvent.Cab.Method.Name)); if (_subscriberListExit[name] != null) { _subscriberListExit[name].Remove(colShapeEvent); } }
/// <inheritdoc /> public void SubscribeToEntityExitColShape(string name, ColShapeEvent colShapeEvent) { ConsoleOutput.WriteLine(ConsoleType.Info, $"Subscribe to ColShapeExit event ~#85a7dd~{name}~;~ in ~#85a7dd~" + (colShapeEvent.Cab.Method.DeclaringType != null ? colShapeEvent.Cab.Method.DeclaringType.FullName : "?." + colShapeEvent.Cab.Method.Name)); if (_subscriberListExit[name] == null) { List <ColShapeEvent> toInsert = new List <ColShapeEvent>(); toInsert.Add(colShapeEvent); _subscriberListExit[name] = toInsert; } else { _subscriberListExit[name].Add(colShapeEvent); } }