Friday, February 17, 2012 1:16 AM
I'm implementing a distributed system using SF2 and have a need to execute code on the server after an upload has completed from a client. I'm currently using the standard SyncOrchestrator to trigger the sync and cannot see anyway to trigger the required action. Does anyone have any pointers?
Any help is much appreciated!
Friday, February 17, 2012 1:41 AMModeratoris the code on the server in some kind of service? WCF?
Friday, February 17, 2012 2:27 AM
Multiple applications living on the same server, for now. The current system uses a service bus to pass events through to the other applications which deal with the events as needed. For example, a user created in the admin system/database causes an event to be raised through the bus which propagates it to other systems/dbs. I'd like to try and phase out the bus and use the sync framework to maintain parity. However there are business rules that need to be applied in each system and actions specific to that system need to be executed.
The architecture of the system requires that each app acts in isolation with regards to its own business logic. Ideally I'd like the admin system to create the data, sync it with the other databases and (somehow) pick this up in the other apps and execute logic. This may not even be possible, but if it is I'd be a very happy man!
Friday, February 17, 2012 2:52 AMModerator
Sync Fx has events that get's fired during synching. you can subscribe to the ChangesApplied event for example and trigger the custom rules you want to execute post-synchronization. but that all depends if you can actually invoke those logic from within .NET.
Friday, February 17, 2012 3:02 AMAh ha, those events look interesting! Definately food for thought. Thanks for your help, I'm going to have a play and see what happens!