-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Agatha and Ninject 3.0 #23
Comments
Also, it might be a good idea to republish the nuget packages with a version range to prevent people from updating ninject unknowingly. |
haven't really planned an update to NInject 3.0 yet... If you need it On Tue, Apr 24, 2012 at 9:56 PM, Michael Aird <
|
Gotcha. I'll see if i can pull something together this week and submit a pull request. |
Upgraded nuget package to Ninject 3.0.0.15 |
I'm using v1.3 from Nuget. When I look at it in JustDecompile, the method looks like this: public ServiceLayerConfiguration RegisterRequestHandlerInterceptor() but in the current code it looks like this: Did this get updated but the nuget package didn't? |
The registration part was moved in the version below, but the same signature is used to register the components. |
I think i found the culprit. Ninject 3 changed the method signature in this commit: ninject/Ninject@83c8f53#diff-28
from taking a single object to taking an array. recompiling against ninject 3 makes the compiler re-resolve the method call and everything works. I could do a local build of Agatha to deal with this but I'd really prefer to use the "official" nuget packages. Any chance you could publish an updated nuget package that has been compiled against ninject 3? Thanks, |
1.3.1 uses Ninject 3 |
It looks like Ninject 3.0 has removed a method that the Agatha Ninject container relies on. When i try to run it, i get the following error:
[MissingMethodException: Method not found: 'Ninject.Syntax.IBindingToSyntax`1<System.Object> Ninject.Syntax.IBindingRoot.Bind(System.Type)'.]
Agatha.Ninject.Container.Register(Type componentType, Type implementationType, Lifestyle lifeStyle) in c:\src\agatha\Agatha.Ninject\Container.cs:23
Agatha.ServiceLayer.ServiceLayerConfiguration.RegisterRequestHandlerInterceptor() in c:\src\agatha\Agatha.ServiceLayer\ServiceLayerConfiguration.cs:190
Agatha.ServiceLayer.ServiceLayerAndClientConfiguration.RegisterRequestHandlerInterceptor() in c:\src\agatha\Agatha.ServiceLayer\ServiceLayerAndClientConfiguration.cs:108
Is there a work-around for this? or a planned update to support Ninject 3.0?
Thanks,
Michael.
The text was updated successfully, but these errors were encountered: