LosWochos wrote:
Hello all,I'm new to Caste Windsor and I have some questions: Curently I have multiple alternative implementations of an interface. These implementations are compiled into their own assemblies. Now I would like to be able to configure with Castle Widsor, which of those assemblies should be loaded at runtime to be used as the concrete implementation of the interface. 1) I did not see it in the examples, but can I specify the filename of the assembly, to load a component from?
Whenever you specify which which type will be registered under certain service you type in a fully qualified type name which consistzs of:
namespace.class,assembly
eg. you have the following class in assembly "SampleAssembly"
namespace SampleNamespace
{
class SampleClass
{
}
}
The fully qualified type name will be
SampleNamespace.SampleClass,SampleAssembly
2) Do I have to add the reference for a component to the main appliction to use the type by Castle Windsor?
No - only a library with the interface -- Maciej Paszta
smime.p7s
Description: S/MIME Cryptographic Signature
