Search Results for

    Show / Hide Table of Contents
    View Source

    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 Source

    DefaultUmbracoAssemblyProvider(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 entryPointAssembly is null.

    Properties

    View Source

    Assemblies

    Gets the collection of assemblies available for type scanning.

    Declaration
    public IEnumerable<Assembly> Assemblies { get; }
    Property Value
    Type Description
    IEnumerable<Assembly>
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX