Class DefaultUmbracoAssemblyProvider
Returns a list of scannable assemblies based on an entry point assembly and it's references
Inheritance
object
Namespace: Umbraco.Cms.Core.Composing
Assembly: Umbraco.Core.dll
Syntax
public class DefaultUmbracoAssemblyProvider : IAssemblyProvider
Remarks
This will recursively search through the entry point's assemblies and Umbraco's core assemblies and their references to create a list of scannable assemblies based on whether they themselves or their transitive dependencies reference Umbraco core assemblies.
Constructors
View SourceDefaultUmbracoAssemblyProvider(Assembly?, ILoggerFactory, IEnumerable<string>?)
Initializes a new instance of the DefaultUmbracoAssemblyProvider class.
Declaration
public DefaultUmbracoAssemblyProvider(Assembly? entryPointAssembly, ILoggerFactory loggerFactory, IEnumerable<string>? additionalTargetAssemblies = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Assembly | entryPointAssembly | The entry point assembly to scan from. |
| ILoggerFactory | loggerFactory | The logger factory for creating loggers. |
| IEnumerable<string> | additionalTargetAssemblies | Optional additional assembly names to include in scanning. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown when |
Properties
View SourceAssemblies
Gets the collection of assemblies available for type scanning.
Declaration
public IEnumerable<Assembly> Assemblies { get; }
Property Value
| Type | Description |
|---|---|
| IEnumerable<Assembly> |