Exemplo n.º 1
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);
                }
Exemplo n.º 2
0
            private ISpellChecker CreateSpellCheckerImplWithRetries(string languageTag, bool suppressCOMExceptions = true)
            {
                ISpellChecker spellChecker = null;

                bool callSucceeded =
                    RetryHelper.TryExecuteFunction <ISpellChecker>(
                        func: SpellCheckerCreationHelper.Helper(languageTag).CreateSpellChecker,
                        result: out spellChecker,
                        preamble:  SpellCheckerCreationHelper.Helper(languageTag).CreateSpellCheckerRetryPreamble,
                        ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]);


                return(callSucceeded ? spellChecker : null);
            }
Exemplo n.º 3
0
 private ISpellChecker CreateSpellCheckerImpl(string languageTag)
 {
     return(SpellCheckerCreationHelper.Helper(languageTag).CreateSpellChecker());
 }