Class TypeSearcher
OptimaJet.Workflow.Core.Runtime.CodeAutocomplete.TypeSearcher
Searches and caches available runtime types for code autocomplete.
Namespace: OptimaJet.Workflow.Core.Runtime.CodeAutocomplete
public class TypeSearcher : ITypeSearcherType Hierarchy
- TypeSearcher Current type
- Implemented interfaces
Constructors
public TypeSearcher() #Initializes a new instance of TypeSearcher with default exclusion settings.
Properties
public bool Initialized { get; } #Gets a value indicating whether type discovery has completed.
Methods
public void SetExcludeNamespaces(IEnumerable<string> excludeNamespaces) #Replaces the current exclusion namespace list.
Parameters
Name
Type
Description
excludeNamespacesIEnumerable<String>Namespace prefixes that are excluded when filtering discovered types.
Exceptions
Type
Description
InvalidOperationExceptionThe searcher has already been initialized.
Remarks
This method can be called only before initialization has started.
public void AddExcludeNamespaces(IEnumerable<string> excludeNamespaces) #Appends namespace prefixes to the existing exclusion list.
Parameters
Name
Type
Description
excludeNamespacesIEnumerable<String>Namespace prefixes to add to the filter.
Exceptions
Type
Description
InvalidOperationExceptionThe searcher has already been initialized.
Remarks
This method can be called only before initialization has started. Null or empty collections are ignored.
public void InitIfNotInitialized() #Initializes the type cache lazily on first call, scanning loaded assemblies.
Remarks
The initialization work is protected by a lock and executes only once.