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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:04:22+00:00 2026-06-17T16:04:22+00:00

I developed a WCF web service, one of the methods it has, creates a

  • 0

I developed a WCF web service, one of the methods it has, creates a new entry in the database and also changes the state of an entry in a different table.

What I want to achieve is to reset that change of state after a hour has passed. Hear this example so you can understand what I’m trying to do:

A Device can detect changes which are reported as Events, so a Devices is related to various Events and an Event is related to only one Device. When a new Event is inserted into the database, the Device enters into an alert state, so the state column for that Device is changed to Alert, after 1 hour passes the state column for that Device must return to Normal.

I thought of creating a thread, but I’m new to WCF so I don’t know if that consumes a lot of resources, so I thought of using a Worker Role, but that too stays running the whole time the service is up. At best I want to put any process that would handle this to sleep until a Device’s state changes again, but again, I don’t know if having a thread/worker role sleeping consumes a lot of resources.

How can I achieve this kind of behavior without using much resources?

  • 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-06-17T16:04:23+00:00Added an answer on June 17, 2026 at 4:04 pm

    Don’t use a thread – if the application needs to shut down (deployment, fault, …) the thread is lost and so is the work queued on it. Use a persistent timer service like the Windows Task Scheduler or a lib like Quartz.NET.

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

Sidebar

Related Questions

I have created a web service which has a couple of methods developed using
I have developed the WCF web service in vb.net in visual studio 2010 express
Hi We developed web service using WCF service and hosted on Windows 2003 server
I have developed a Web service using WCF Service Application. This service application is
I am using a Java Web Service which is developed by one of our
Using Visual Studio 2010, I developed a WCF service hosted on a web application
I have a WCF service which has two methods exposed: Note: The wcf service
I've recently developed a WCF Facade service. I'm new to WCF and having trouble
I have a WCF Web Service that has no concurrency configuration in the web.config,
Can web service developed in Java can be consumed by WCF web service and

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.