public static void ConfigureAppSettings(IAppSettingsBuilder builder) { // Main configuration settings builder.Add($"{MainSection}:{nameof(AutoScan)}", "false", "Defines the value indicating if tool should start scan automatically on start."); builder.Add($"{MainSection}:{nameof(AutoRemoveIDs)}", "false", "Defines the value indicating if tool should auto-remove ID codes from list as they are completed."); builder.Add($"{MainSection}:{nameof(StartComPort)}", "0", "Defines the starting COM port number for the scan."); builder.Add($"{MainSection}:{nameof(EndComPort)}", "0", "Defines the ending COM port number for the scan."); builder.Add($"{MainSection}:{nameof(ComPorts)}", "", "Defines the comma separated list of serial COM ports to scan (overrides start/end range)."); builder.Add($"{MainSection}:{nameof(StartIDCode)}", "0", "Defines the starting IEEE C37.118 ID code for the scan."); builder.Add($"{MainSection}:{nameof(EndIDCode)}", "0", "Defines the ending IEEE C37.118 ID code for the scan."); builder.Add($"{MainSection}:{nameof(IDCodes)}", "", "Defines the comma separated list of IEEE C37.118 ID codes to scan (overrides start/end range)."); builder.Add($"{MainSection}:{nameof(Rescan)}", DefaultRescan.ToString(), "Defines the value indicating whether already configured COM ports should be rescanned."); builder.Add($"{MainSection}:{nameof(AutoStartParsingSequenceForScan)}", DefaultAutoStartParsingSequenceForScan.ToString(), "Defines the value indicating whether scan should send automatic parsing sequence to start connection."); builder.Add($"{MainSection}:{nameof(ControllingConnection)}", DefaultControllingConnection.ToString(), "Defines the value indicating whether added device configuration should be set for controlling connection."); builder.Add($"{MainSection}:{nameof(SourceConfig)}", DefaultSourceConfig, "Defines the source configuration file for host application that contains database connection info."); builder.Add($"{MainSection}:{nameof(ResponseTimeout)}", DefaultResponseTimeout.ToString(), "Defines the maximum time, in milliseconds, to wait for a serial response."); builder.Add($"{MainSection}:{nameof(ConfigFrameTimeout)}", DefaultConfigFrameTimeout.ToString(), "Defines the maximum time, in milliseconds, to wait for a configuration frame."); builder.Add($"{MainSection}:{nameof(DisableDataDelay)}", DefaultDisableDataDelay.ToString(), "Defined the delay time, in milliseconds, to wait after sending the DisableRealTimeData command to a device."); // Serial configuration settings builder.Add($"{SerialSection}:{nameof(BaudRate)}", DefaultBaudRate.ToString(), "Defines the serial baud rate. Standard values: 110, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, 115200, 128000, or 256000."); builder.Add($"{SerialSection}:{nameof(DataBits)}", DefaultDataBits.ToString(), "Defines the standard length of data bits per byte. Standard values: 5, 6, 7 or 8."); builder.Add($"{SerialSection}:{nameof(Parity)}", DefaultParity.ToString(), "Defines the parity-checking protocol. Value is one of: Even, Mark, None, Odd or Space."); builder.Add($"{SerialSection}:{nameof(StopBits)}", DefaultStopBits.ToString(), "Defines the standard number of stopbits per byte. Value is one of: None, One, OnePointFive or Two."); builder.Add($"{SerialSection}:{nameof(DtrEnable)}", DefaultDtrEnable.ToString(), "Defines the value that enables the Data Terminal Ready (DTR) signal during serial communication."); builder.Add($"{SerialSection}:{nameof(RtsEnable)}", DefaultRtsEnable.ToString(), "Defines the value indicating whether the Request to Send (RTS) signal is enabled during serial communication."); }
public RunParameterCheckerTests() { var outputs = new List <IPrint> { new ConsoleWriter() }; fakeOutput = new Output(new CompositeWriter(outputs)); appsb = readMock.Object; }
public static void ConfigureAppSettings(IAppSettingsBuilder builder) { // UDP configuration settings builder.Add($"{UDPSection}:{nameof(InterfaceIP)}", DefaultInterfaceIP, "Defines the IP of the network interface to use for the UDP socket. Use 0.0.0.0 to listen on all interfaces with IPv4 or ::0 for all interfaces with IPv6."); // Serial configuration settings builder.Add($"{SerialSection}:{nameof(BaudRate)}", DefaultBaudRate.ToString(), "Defines the serial baud rate. Standard values: 110, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, 115200, 128000, or 256000."); builder.Add($"{SerialSection}:{nameof(DataBits)}", DefaultDataBits.ToString(), "Defines the standard length of data bits per byte. Standard values: 5, 6, 7 or 8."); builder.Add($"{SerialSection}:{nameof(Parity)}", DefaultParity.ToString(), "Defines the parity-checking protocol. Value is one of: Even, Mark, None, Odd or Space."); builder.Add($"{SerialSection}:{nameof(StopBits)}", DefaultStopBits.ToString(), "Defines the standard number of stopbits per byte. Value is one of: None, One, OnePointFive or Two."); builder.Add($"{SerialSection}:{nameof(DtrEnable)}", DefaultDtrEnable.ToString(), "Defines the value that enables the Data Terminal Ready (DTR) signal during serial communication."); builder.Add($"{SerialSection}:{nameof(RtsEnable)}", DefaultRtsEnable.ToString(), "Defines the value indicating whether the Request to Send (RTS) signal is enabled during serial communication."); }
public static void ConfigureAppSettings(IAppSettingsBuilder builder) { // Root configuration settings builder.Add($"{nameof(UseReadKey)}", DefaultUseReadKey.ToString(), "Defines the flag that determines if console uses read key to pause application."); builder.Add($"{nameof(WindowSize)}", DefaultWindowSize.ToString(), "Defines the window size, in milliseconds, overwhich to calculate min, max and avg statistics for HIDS InfluxDB target."); // InfluxDB configuration settings builder.Add($"{InfluxDBSection}:{nameof(TokenID)}", DefaultTokenIP, "Defines the InfluxDB token ID needed for server authentication."); builder.Add($"{InfluxDBSection}:{nameof(PointBucket)}", DefaultPointBucket, "Defines the InfluxDB point bucket."); builder.Add($"{InfluxDBSection}:{nameof(OrganizationID)}", DefaultOrganizationID, "Defines the InfluxDB organization ID."); // STTP configuration settings builder.Add($"{STTPSection}:{nameof(FilterExpression)}", DefaultFilterExpression, "Defines the STTP filter expression for measurement subscription."); }
public RunParameterChecker(Output compositeOutput, IInputResult result, IAppSettingsBuilder appsettingsBuilder) { this.compositeOutput = compositeOutput; this.result = result; this.appsettingsBuilder = appsettingsBuilder; }