Results 1 to 2 of 2

Thread: Event notification?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2000
    Posts
    1,091

    Event notification?

    I've been learning a lot lately about adding event driven capabilities to custom objects, like the INotifyPropertyChange event which tells every consumer of a particular object that something changed and to update the display.

    However, I want to take this one step further and apply this to a n-tier application. Basically, the middle tier will have a cache of objects. The client tier will consume these objects. Any change made to an object on in the cache on the middle tier will fire an event so all current consumers of that object will receive an event.

    Would this use the TCP class? Any pointers on how to go about this would be appreciated.

    Visual Studio 2010

  2. #2
    PowerPoster
    Join Date
    Jul 2006
    Location
    Maldon, Essex. UK
    Posts
    6,334

    Re: Event notification?

    I suspect the implementation will depend upon the IPC you intend to use to interface the n tiers together. In a networked application it might be natural to use something like Winsock (VB6) or the TCP class for .Net, which can handle asynchronous events. So, when your middle tier detects a change to an objectit can send a message to the other tiers and your code could the perform the necessary refresh.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width