PureCloudRESTService.WebServicesImplementation.readFromFile C# (CSharp) 메소드

readFromFile() 개인적인 메소드

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