DataWeb
Search Results for

    Show / Hide Table of Contents

    Class ServicesConfiguration

    Provides extension methods on IServiceCollection to register DataWeb Core services.

    Inheritance
    object
    ServicesConfiguration
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DataWeb.Dependency
    Assembly: DataWeb.Core.dll
    Syntax
    public static class ServicesConfiguration

    Methods

    AddDataWebAutomation(IServiceCollection)

    Registers all DataWeb Automation services into the IServiceCollection.

    Declaration
    public static IServiceCollection AddDataWebAutomation(this IServiceCollection services)
    Parameters
    Type Name Description
    IServiceCollection services

    The IServiceCollection to add the services to.

    Returns
    Type Description
    IServiceCollection

    The same IServiceCollection instance, to allow method chaining.

    Remarks

    Registers scoped services for automation events, profiles, scenarios, and tasks. Uses TryAdd(IServiceCollection, ServiceDescriptor) variants to avoid duplicate registrations.

    AddDataWebCore(IServiceCollection)

    Registers all DataWeb Core services into the IServiceCollection.

    Declaration
    public static IServiceCollection AddDataWebCore(this IServiceCollection services)
    Parameters
    Type Name Description
    IServiceCollection services

    The IServiceCollection to add the services to.

    Returns
    Type Description
    IServiceCollection

    The same IServiceCollection instance, to allow method chaining.

    Remarks

    Registers singleton services (configuration, environment, localization, HTTP, reflection, settings, errors, auditing, analytics), scoped services (structure, forms, lists, media, templating, newsletter, authorization, identity), and transient services (string localizer). Uses TryAdd(IServiceCollection, ServiceDescriptor) variants to avoid duplicate registrations.

    In this article
    Back to top Generated by DocFX