Ejemplo n.º 1
0
        public BindResult BindModel(Type type, IRequestData data)
        {
            try
            {
                _report.StartModelBinding(type);
                BindResult result = _resolver.BindModel(type, data);
                _report.EndModelBinding(result.Value);

                return(result);
            }
            catch (Exception)
            {
                _report.EndModelBinding(null);
                throw;
            }
        }
Ejemplo n.º 2
0
        public BindResult BindModel(Type type, IRequestData data)
        {
            try
            {
                _report.StartModelBinding(type);
                BindResult result = _resolver.BindModel(type, data);
                _report.EndModelBinding(result.Value);

                return(result);
            }
            catch (Exception exc)
            {
                _report.AddBindingDetail(new ModelBindingException
                {
                    StackTrace = exc.StackTrace
                });
                _report.EndModelBinding(null);
                throw;
            }
        }