private void RemoveListener(ICodeScopeListener listener) { lock (_lockObject) { _listeners.Remove(listener); } }
private void AddListener(ICodeScopeListener listener) { lock (_lockObject) { _listeners.Add(listener); } }
public static void UnSubscribe(ICodeScopeListener listener) { Instance.RemoveListener(listener); }
public static void Subscribe(ICodeScopeListener listener) { Instance.AddListener(listener); }