/// <summary> /// Implements IDisposable.Dispose. /// </summary> public void Dispose() { // Unregister the filter. IMessageFilter ourFilter; NativeMethods.CoRegisterMessageFilter(_oldFilter, out ourFilter); GC.SuppressFinalize(this); }
/// <summary> /// Constructor. /// </summary> public RetryMessageFilter() { // Register the filter. NativeMethods.CoRegisterMessageFilter(this, out _oldFilter); }