Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Conventions Extension GenericBindingGenerator Equivalent in 3.0
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
G.McNicol  
View profile  
 More options Apr 30 2012, 9:30 am
From: "G.McNicol" <gar...@ibas.org.uk>
Date: Mon, 30 Apr 2012 06:30:07 -0700 (PDT)
Local: Mon, Apr 30 2012 9:30 am
Subject: Conventions Extension GenericBindingGenerator Equivalent in 3.0

Hi, what would be the 3.0 equivalent to this:

Kernel.Scan(x =>
{
    x.BindingGenerators.Add(new
GenericBindingGenerator(typeof(ICommandHandler<>)));

});

I can find no examples of this.

Thanks

Gareth


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Remo Gloor  
View profile  
 More options Apr 30 2012, 9:39 am
From: Remo Gloor <remo.gl...@bbv.ch>
Date: Mon, 30 Apr 2012 15:39:00 +0200
Subject: RE: [ninject] Conventions Extension GenericBindingGenerator Equivalent in 3.0

Generics aren't handled in a special way anymore. Just configure them as you would configure any other class.

From: ninject@googlegroups.com [mailto:ninject@googlegroups.com] On Behalf Of G.McNicol
Sent: Montag, 30. April 2012 15:30
To: ninject@googlegroups.com
Subject: [ninject] Conventions Extension GenericBindingGenerator Equivalent in 3.0

Hi, what would be the 3.0 equivalent to this:

Kernel.Scan(x =>
{
    x.BindingGenerators.Add(new GenericBindingGenerator(typeof(ICommandHandler<>)));

});

I can find no examples of this.

Thanks

Gareth
--
You received this message because you are subscribed to the Google Groups "ninject" group.
To view this discussion on the web visit https://groups.google.com/d/msg/ninject/-/hO5bt0WmEFMJ.
To post to this group, send email to ninject@googlegroups.com<mailto:ninject@googlegroups.com>.
To unsubscribe from this group, send email to ninject+unsubscribe@googlegroups.com<mailto:ninject+unsubscribe@googlegroup s.com>.
For more options, visit this group at http://groups.google.com/group/ninject?hl=en.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
G.McNicol  
View profile  
 More options Apr 30 2012, 9:49 am
From: "G.McNicol" <gar...@ibas.org.uk>
Date: Mon, 30 Apr 2012 06:49:37 -0700 (PDT)
Local: Mon, Apr 30 2012 9:49 am
Subject: Re: Conventions Extension GenericBindingGenerator Equivalent in 3.0

So, there's no conventional way to do it?

If not, I'll have to switch containers.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bartelink, Ruben  
View profile  
 More options Apr 30 2012, 10:56 am
From: "Bartelink, Ruben" <bartel...@gmail.com>
Date: Mon, 30 Apr 2012 07:56:23 -0700 (PDT)
Local: Mon, Apr 30 2012 10:56 am
Subject: Re: Conventions Extension GenericBindingGenerator Equivalent in 3.0

What Remo is saying is that there is no longer any magic special casing of
how generic bindings are handled in the conventions extension vs how types
that are not open generics are handled.

In other words any binding syntax that you can use outside of the
conventions extension will work against it.

Have you looked at the wiki
at https://github.com/ninject/ninject.extensions.conventions/wiki ?

There are examples of how one does bindings in general (though probably not
anything specific re conventions with open generic bindings - the point
being that its just how you'd do it without the conventions)

--R


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
G.McNicol  
View profile  
 More options May 1 2012, 5:09 am
From: "G.McNicol" <gar...@ibas.org.uk>
Date: Tue, 1 May 2012 02:09:36 -0700 (PDT)
Local: Tues, May 1 2012 5:09 am
Subject: Re: Conventions Extension GenericBindingGenerator Equivalent in 3.0

Gotcha!

Cheers!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »