public bool CreateSpellCheckerRetryPreamble(out Func <RCW.ISpellChecker> func)
            {
                func = null;
                bool result;

                if (result = SpellCheckerFactory.Reinitalize())
                {
                    func = new Func <RCW.ISpellChecker>(SpellCheckerFactory.SpellCheckerCreationHelper.Helper(this._language).CreateSpellChecker);
                }
                return(result);
            }
Beispiel #2
0
                public bool CreateSpellCheckerRetryPreamble(out Func <RCW.ISpellChecker> func)
                {
                    bool success = false;

                    func = null;

                    if (success = SpellCheckerFactory.Reinitalize())
                    {
                        func = SpellCheckerCreationHelper.Helper(_language).CreateSpellChecker;
                    }

                    return(success);
                }
 // Token: 0x06004099 RID: 16537 RVA: 0x00127178 File Offset: 0x00125378
 private void UnregisterUserDictionaryImplWithRetries(string dictionaryPath, string languageTag, bool suppressCOMExceptions = true)
 {
     if (dictionaryPath == null)
     {
         throw new ArgumentNullException("dictionaryPath");
     }
     if (languageTag == null)
     {
         throw new ArgumentNullException("languageTag");
     }
     RetryHelper.TryCallAction(delegate()
     {
         this.UnregisterUserDictionaryImpl(dictionaryPath, languageTag);
     }, () => SpellCheckerFactory.Reinitalize(), SpellCheckerFactory.SuppressedExceptions[suppressCOMExceptions], 3, false);
 }
        // Token: 0x0600408D RID: 16525 RVA: 0x00126EF8 File Offset: 0x001250F8
        private bool IsSupportedImplWithRetries(string languageTag, bool suppressCOMExceptions = true)
        {
            bool flag = false;

            return(RetryHelper.TryExecuteFunction <bool>(() => this.IsSupportedImpl(languageTag), out flag, () => SpellCheckerFactory.Reinitalize(), SpellCheckerFactory.SuppressedExceptions[suppressCOMExceptions], 3, false) && flag);
        }
        // Token: 0x06004089 RID: 16521 RVA: 0x00126E40 File Offset: 0x00125040
        private List <string> SupportedLanguagesImplWithRetries(bool shouldSuppressCOMExceptions)
        {
            List <string> result = null;

            if (!RetryHelper.TryExecuteFunction <List <string> >(new Func <List <string> >(this.SupportedLanguagesImpl), out result, () => SpellCheckerFactory.Reinitalize(), SpellCheckerFactory.SuppressedExceptions[shouldSuppressCOMExceptions], 3, false))
            {
                return(null);
            }
            return(result);
        }