示例#1
0
        public DefaultODataActionCreateUpdateParameterDeserializer(System.Web.Http.Dependencies.IDependencyResolver dependencyResolver)
            : base(ODataPayloadKind.Parameter)
        {
            if (dependencyResolver == null)
            {
                throw new ArgumentNullException(nameof(dependencyResolver));
            }

            _stringFormatterConvert             = new ODataJsonDeSerializerStringCorrector(dependencyResolver.GetServices(typeof(IStringCorrector).GetTypeInfo()).Cast <IStringCorrector>().ToArray());
            _odataJsonDeserializerEnumConverter = new ODataJsonDeSerializerEnumConverter();
        }
 public DefaultODataActionCreateUpdateParameterDeserializer(IEnumerable <IStringCorrector> stringCorrectors)
     : base(ODataPayloadKind.Parameter)
 {
     _stringCorrectorsConverters         = new ODataJsonDeSerializerStringCorrector(stringCorrectors.ToArray());
     _odataJsonDeserializerEnumConverter = new ODataJsonDeSerializerEnumConverter();
 }