...
This function is hosted under joey.castillo@cbsnorthstar.com account
Here is the code:
using System.Net;
public
static
void
Run(TimerInfo
myTimer,
TraceWriter
log)
{
log.Info($"Running
function
at:
{DateTime.Now}");
var services = new string[]{
"http://nsoewebservices.cbsnorthstar.com/DataHandlerService/Session/SessionServiceWebBridge.svc?wsdl",
"http://nsoewebservices2.cbsnorthstar.com/DataHandlerService/Session/SessionServiceWebBridge.svc?wsdl",
};
foreach
(var
serviceAddress
in
services)
{
try
{
log.Info($"Running
{serviceAddress}
at:
{DateTime.Now}");
HttpWebRequest service = (HttpWebRequest)WebRequest.Create(serviceAddress);
WebResponse response = service.GetResponse();
}
catch (Exception ex)
{
log.Info($"Error
{serviceAddress}
at:
{DateTime.Now}");
}
}
}