how can I do that?
If you're asking if you can register new resources at any random time, the answer is no, as a lot of the processing pipeline depends on knowing everything about the application when the application starts. If you're asking if you can register handlers and resources from random assemblies that you'd load the first time around, yes you can do that. You can either scan the assemblies yourself and register them using the weakly-typed fluent api, or provide your own extension method on top of the metamodel repository.
ResourceSpace.Has.ResourcesOfType(resourceType)...HandledBy(handlerType)
You can do that recursively.
Otehrwise, you can extend the fluent API with your own registration and add a ResourceDefinition message yourself. There's no actual documented exampes on that. Basically, you write an extension method on IHas or IUses, you cast to IFluentTarget, this gives you the repository of configuration. You can then add a ResourceDefinition which contains the resource type and associated uris / handlers.
________________________________________
From: open...@googlegroups.com [open...@googlegroups.com] on behalf of Alec [alec...@gmail.com]
Sent: 08 December 2011 02:33
To: OpenRasta
Subject: [openrasta] Re: How to register resources at run time?