/// <summary>
 /// Restores the previous dispatcher filter.
 /// </summary>
 public void Dispose()
 {
     Dispatcher.SetCurrentFilter(this._previousIMulticastFilter);
 }
 /// <summary>
 /// Constructs an instance of the DispatcherFilterKeeper class.
 /// </summary>
 /// <param name="iMulticastFilter">The filter supporting IMulticastFilter interface.</param>
 public DispatcherFilterKeeper(IMulticastFilter iMulticastFilter)
 {
     this._previousIMulticastFilter = Dispatcher.SetCurrentFilter(iMulticastFilter);
 }