public static CoreProps getCoreProps() { using (StreamReader r = new StreamReader(defaultCorePropsPath)) { string corePropsJson = r.ReadToEnd(); CoreProps corePropsObj = JsonConvert.DeserializeObject <CoreProps>(corePropsJson); return(corePropsObj); } }
public static string getRequestURI() { CoreProps hostPort = getCoreProps(); return("http://" + hostPort.address); }