Skip to content

SecondsToTimeSpanModelBinder Class

A model binder that converts seconds (as string) to a System.TimeSpan object.

C#
public class SecondsToTimeSpanModelBinder : Abblix.Oidc.Server.Mvc.Binders.ModelBinderBase

Inheritance System.ObjectModelBinderBase → SecondsToTimeSpanModelBinder

Remarks

This model binder is useful for binding API parameters that are provided as seconds in string format, and need to be converted to a System.TimeSpan for internal processing.