コード例 #1
0
 public IOTerminal(IOptions <IOTerminalOptions> ioTerminalOptions)
 {
     this.ioTerminalOptions = ioTerminalOptions?.Value;
     if (this.ioTerminalOptions.WaitTimeOut == 0)
     {
         this.ioTerminalOptions.WaitTimeOut = 30000;
     }
 }
コード例 #2
0
        public IOTerminalCancelationToken(IOptions <IOTerminalOptions> ioTerminalOptions)
        {
            this.ioTerminalOptions = ioTerminalOptions.Value;

            if (this.ioTerminalOptions.WaitTimeOut == 0)
            {
                this.ioTerminalOptions.WaitTimeOut = 7000;
            }
        }