Class PackageReferencedAssemblies

Namespace
Cratis.Types
Assembly
Cratis.Fundamentals.dll

Represents an implementation of ICanProvideAssembliesForDiscovery that provides package referenced assemblies.

public class PackageReferencedAssemblies : ICanProvideAssembliesForDiscovery
Inheritance
PackageReferencedAssemblies
Implements
Inherited Members
Extension Methods

Constructors

PackageReferencedAssemblies()

public PackageReferencedAssemblies()

Fields

Instance

Gets the global instance of PackageReferencedAssemblies.

public static readonly PackageReferencedAssemblies Instance

Field Value

PackageReferencedAssemblies

Remarks

Its recommended to use the singleton defined here, rather than building your own instance. This is due to the performance impact of scanning all assemblies in the application.

Properties

Assemblies

Gets the assemblies to use for type discovery.

public IEnumerable<Assembly> Assemblies { get; }

Property Value

IEnumerable<Assembly>

DefinedTypes

Gets all the defined types from all the assemblies.

public IEnumerable<Type> DefinedTypes { get; }

Property Value

IEnumerable<Type>

Methods

AddAssemblyPrefixesToInclude(params string[])

Add an assembly prefix to exclude from type discovery.

public void AddAssemblyPrefixesToInclude(params string[] prefixes)

Parameters

prefixes string[]

Prefixes to add.

Initialize()

Initializes the system.

[UnconditionalSuppressMessage("SingleFile", "IL3002", Justification = "Fallback provider is used when generated discovery metadata is unavailable.")]
[UnconditionalSuppressMessage("Trimming", "IL2026", Justification = "Fallback provider is used when generated discovery metadata is unavailable.")]
public void Initialize()