Esempio n. 1
0
        public static string read(int timeoutMilliseconds)
        {
            using (var readLine = new ReadLineTimeout())
            {
                readLine._backgroundResponseReset.Set();

                return(readLine._foregroundResponseReset.WaitOne(timeoutMilliseconds) ?
                       readLine._input
                           : null);
            }
        }
Esempio n. 2
0
        public static string read(int timeoutMilliseconds)
        {
            using (var readLine = new ReadLineTimeout())
            {
                readLine._backgroundResponseReset.Set();

                return readLine._foregroundResponseReset.WaitOne(timeoutMilliseconds) ?
                           readLine._input
                           : null;
            }
        }