The app with WCF is easy to mess up your services on personal services through the app.config or code (behavioral configuration By using this) I can not understand how I can do this in the castle.
In the castle, I know how to impose all my services in this container with the code:
var throttle = new service trafficking () {MaxConvertant call = 2 };
Container Registration (Component & lt; IServiceBehavior & gt; (.). (Throttle));
The problem with this code applies to all services registered in this container.
How can I impose every service on a personal basis in Castle Windsor?
Apply Desecepatches ()
method is called every time when it If the behavior is wired for service, you can write code inside this event to inspect the service item and apply conditional behavior or not. So it calls this method for every service, but will not do anything for those services that you do not want to implement this behavior.
Less than that, I have not found another way.
No comments:
Post a Comment