NetTalk Central

Author Topic: Best Practice for a WebClient  (Read 2879 times)

astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Best Practice for a WebClient
« on: May 23, 2013, 05:20:58 AM »
Hi,

What would be the best practice on a web client that is running as a service 24-7 every 30 secs or so.
Should one do the Init() and Kill() when it fires using the Timer? In the routine I set the Timer to 0{Prop:Timer} = 0
at the beginning of the routine and after it completes the tasks I set the Timer back to 0{Prop:timer} = 3000.


Regards,

Ashley Stahl

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11239
    • View Profile
Re: Best Practice for a WebClient
« Reply #1 on: May 23, 2013, 10:45:05 PM »
no, I don't think you need to call Init and Kill between page requests.


astahl

  • Sr. Member
  • ****
  • Posts: 308
    • View Profile
    • Email
Re: Best Practice for a WebClient
« Reply #2 on: May 24, 2013, 04:16:00 AM »
Thanks Bruce.


Ashley