That's interesting Guido, I'm using the same library and have it
working absolutely fine for me (Did you add a global.asax and derive
it from the Application object in the library, that could cause a few
problems if not done I guess).
I'm now at the point where I need to have ninject return objects
scoped to the wcf call (I use percall services you see).
I know Nate mentioned on his blog he was going to write a post
sometime about the new GC based scoping features of 2.0 but was hoping
someone else may have already played with this.
On 2 Oct, 15:27, Guido Ziliotti <
guido.zilio...@gmail.com> wrote:
> I'm interested in wcf scoping too and just started using
> ninject.extensions.wcf <
http://github.com/idavis/ninject.extensions.wcf>.
> At present I am looking around for recepies outlined by some developers,
> some of
> these are presente in previous conversation by Ian.
>
> Currently I am experimenting some difficulties tough. I've just reassembled
> the example project
> but I am definitly missing something because as soon as I use
>
> Factory="Ninject.Extensions.Wcf.NinjectServiceHostFactory"
>
> in .svc file I have an exception on service activation
>
> protected override void OnOpening(){
> Description.Behaviors.Add( new NinjectServiceBehavior()
> );//Description is null!!!
> base.OnOpening();
> }
>
> Description is null. So I've made something wrong. But I am missing the
> point.
>
> Any help is welcome.
>
> Then I have another question related to the original* WcfTimeService*. I
> Expected to be able to Inject
> ISystemClock in the service ctor. I think this should be the all point of
> wcf uinfrastucture.
> But it seems the no argument ctor is necessary.
>
>
>
> On Fri, Oct 2, 2009 at 2:46 PM, Chris <
cmdrk...@googlemail.com> wrote:
>
> > Hey All,
>
> > I'm currently using the WCF extensions found at
> >
http://github.com/idavis/ninject.extensions.wcfand it seems to be