コード例 #1
0
        public static CoreProps getCoreProps()
        {
            using (StreamReader r = new StreamReader(defaultCorePropsPath))
            {
                string    corePropsJson = r.ReadToEnd();
                CoreProps corePropsObj  = JsonConvert.DeserializeObject <CoreProps>(corePropsJson);

                return(corePropsObj);
            }
        }
コード例 #2
0
        public static string getRequestURI()
        {
            CoreProps hostPort = getCoreProps();

            return("http://" + hostPort.address);
        }