Table of Contents

Class DataAnnotationsServiceCollectionExtensions

Namespace
Microsoft.Extensions.DependencyInjection
Assembly
Excalibur.Dispatch.dll

Extension methods for configuring DataAnnotations-based validation.

public static class DataAnnotationsServiceCollectionExtensions
Inheritance
DataAnnotationsServiceCollectionExtensions
Inherited Members

Methods

WithDataAnnotationsValidation(IDispatchBuilder)

Adds DataAnnotations-based validation to the dispatch pipeline. Zero external dependencies - uses only System.ComponentModel.DataAnnotations.

public static IDispatchBuilder WithDataAnnotationsValidation(this IDispatchBuilder builder)

Parameters

builder IDispatchBuilder

The dispatch builder to configure.

Returns

IDispatchBuilder

The dispatch builder for method chaining.

Exceptions

ArgumentNullException

Thrown when builder is null.