public void Subscribe() { if (subscribed) { return; } subscribed = true; m_synchronizer.Subscribe(m_currentTime.UpdateEvent, m_handler); PTThreadSafeLogger.Debug($"Subscribing to {m_synchronizerName}.{PTUpdateEventMap.ToName(m_currentTime.UpdateEvent)}"); }
public void Unsubscribe() { if (!subscribed) { return; } subscribed = false; m_synchronizer.Unsubscribe(m_currentTime.UpdateEvent, m_handler); PTThreadSafeLogger.Debug($"Unsubscribing from {m_synchronizerName}.{PTUpdateEventMap.ToName(m_currentTime.UpdateEvent)}"); }
public static void Debug(object message) { PTThreadSafeLogger.Debug(message); }