#### [Abblix\.Oidc\.Server\.Mvc](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc 'index')
### [Abblix\.Oidc\.Server\.Mvc\.Binders](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Binders 'Abblix\.Oidc\.Server\.Mvc\.Binders')

## ModelBinderBase Class

Provides a base implementation for a model binder\.

```csharp
public abstract class ModelBinderBase : Microsoft.AspNetCore.Mvc.ModelBinding.IModelBinder
```

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → ModelBinderBase

Derived  
↳ [AuthenticationHeaderBinder](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Binders.AuthenticationHeaderBinder 'Abblix\.Oidc\.Server\.Mvc\.Binders\.AuthenticationHeaderBinder')  
↳ [CultureInfoBinder](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Binders.CultureInfoBinder 'Abblix\.Oidc\.Server\.Mvc\.Binders\.CultureInfoBinder')  
↳ [JsonSerializerModelBinder](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Binders.JsonSerializerModelBinder 'Abblix\.Oidc\.Server\.Mvc\.Binders\.JsonSerializerModelBinder')  
↳ [SecondsToTimeSpanModelBinder](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Binders.SecondsToTimeSpanModelBinder 'Abblix\.Oidc\.Server\.Mvc\.Binders\.SecondsToTimeSpanModelBinder')  
↳ [SpaceSeparatedValuesBinder](https://www.abblix.com/en/docs/api/abblix-oidc-server-mvc/Abblix.Oidc.Server.Mvc.Binders.SpaceSeparatedValuesBinder 'Abblix\.Oidc\.Server\.Mvc\.Binders\.SpaceSeparatedValuesBinder')

Implements [Microsoft\.AspNetCore\.Mvc\.ModelBinding\.IModelBinder](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.modelbinding.imodelbinder 'Microsoft\.AspNetCore\.Mvc\.ModelBinding\.IModelBinder')

### Remarks
This abstract class serves as a foundation for custom model binders\.
It handles common binding tasks and delegates the specific parsing logic
to the derived classes through the abstract [Abblix\.Oidc\.Server\.Mvc\.Binders\.ModelBinderBase\.TryParse\(System\.Type,Microsoft\.Extensions\.Primitives\.StringValues,System\.Object@\)](https://learn.microsoft.com/en-us/dotnet/api/abblix.oidc.server.mvc.binders.modelbinderbase.tryparse#abblix-oidc-server-mvc-binders-modelbinderbase-tryparse(system-type-microsoft-extensions-primitives-stringvalues-system-object@) 'Abblix\.Oidc\.Server\.Mvc\.Binders\.ModelBinderBase\.TryParse\(System\.Type,Microsoft\.Extensions\.Primitives\.StringValues,System\.Object@\)') method\.
### Methods

## ModelBinderBase\.BindModelAsync\(ModelBindingContext\) Method {#Abblix.Oidc.Server.Mvc.Binders.ModelBinderBase.BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext)}

Asynchronously binds the model for a given action method parameter\.

```csharp
public virtual System.Threading.Tasks.Task BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext bindingContext);
```
#### Parameters

###### `bindingContext` [Microsoft\.AspNetCore\.Mvc\.ModelBinding\.ModelBindingContext](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.modelbinding.modelbindingcontext 'Microsoft\.AspNetCore\.Mvc\.ModelBinding\.ModelBindingContext') {#Abblix.Oidc.Server.Mvc.Binders.ModelBinderBase.BindModelAsync(Microsoft.AspNetCore.Mvc.ModelBinding.ModelBindingContext).bindingContext}

The context for the model binding process, containing information about
            the model object, the state of the model binding, and other metadata\.

Implements [BindModelAsync\(ModelBindingContext\)](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.modelbinding.imodelbinder.bindmodelasync#microsoft-aspnetcore-mvc-modelbinding-imodelbinder-bindmodelasync(microsoft-aspnetcore-mvc-modelbinding-modelbindingcontext) 'Microsoft\.AspNetCore\.Mvc\.ModelBinding\.IModelBinder\.BindModelAsync\(Microsoft\.AspNetCore\.Mvc\.ModelBinding\.ModelBindingContext\)')

#### Returns
[System\.Threading\.Tasks\.Task](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task 'System\.Threading\.Tasks\.Task')  
A task representing the model binding process\.

#### Exceptions

[System\.ArgumentNullException](https://learn.microsoft.com/en-us/dotnet/api/system.argumentnullexception 'System\.ArgumentNullException')  
Thrown when the bindingContext is null\.
