/// <summary>
 /// The spell-checker COM server will call back this method
 /// when it detects any changes to the spell-checker. Typically,
 /// this would indicated that the spell-checking needs to be
 /// re-done (for e.g., a new dictionary is registered).
 /// </summary>
 /// <param name="sender"></param>
 public void Invoke(ISpellChecker sender)
 {
     if (sender == _spellChecker?._speller?.Value)
     {
         _spellChecker?.OnChanged(_eventArgs);
     }
 }
 private RCW.ISpellChecker CreateSpellCheckerPrivate(string languageTag, bool suppressCOMExceptions = true)
 {
     RCW.ISpellChecker result = null;
     if (!SpellCheckerFactory._factoryLock.WithWriteLock <string, bool, RCW.ISpellChecker>(new Func <string, bool, RCW.ISpellChecker>(this.CreateSpellCheckerImplWithRetries), languageTag, suppressCOMExceptions, out result))
     {
         return(null);
     }
     return(result);
 }
 private RCW.ISpellChecker CreateSpellCheckerImplWithRetries(string languageTag, bool suppressCOMExceptions = true)
 {
     RCW.ISpellChecker result = null;
     if (!RetryHelper.TryExecuteFunction <RCW.ISpellChecker>(new Func <RCW.ISpellChecker>(SpellCheckerFactory.SpellCheckerCreationHelper.Helper(languageTag).CreateSpellChecker), out result, new RetryHelper.RetryFunctionPreamble <RCW.ISpellChecker>(SpellCheckerFactory.SpellCheckerCreationHelper.Helper(languageTag).CreateSpellCheckerRetryPreamble), SpellCheckerFactory.SuppressedExceptions[suppressCOMExceptions], 3, false))
     {
         return(null);
     }
     return(result);
 }
            // Token: 0x060086BE RID: 34494 RVA: 0x0024E7D0 File Offset: 0x0024C9D0
            public void Invoke(RCW.ISpellChecker sender)
            {
                SpellChecker spellChecker = this._spellChecker;

                RCW.ISpellChecker spellChecker2;
                if (spellChecker == null)
                {
                    spellChecker2 = null;
                }
                else
                {
                    ChangeNotifyWrapper <RCW.ISpellChecker> speller = spellChecker._speller;
                    spellChecker2 = ((speller != null) ? speller.Value : null);
                }
                if (sender == spellChecker2)
                {
                    SpellChecker spellChecker3 = this._spellChecker;
                    if (spellChecker3 == null)
                    {
                        return;
                    }
                    spellChecker3.OnChanged(this._eventArgs);
                }
            }