EncoderServiceCollectionExtensions Class

Definition

Extension methods for setting up web encoding services in an IServiceCollection.

public ref class EncoderServiceCollectionExtensions abstract sealed
public static class EncoderServiceCollectionExtensions
type EncoderServiceCollectionExtensions = class
Public Module EncoderServiceCollectionExtensions
Inheritance
EncoderServiceCollectionExtensions

Methods

AddWebEncoders(IServiceCollection, Action<WebEncoderOptions>)

Adds HtmlEncoder, JavaScriptEncoder and UrlEncoder to the specified services.

AddWebEncoders(IServiceCollection)

Adds HtmlEncoder, JavaScriptEncoder and UrlEncoder to the specified services.

Applies to