Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This function is hosted under joey.castillo@cbsnorthstar.com account


Here is the code:

unmigrated-wiki-markup
using System;
using System.Net;

public

static

void

Run(TimerInfo

myTimer,

TraceWriter

log)


{


log.Info($"Running

function

at:

{DateTime.Now}");

var

services

=

new

string[]{


};

foreach

(var

serviceAddress

in

services)

{ try {


{
try
{
log.Info($"Running

{serviceAddress}

at:

{DateTime.Now}");

HttpWebRequest

service

=

(HttpWebRequest)WebRequest.Create(serviceAddress);


WebResponse

response

=

service.GetResponse();

} catch


}
catch (Exception

ex)

{


{
log.Info($"Error

{serviceAddress}

at:

{DateTime.Now}");

} } }


}
}


}


Image Added