Innovt Platform
Search Results for

    Show / Hide Table of Contents

    Class IocModule

    Represents a module for configuring and managing services within a dependency injection container.

    Inheritance
    object
    IocModule
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Innovt.Core.CrossCutting.Ioc
    Assembly: Innovt.Core.dll
    Syntax
    public class IocModule
    Remarks

    This class provides a way to define and manage services within a dependency injection container. Developers can create custom modules to configure and add services to the container, making it easier to organize and maintain the service registration code.

    Constructors

    | Edit this page View Source

    IocModule()

    Initializes a new instance of the IocModule class with a new ServiceCollection.

    Declaration
    public IocModule()
    | Edit this page View Source

    IocModule(IServiceCollection)

    Initializes a new instance of the IocModule class with the provided services.

    Declaration
    public IocModule(IServiceCollection services)
    Parameters
    Type Name Description
    IServiceCollection services

    The IServiceCollection to be used for service registration.

    Properties

    | Edit this page View Source

    Services

    Gets the IServiceCollection used for service registration and configuration.

    Declaration
    public IServiceCollection Services { get; }
    Property Value
    Type Description
    IServiceCollection

    Methods

    | Edit this page View Source

    AppendServices(IServiceCollection)

    Appends services from an external IServiceCollection to the module's services.

    Declaration
    public IServiceCollection AppendServices(IServiceCollection externalServices)
    Parameters
    Type Name Description
    IServiceCollection externalServices

    The external IServiceCollection containing services to append.

    Returns
    Type Description
    IServiceCollection

    The updated IServiceCollection after appending external services.

    | Edit this page View Source

    GetServices()

    Gets the IServiceCollection used for service registration and configuration.

    Declaration
    public IServiceCollection GetServices()
    Returns
    Type Description
    IServiceCollection

    The IServiceCollection associated with this module.

    Extension Methods

    Extensions.IsNull(object)
    Extensions.ToStringOrDefault(object)
    SimpleMapper.MapTo<T1>(object)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX