Skip to main content
Version: Preview (0.3.0-preview.205)

Class ValueObjectModelBinderProvider

Namespace: AdCodicem.ValueObjects.AspNetCore.ModelBinding
Assembly: AdCodicem.ValueObjects.AspNetCore.dll

Supplies the model binder of any value object.

public sealed class ValueObjectModelBinderProvider : IModelBinderProvider

Inheritance​

object ← ValueObjectModelBinderProvider

Implements​

IModelBinderProvider

Inherited Members​

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Remarks​

Providers are consulted once per action parameter while the application starts, so closing the generic binder over the concrete types here costs nothing per request. The instances are cached anyway, because MVC creates metadata for the same type in many places.

Methods​

GetBinder(ModelBinderProviderContext)​

Creates a based on .

public IModelBinder? GetBinder(ModelBinderProviderContext context)

Parameters​

context ModelBinderProviderContext

The .

Returns​

IModelBinder?

An .