Fix breaking changes from MVC
This commit is contained in:
parent
6d50b397c0
commit
d112adc1f2
|
|
@ -4,6 +4,7 @@ using System.Collections.Generic;
|
|||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNet.Mvc.ModelBinding;
|
||||
using Microsoft.AspNet.Routing;
|
||||
|
||||
namespace Microsoft.AspNet.Mvc
|
||||
{
|
||||
|
|
@ -39,8 +40,12 @@ namespace Microsoft.AspNet.Mvc
|
|||
{
|
||||
LazyInitializer.EnsureInitialized(ref _modelBinder, ref _modelBinderInitialized, ref _modelBinderInitLocker, () =>
|
||||
{
|
||||
var requestContext = new RequestContext(Context, ActionContext.RouteValues);
|
||||
_compositeValueProvider = new CompositeValueProvider(_valueProviderFactories.Select(vpf => vpf.GetValueProvider(requestContext)));
|
||||
var routeContext = new RouteContext(Context)
|
||||
{
|
||||
RouteData = ActionContext.RouteData,
|
||||
};
|
||||
|
||||
_compositeValueProvider = new CompositeValueProvider(_valueProviderFactories.Select(vpf => vpf.GetValueProvider(routeContext)));
|
||||
return new CompositeModelBinder(_modelBinders);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue