PureCloudRESTService.WebServicesImplementation.readFromFile C# (CSharp) Method

readFromFile() private method

private readFromFile ( string filePath ) : string
filePath string
return string
        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;
            }
        }
    }