Workflow Engine .NET

Assembly: OptimaJet.Workflow.Core

Class TypeSearcher

OptimaJet.Workflow.Core.Runtime.CodeAutocomplete.TypeSearcher

Searches and caches available runtime types for code autocomplete.

public class TypeSearcher : ITypeSearcher

Inheritance

  • Object

Implemented Interfaces

Constructors

public TypeSearcher() #
Initializes a new instance of TypeSearcher with default exclusion settings.

Properties

Name
Type
Initialized #
Boolean
Gets a value indicating whether type discovery has completed.

Methods

public Type GetByFullName(string fullName) #
Gets a cached Type by full name.

Parameters

Name
Type
Description
fullName
String
Fully qualified type name, for example System.Text.StringBuilder.

Returns

Type
Description
Type
The Type registered under fullName, or null if no match exists.
public void SetExcludeNamespaces(IEnumerable<string> excludeNamespaces) #
Replaces the current exclusion namespace list.

Parameters

Name
Type
Description
excludeNamespaces
IEnumerable<String>
Namespace prefixes that are excluded when filtering discovered types.
public void AddExcludeNamespaces(IEnumerable<string> excludeNamespaces) #
Appends namespace prefixes to the existing exclusion list.

Parameters

Name
Type
Description
excludeNamespaces
IEnumerable<String>
Namespace prefixes to add to the filter.
public void InitIfNotInitialized() #
Initializes the type cache lazily on first call, scanning loaded assemblies.
public Type[] GetAllTypes() #
Gets all cached Type instances currently known to the searcher.

Returns

Type
Description
Type[]
An array that contains all cached types.