views:

21

answers:

1

Is it possible to initialize a castle container (windsor) by passing a stream to the XmlInterpreter somehow? It appears that the current implementation only supports files. thanx, -tzurs

+1  A: 

Inherit from AbstractStreamResource, then you can do:

var c = new WindsorContainer(new XmlInterpreter(new MyStreamResource(...)));

See FileResource for guidance.

Mauricio Scheffer

related questions