示例#1
0
        /// <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();
        }
示例#2
0
        /// <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();
        }
示例#3
0
        /// <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();
        }
示例#4
0
        /// <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();
        }