DataWeb
Search Results for

    Show / Hide Table of Contents

    Class ServicesConfiguration

    Extension methods for registering HTML and SVG sanitization services into the dependency injection container.

    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.Text.Html.AngleSharp
    Assembly: DataWeb.Text.Html.AngleSharp.dll
    Syntax
    public static class ServicesConfiguration

    Methods

    AddDataWebTextHtml(IServiceCollection)

    Registers HtmlService as the IHtmlService singleton implementation. The registration is skipped if an IHtmlService has already been registered.

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

    The IServiceCollection to add the service to.

    Returns
    Type Description
    IServiceCollection

    The same IServiceCollection instance for chaining.

    In this article
    Back to top Generated by DocFX