PC Review


Reply
Thread Tools Rate Thread

c# updater question

 
 
Maksym Pavlenko
Guest
Posts: n/a
 
      24th Aug 2011
Hello.
I'm working on update system for c# app.
It has two independed modules - exe app itself, which is always running and update service, which sometimes check for the new versions, make backups, downloading archives, etc.
The problem is that I need to correctly kill exe app safely at idle (don't break any operations) from service. How can I do it? Could somebody help me?
Many thanks.
 
Reply With Quote
 
 
 
 
Arne Vajhøj
Guest
Posts: n/a
 
      25th Aug 2011
On 8/24/2011 6:41 AM, Maksym Pavlenko wrote:
> I'm working on update system for c# app.
> It has two independed modules - exe app itself, which is always running and update service, which sometimes check for the new versions, make backups, downloading archives, etc.
> The problem is that I need to correctly kill exe app safely at idle (don't break any operations) from service. How can I do it? Could somebody help me?


There are many ways of doing that.

I would:
- add a global flag exitWhenConvenient in app
- modify app logic to respect
- make app a remoting server exposing the ability to change the flag
- make the updater a remoting client that calls the server
- let the client wait until process is gone

It should not require that much code.

Arne

PS: WCF is better than remoting, but it is also more complex, so
unless you know WCF then I suggest using old fashioned remoting.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
updater Mike Firestein Security Signatures 3 11th Jul 2005 04:00 PM
Updater Hiten Security and Anti-Spyware Community 1 27th Apr 2005 08:41 AM
Updater Joe Spyware Discussion 2 26th Mar 2005 03:08 PM
Application.Blocks Updater Question BuddyWork Microsoft C# .NET 1 17th Mar 2004 07:48 PM
re;updater microsoft Windows XP Performance 1 16th Jan 2004 03:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:33 PM.