private uint?addSpellCheckerChangedImplWithRetries(ISpellCheckerChangedEventHandler handler, bool suppressCOMExceptions) { uint?eventCookie; bool callSucceeded = RetryHelper.TryExecuteFunction( func: () => add_SpellCheckerChangedImpl(handler), result: out eventCookie, preamble: () => Init(suppressCOMExceptions), ignoredExceptions: SuppressedExceptions[suppressCOMExceptions]); return(callSucceeded ? eventCookie : null); }
private uint?add_SpellCheckerChanged(ISpellCheckerChangedEventHandler handler, bool suppressCOMExceptions = true) { return(_disposed ? null : addSpellCheckerChangedImplWithRetries(handler, suppressCOMExceptions)); }
private uint?add_SpellCheckerChangedImpl(ISpellCheckerChangedEventHandler handler) { return((handler != null) ? (uint?)null : _speller.Value.add_SpellCheckerChanged(handler)); }