In the previous post, I showed one way to wire Autofac and WebORB together to achieve AMF-Remoting as well as Dependency Injection. This post builds on the last one by providing an inplementation using Autofac and FlourineFx, the latter is a great open-source .NET AMF Remoting solution.
Here's the the source code for this post so you won't have to figure out the context of the snippets below.
Add the following to your WEB-INF\flex\services-config.xml:To tie FlourineFx to Autofac, we'll create and register our own custom Factory (we have to implement the FlourineFx's IFlexFactory interface) and instantiate our objects by resolving them from the DI Container.As in the previous example using WebORB, you now modify your Flex client to use our new destination and exposed interface like this:If there's an easier way to integrate FlourineFx and Autofac, I'd love to hear it, though the above is quite easy :)
Thursday, October 7, 2010
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment