Home  /  Questions  /  Question



63   95.7
May 12, 2010


Dynamic service registration on broker

Not sure if this is the correct forum to post this on but perhaps you have some patterns to help? I'm looking for an approach for a C# solution that dynamically exposing interfaces for a distributed service via a broker.

Client > Broker (or ESB) > Service

When a service starts up it automatically registers it's interface and endpoint with the broker.  All requests from clients go through the broker to make use of service functionality.

Any suggestions gratefully received,

Steve
 




830   99.9
May 12, 2010
If I understand your requirement correctly, you may want to have a look at MEF  - Microsoft's new Managed Extensibilty Framework.
It has a flexible add-on model using Import and Export attributes.

According to Microsoft: Using MEF, .NET applications can make the shift from being statically compiled to dynamically composed. If you are building extensible applications, extensible frameworks and application extensions, then MEF is for you

Here is a link to codeplex: Managed Extensibility Framework
And here is an article on MEF by it Project Manager: Building Composable Apps in .NET 4 with the Managed Extensibility Framework

I hope this is helpful.