public Task <string> CommandAsync(string commandName, params string[] parameters)
        {
            var str = commandName;

            if (parameters != null && parameters.Length > 0)
            {
                str += string.Join(" ", parameters);
            }
            return(_control.WaitForAsync(str, "R:" + commandName));
        }
Exemple #2
0
        public async Task <float> LoadAsync(int vid)
        {
            //retrieve the current level of a specified load
            var ret = await _control.WaitForAsync($"GETLOAD {vid}", $"R:GETLOAD {vid}");

            var(_, percent) = ret.ParseLoad();
            return(percent);
        }