private string readFromFile(string filePath)
{
try
{
StreamReader sr = new StreamReader(filePath);
string returnVal = sr.ReadToEnd();
return returnVal;
}
catch(Exception ex)
{
EventLog.WriteEntry("PureCloud REST Service", string.Format("Failed to open configuration file <{0}>. Stopping service.", filePath));
throw ex;
}
}
}