Custom model binder for a webapi method with more than one parameter
问题 WHAT I HAVE I have an api controller (ASP.NET Core MVC) with the following method: [HttpPost] [Route("delete")] public Task<ActionResult> SomeAction(Guid[] ids, UserToken userToken, CancellationToken cancellationToken) { .... } I have a custom model binder and binder provider: public class UserTokenBinderProvider : IModelBinderProvider { public IModelBinder GetBinder(ModelBinderProviderContext context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (context