예제 #1
0
 /// <summary>
 ///     Применение конфигурации
 /// </summary>
 /// <param name="configuration">конфигурация</param>
 /// <returns></returns>
 public bool ApplyConfiguration(ConnectConfiguration configuration)
 {
     SetPort(configuration.PortName, configuration.BaudRate);
     return(true);
 }
예제 #2
0
        public Modem(ILogger logService, ConnectConfiguration configurationService)
        {
            var configuration = configurationService;

            SetPort(configuration.PortName, configuration.BaudRate);
        }