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

  • Home
  • SEARCH
  • 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 9305115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T23:51:29+00:00 2026-06-18T23:51:29+00:00

I have function which reads Data out of an Webservice. With that Data i

  • 0

I have function which reads Data out of an Webservice. With that Data i create Bitmaps. I send the Bitmaps to Panels (Displays) which displays the created Bitmaps. Manually its working like charm. What i need now is, that my Application run this function every 5 min automtically in the Backround.

My Application is running under IIS. How can i do that? Can someone help me with that?

  • 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-18T23:51:30+00:00Added an answer on June 18, 2026 at 11:51 pm

    You don’t have to be depended on asp.net project, but you can use Cache Callback to do it.
    I have found a nice approach, to do it.
    actually i don’t remember the link so i’ll give you a code that i use:

    public abstract class Job
    {
        protected Job()
        {
            Run();
        }
    
        protected abstract void Execute();
        protected abstract TimeSpan Interval { get; }
    
        private void Callback(string key, object value, CacheItemRemovedReason reason)
        {
            if (reason == CacheItemRemovedReason.Expired)
            {
                Execute();
                Run();
            }
        }
    
        protected void Run()
        {
            HttpRuntime.Cache.Add(GetType().ToString(), this, null, 
                Cache.NoAbsoluteExpiration, Interval, CacheItemPriority.Normal, Callback);
        }
    }
    
    Here is the implementation
    public class EmailJob : Job
    {
        protected override void Execute()
        {
            // TODO: send email to whole users that are registered 
        }
    
        protected override TimeSpan Interval
        {
            get { return new TimeSpan(0, 10, 0); }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a function(please see code below) which reads some data from the web.
In a function that reads data (data meaning exclusively strings) from disk, which should
I have a function TRANSLATE which reads value from the xml file based on
I have a function which first reads an image from disk, resizes it and
I am implementing a function that reads data from file into a multi-dimensional numpy
i have a .net dll written in c# which reads data off a data
I have a JNI function byte[] read() which reads some bytes from a particular
I have this program which reads data from LBA (logical block address), but everytime
I have a function that processes a given vector, but may also create such
I have a simple webapp using node.js that reads the database and displays this

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.