mirror of
https://github.com/sphildreth/roadie
synced 2024-11-10 06:44:12 +00:00
17 lines
440 B
C#
17 lines
440 B
C#
using Microsoft.AspNetCore.Mvc.ModelBinding;
|
|
|
|
namespace Roadie.Api.ModelBinding
|
|
{
|
|
public class SubsonicRequestBinderProvider : IModelBinderProvider
|
|
{
|
|
public IModelBinder GetBinder(ModelBinderProviderContext context)
|
|
{
|
|
if (context.Metadata.ModelType == typeof(SubsonicRequest))
|
|
{
|
|
return new SubsonicRequestBinder();
|
|
}
|
|
|
|
return null;
|
|
}
|
|
}
|
|
}
|