Method | Description | |
---|---|---|
AllInterfaces ( ) : Castle.MicroKernel.Registration.BasedOnDescriptor |
Uses all interfaces implemented by the type (or its base types) as well as their base interfaces.
|
|
Base ( ) : Castle.MicroKernel.Registration.BasedOnDescriptor |
Uses the base type matched on.
|
|
DefaultInterfaces ( ) : Castle.MicroKernel.Registration.BasedOnDescriptor |
Uses all interfaces that have names matched by implementation type name. Matches Foo to IFoo, SuperFooExtended to IFoo and IFooExtended etc
|
|
FirstInterface ( ) : Castle.MicroKernel.Registration.BasedOnDescriptor |
Uses the first interface of a type. This method has non-deterministic behavior when type implements more than one interface!
|
|
FromInterface ( ) : Castle.MicroKernel.Registration.BasedOnDescriptor |
Uses base type to lookup the sub interface.
|
|
FromInterface ( |
Uses implements to lookup the sub interface. For example: if you have IService and IProductService : ISomeInterface, IService, ISomeOtherInterface. When you call FromInterface(typeof(IService)) then IProductService will be used. Useful when you want to register _all_ your services and but not want to specify all of them.
|
|
Select ( IEnumerable |
Assigns the supplied service types.
|
|
Select ( ServiceSelector selector ) : Castle.MicroKernel.Registration.BasedOnDescriptor |
Assigns a custom service selection strategy.
|
|
Self ( ) : Castle.MicroKernel.Registration.BasedOnDescriptor |
Uses the type itself.
|
Method | Description | |
---|---|---|
AddFromInterface ( |
||
GetInterfaceName ( |
||
GetServices ( |
||
GetTopLevelInterfaces ( |
||
ServiceDescriptor ( Castle.MicroKernel.Registration.BasedOnDescriptor basedOnDescriptor ) : System | ||
WorkaroundCLRBug ( |
This is a workaround for a CLR bug in which GetInterfaces() returns interfaces with no implementations.
|
public AllInterfaces ( ) : Castle.MicroKernel.Registration.BasedOnDescriptor | ||
return | Castle.MicroKernel.Registration.BasedOnDescriptor |
public Base ( ) : Castle.MicroKernel.Registration.BasedOnDescriptor | ||
return | Castle.MicroKernel.Registration.BasedOnDescriptor |
public DefaultInterfaces ( ) : Castle.MicroKernel.Registration.BasedOnDescriptor | ||
return | Castle.MicroKernel.Registration.BasedOnDescriptor |
public FirstInterface ( ) : Castle.MicroKernel.Registration.BasedOnDescriptor | ||
return | Castle.MicroKernel.Registration.BasedOnDescriptor |
public FromInterface ( ) : Castle.MicroKernel.Registration.BasedOnDescriptor | ||
return | Castle.MicroKernel.Registration.BasedOnDescriptor |
public FromInterface ( |
||
implements | ||
return | Castle.MicroKernel.Registration.BasedOnDescriptor |
public Select ( IEnumerable |
||
types | IEnumerable |
|
return | Castle.MicroKernel.Registration.BasedOnDescriptor |
public Select ( ServiceSelector selector ) : Castle.MicroKernel.Registration.BasedOnDescriptor | ||
selector | ServiceSelector | |
return | Castle.MicroKernel.Registration.BasedOnDescriptor |
public Self ( ) : Castle.MicroKernel.Registration.BasedOnDescriptor | ||
return | Castle.MicroKernel.Registration.BasedOnDescriptor |