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 6074227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:21:31+00:00 2026-05-23T10:21:31+00:00

We have a solution written by an outside contractor whereby a .net Windows Service

  • 0

We have a solution written by an outside contractor whereby a .net Windows Service runs continually, monitoring the system time, and, during the night, when there is very little activity, executes a long task, signals when the task has completed, then returns to monitoring the time until the next night.

There is currently no way to monitor or query the status of the process being run by the service, though we can query the service itself to see whether it is being run by Windows, or not.

In the event of a failure, the contractor provided us with a separate executable which can also run the same task.

The problem is, there is no way to know whether the service is currently executing the long task, and it is simply incomplete, or whether it has entered some kind of failure state, meaning that the standalone executable might easily be run in error, because the service is still processing the task.

Ultimately I would like to be able to send queries to the service, find out its state, and give it instructions while it is running.

What method should I use to start sending and receiving these messages?

  • 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-23T10:21:32+00:00Added an answer on May 23, 2026 at 10:21 am

    There are several methods of Inter-process communication available to you, the most obvious choices that spring to mind are Named Pipes or Sockets.

    Either of those would work fine, however rather than trying to implement these directly I would instead recommend that you host a WCF Service (inside the Windows service) and use this for interprocess communication.

    WCF Services can be seamlessly configured to use either Sockets or Named Pipes (as well as a range of less suitable options) as the underlying transport mechanism, as well as simplifying the development of IPC (Inter Process Communication) systems.

    There is a wealth of information on WCF Services and how to implement a WCF Service on the web – just try Google.

    (If for some reason you are using .Net 2.0 instead of .Net 3.5 or above then you should instead look at .Net Remoting – it is essentially the predecessor to WCF and works in a completely different way, however basically achieves the same thing).

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

Sidebar

Related Questions

No related questions found

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.