/// <summary> /// Unregisters a <see cref="ILogFilterProvider"/> from the <see cref="ILogFilterHandler"/> instance. /// </summary> /// <param name="provider">The <see cref="ILogFilterProvider"/> to unregister.</param> public void UnregisterFilterProvider(ILogFilterProvider provider) { if (mLogFilterProvider.Contains(provider)) { mLogFilterProvider.Remove(provider); } // Remove possible obsolete filter. FilterChanged(); }
/// <summary> /// Registers a <see cref="ILogFilterProvider"/> to the <see cref="ILogFilterHandler"/> instance. /// </summary> /// <param name="provider">The <see cref="ILogFilterProvider"/> to register.</param> public void RegisterFilterProvider(ILogFilterProvider provider) { if (!mLogFilterProvider.Contains(provider)) { mLogFilterProvider.Add(provider); } // Apply possible new filter. FilterChanged(); }