none
Scheduled Applications RRS feed

  • Question

  • Hi Team,
                  Need your advice on the best approach to be used while creating an application which is suppose to do an operation every n minutes duration. There are no user interaction and no user inputs required. Now it is a timer based application which runs continuoslly. Could you please advise a better solution.


    Regards,
    Zamsheer
    Wednesday, November 4, 2009 6:52 AM

Answers

  • Hi

    You can use windows service. In the window service should responsible for sending mail after 5 minutes. Here windows service will be an additional component that will be added to your existing application.  Here windows service is totally independent component. It sole responsibility for sending mail every 5 minutes.

    Take Care

    PL
    Helping People To Solve Technical Problems
    • Marked as answer by Zamsheer Wednesday, November 4, 2009 9:51 AM
    Wednesday, November 4, 2009 8:33 AM

All replies

  • Greetings

    What Every Developer Must Know About Multithreaded Apps - VERY IMPORTANT LINK , GO THROUGH IT
    http://msdn.microsoft.com/en-us/magazine/cc163744.aspx

    Take Care

    PL


    Helping People To Solve Technical Problems

    HI PL,
                I know the concept of multi threading. But here what I need is different I think. I have a single application, for example suppose to send mail every 5 minutes. Now this is developed in a .net gui application with a timer set to run 5 minutes. I have put the code to enabel the timer in form load. This timer is eabled for ever. Application runs continuosly till we end the application. I need this to changed with some other alternative. A better approach. Could you please advise.


    Regards,
    Zamsheer
    Wednesday, November 4, 2009 8:03 AM
  • Hi

    You can use windows service. In the window service should responsible for sending mail after 5 minutes. Here windows service will be an additional component that will be added to your existing application.  Here windows service is totally independent component. It sole responsibility for sending mail every 5 minutes.

    Take Care

    PL
    Helping People To Solve Technical Problems
    • Marked as answer by Zamsheer Wednesday, November 4, 2009 9:51 AM
    Wednesday, November 4, 2009 8:33 AM
  • Hi

    You can use windows service. In the window service should responsible for sending mail after 5 minutes. Here windows service will be an additional component that will be added to your existing application.  Here windows service is totally independent component. It sole responsibility for sending mail every 5 minutes.

    Take Care

    PL
    Helping People To Solve Technical Problems

    Hi PL,
                  Windows service was my assumption. Thanks for your help. It will be great if you can share a good link that I can use.


    Regards,
    Zamsgeer
    Wednesday, November 4, 2009 9:50 AM
  • Greetings

    Links for Windows Service are given below

    Understanding Windows Services Architecture
    • http://technet.microsoft.com/en-us/library/aa998749(EXCHG.65).aspx


    Mastering Windows Services
    http://www.codeproject.com/KB/dotnet/WindowsServices.aspx
    Creating a Windows Service with C#
    • http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=300

    Simple Windows Service Sample
    • http://www.codeproject.com/KB/dotnet/simplewindowsservice.aspx

    Creating a Basic Windows Service in C#
    • http://www.codeproject.com/KB/system/WindowsService.aspx

    Creating a Windows service in C#
    • http://www.aspcode.net/Creating-a-Windows-service-in-C.aspx

    Windows Services samples and examples
    • http://www.dotnetspider.com/resources/Category522.aspx
    Hope this helps you out.

    Take Care

    PL
    Helping People To Solve Technical Problems
    Wednesday, November 4, 2009 11:03 AM
  • Greetings

    Links for Windows Service are given below

    Understanding Windows Services Architecture
    • http://technet.microsoft.com/en-us/library/aa998749(EXCHG.65).aspx


    Mastering Windows Services
    http://www.codeproject.com/KB/dotnet/WindowsServices.aspx
    Creating a Windows Service with C#
    • http://www.devhood.com/Tutorials/tutorial_details.aspx?tutorial_id=300

    Simple Windows Service Sample
    • http://www.codeproject.com/KB/dotnet/simplewindowsservice.aspx

    Creating a Basic Windows Service in C#
    • http://www.codeproject.com/KB/system/WindowsService.aspx

    Creating a Windows service in C#
    • http://www.aspcode.net/Creating-a-Windows-service-in-C.aspx

    Windows Services samples and examples
    • http://www.dotnetspider.com/resources/Category522.aspx
    Hope this helps you out.

    Take Care

    PL
    Helping People To Solve Technical Problems

    Thanks a lot!!

    Regards,
    Zamsheer
    Monday, November 9, 2009 4:19 AM