Class DeactivatedDesignerAutocompleteProvider
OptimaJet.Workflow.Core.Runtime.DeactivatedDesignerAutocompleteProvider
Wraps an IDesignerAutocompleteProvider and allows it to be enabled or disabled dynamically.
Namespace: OptimaJet.Workflow.Core.Runtime
public class DeactivatedDesignerAutocompleteProvider : IDesignerAutocompleteProviderType Hierarchy
- DeactivatedDesignerAutocompleteProvider Current type
- Implemented interfaces
Constructors
public DeactivatedDesignerAutocompleteProvider(IDesignerAutocompleteProvider activatedDesignerAutocompleteProvider, Func<bool> getDisabled) #Parameters
activatedDesignerAutocompleteProviderIDesignerAutocompleteProvidergetDisabled returns false.getDisabledFunc<Boolean>activatedDesignerAutocompleteProvider.Methods
public List<string> GetAutocompleteSuggestions(SuggestionCategory category, string value, string schemeCode) #Parameters
categorySuggestionCategoryvalueStringschemeCodeStringReturns
List<String>Remarks
The wrapper evaluates the predicate supplied to the constructor on every method call. When the predicate returns false, the call is forwarded unchanged to the configured provider. When it returns true, the configured provider is bypassed and the call is delegated to EmptyDesignerAutocompleteProvider.Value. Disabling the wrapper does not modify the configured provider.
While disabled, DeactivatedDesignerAutocompleteProvider.GetAutocompleteSuggestions(SuggestionCategory, string, string) returns an empty list of autocomplete suggestions.