/// <summary> /// Clears all the subscriptions from the <see cref="MessageHub"/>. /// <remarks>The global handler and the global error handler are not affected</remarks> /// </summary> public void ClearSubscriptions() => _subscriptions.Clear(false);
/// <summary> /// Clears all the subscriptions from the <see cref="MessageHub"/>. /// <remarks>The global handler and the global error handler are not affected</remarks> /// </summary> public void ClearSubscriptions() => Subscriptions.Clear();
/// <summary> /// Clears all the subscriptions from the <see cref="MessageHub"/>. /// <remarks>The global handler and the <see cref="OnError"/> are not affected</remarks> /// </summary> public void ClearSubscriptions() { EnsureNotDisposed(); Subscriptions.Clear(); }