// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System.Collections.Generic;
using System.Web.Http.Controllers;
using System.Web.Http.Metadata;
using System.Web.Http.ModelBinding;
namespace System.Web.Http.Validation
{
///
/// Context passed between methods.
///
public class BodyModelValidatorContext
{
public BodyModelValidatorContext(ModelStateDictionary modelState)
{
if (modelState == null)
{
throw new ArgumentNullException("modelState");
}
KeyBuilders = new Stack();
ModelState = modelState;
Visited = new HashSet