Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 647247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T21:42:05+00:00 2026-05-13T21:42:05+00:00

I am developing a very basic windows service in C#. Apart from the service

  • 0

I am developing a very basic windows service in C#. Apart from the service I also need to develop a program which will be used to set various parameters for the service.

As the service and program will be running in different processed by different users how do I tell the service that parameters have changed?

One way that I am considering is saving the parameters to a configuration file and then using ExecuteCommand method to indicate that settings have changed. The service will then read them from file.

Another option is to use pipes to send the actual data to service and service takes care of saving to them.

While the first option is easier to write the second one seems to be better.

Any suggestions or any other alternatives?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T21:42:06+00:00Added an answer on May 13, 2026 at 9:42 pm

    I had a small project that kinda did both. Using IPC it transferred settings over to the client, where the client modified the settings and sent them back. When the service received the new settings, it saved the settings using ConfigurationManager and updated itself accordingly. We went through great pains to allow the service to reconfigure without requiring a restart.

    Update To fulfill Giorgi’s request for more info:

    We used Remoting, but you could and probably should use WCF. The positive side effect is you could change the binding to a routable IP and let remote users configure the service, if you wanted. That adds a security consideration, but you can handle that in WCF and remoting as you see fit.

    I believe we could not just send ConfigurationElements or sections over a service, so instead we just created a simple Settings class and passed that back and forth. On the service side, we had the service translate the Settings class into an updated ConfigurationElement and save the config using ConfigurationManager. Worked fine for us, but I could see that being a massive pain if you have lots of configurable elements or complicated config schema. If it starts getting complicated, you might just want to use your own configuration API so you have complete control over types and lifecycle.

    Finally, you need to make sure the part of the service that does the actual work checks for config changes at regular intervals when it’s safe to reconfigure, and that processing that was already underway when configuration started will not be affected by changes. A simple way to do that is have the service stop processing when it receives a signal from client, and resume when the client says it’s done.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing a very basic RoR app that will essentially only be used by
I'm developing this app which as a very basic Ajax form and I'm currently
I'm preparing to develop my very first Windows installer for a game I'm developing.
I'm currently developing a basic Adobe Air Flash Application which will let user's go
Well, I think I have a very basic doubt here: I'm developing an app
Im Developing a web application which is very critical. So authentication has to be
I am very new to android and I am developing this app which allows
I'm developing a program using Windows 7. There are WCF services (soap, rest) that
i am developing a very basic prototype of web search engine and now i
I'm developing a very basic web search engine that has several parts. After retrieving

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.