Renegotiating ContractsPosted: 2013-12-02
Spent a lot of time this past weekend refactoring the code-base to isolate the DataContracts into their own assemblies. The idea is to get the services and proxies to understand each other without having to export meta-data through the Mex endpoint. I had to “invert” a lot of code so that the game-state model classes created their service info instances. All done now (server-side at least), still have to do the proxy/client changes, then the dreaded distributed testing.
While this was on the agenda for awhile, the immediate impetus was the pending addition of DataContracts for animation support, which would be cumbersome to add using the meta-data exchange (Mex) mechanism.
The proxy/client changes won’t be without challenges, as I originally defined partial class additions to the imported WSDL; and these will have to find a new way to get involved in the proxy (MVVM anyone?). I wrote a previous post many moons ago on my proxy-side shift to MVVM style WPF UI, so should be “fun”!