I am working with a small Client/Server application. I have a flat file on the server - whenever this file is updated I want to update the client UI. I will have a service on the server which will monitor this file and update a DataTable whenever this file
is updated and also raise an event. My client app will update the UI whenever this event is raised.
I just want to make sure that WCF is the way to go - is that right? The first tutorial that I am viewing talks about exposing methods / member functions. Can we also expose properties and events in a similar fashion with WCF? Hopefully it is not too advanced!
Any suggestion will be helpful - if there is a simpler way to do this (without using WCF) - please suggest?
Yes WCF is the way to go. You need to use a Duplex message Pattern. Using this pattern service can send messages back to the client endpoint, providing event-like behavior. Duplex communication occurs when a client connects to a service and provides the
service with a channel on which the service can send messages back to the client. Note that the event-like behavior of duplex services only works within a session.