Click here to Skip to main content
15,888,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I have A Windows Forms application that connects to a WCFHost (Hosted in a Windows Service). The service gets updates from a 3rd party source [I map these data updates to my Datatables] and I get a ChangedEvent back. I am mapping those events back to a datatable for easy push to my Winform from my WCFHost, I can easily update my WinForm binding sources and have changes reflected in the UI.
I am not sure if I am looking at this correctly or not ? Any help is appreciated.


Here is a basic Model
//Initialize the service
Load From Database [tblController]
MapDataTo(3rdPartyObjects) > Subscribe to Be Notified of Changes +=OnThirdPartyNotification
'Configure my third party mapping to get 3rd party notifications.'

// Here is the I Have Been Notified of a change delegate method
OnThirdPartyNotification
MapDataback > To [tblController]
PUSHtoWinFormClients [tblController]
UpdateDB [tblController]
PerformAsyncReadOperation(3rdPartyObjects)> read Complete

// Here is the AsyncReadOperation
OnReadComplete
MapDataback to [tblData]
UpdateDB [tblData]
PUSHtoWinFormClients [tblData]
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900