Code Monkey home page Code Monkey logo

Comments (4)

nikmd23 avatar nikmd23 commented on June 29, 2024

Good catch llusetti,

I'll make sure we update this for the next release, it should either A) wrap
the DefaultModelBinder, or B) not mess with your configuration if we can't
wrap.

Please let us know if you run into any other issues - we know we don't have
too many users doing their own implementations of some of the more
"internal" parts of MVC, so your feedback is much appreciated.

Thanks,
Nik

On Tue, Apr 19, 2011 at 8:17 AM, llusetti <
[email protected]>wrote:

Hi, I've started using Glimpse today so maybe I'm wrong about this or
occurs only in my configuration.

I user NInject in my MVC application and my MvcApplication class extends
Ninject.Web.Mvc.NinjectHttpApplication. I override OnApplicationStarted and
set ModelBinders.Binders.DefaultBinder to my custom implementation.

I've noticed that biding was broken after adding Glimpse to my project. I
looked inside Glimpse source code and found that in the Binders plugin the
DefaultBinder gets replaced if it's not a GlimpseDefaultModelBinder


if (!(ModelBinders.Binders.DefaultBinder is GlimpseDefaultModelBinder))
   ModelBinders.Binders.DefaultBinder = new GlimpseDefaultModelBinder();

Is this the intended behavior or should it be replaced by a wrapper ?


if (!(ModelBinders.Binders.DefaultBinder is GlimpseDefaultModelBinder))
{
   if (ModelBinders.Binders.DefaultBinder == null)
       ModelBinders.Binders.DefaultBinder = new
GlimpseDefaultModelBinder();
   else
       ModelBinders.Binders.DefaultBinder = new
GlimpseModelBinder(ModelBinders.Binders.DefaultBinder);
}

Reply to this email directly or view it on GitHub:
#19

from glimpse.

llusetti avatar llusetti commented on June 29, 2024

I'm really happy to contribute in some way to this great tool. For me it was love at first sight!

Thanks
Luca Lusetti

from glimpse.

avanderhoorn avatar avanderhoorn commented on June 29, 2024

@llusetti thanks for working with us to help sort out these issues and thanks for the positive feedback - keep an eye out for the next release

from glimpse.

avanderhoorn avatar avanderhoorn commented on June 29, 2024

@llusetti we know about the support for type of scenario with Glimpse not being ideal. At the moment we are making changes that will help with being able to support it (i.e. we are working with DynamicProxy to be able to do some wrapping which should be able to facilitate this). Keep an eye out on the next release.

from glimpse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.