コード例 #1
0
        public string[] Get()
        {
            var serverPath = this.config.GetOSVRServerDirectory();

            return(OSVRServer.RunningServerPaths());
        }
コード例 #2
0
        public static string GetOSVRServerDirectory(this IConfiguration config)
        {
            var envValue = config.GetValue <string>("OSVR_SERVER_ROOT", null);

            return(OSVRServer.ParseServerPath(envValue));
        }
コード例 #3
0
        public void Post()
        {
            var serverPath = this.config.GetOSVRServerDirectory();

            OSVRServer.Start(serverPath);
        }
コード例 #4
0
 public void Post()
 {
     OSVRServer.Stop();
 }