Jump to content
Xtreme .Net Talk

Is there a ".NET" way of notifying all other running instances of my app?


Recommended Posts

Posted

I want to be able to send a notification to all other running instances of my .NET app whenever its options are changed, so the other instances can reload them.

 

If I don't mind using the win32 api, this is really easy. All I have to do is call RegisterWindowMessage, then call another api function to broadcast the message to all windows, and then I could override WndProc in my form to receive it.

 

But I'm wondering if there's something built into the .NET Framework to handle this, or at least somehow get the same effect. I'm doubting it, but I decided to ask anyway, just in case..

Posted
The typical answer to this sort of question is remoting. Quite what pattern you would use to achieve your desired functionality i've no idea but in theory you get all your instances to listen to a single channel or published object and signal events through it.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...