public async Task DiscoverAsync() { var discoverPortsFunction = new DiscoverPorts(_protocol); await discoverPortsFunction.ExecuteAsync(_portId); BuildModes(); }
public DevicesList(ILegoWirelessProtocol protocol, DiscoverPorts discoverPorts) { this.protocol = protocol ?? throw new ArgumentNullException(nameof(protocol)); this.discoverPorts = discoverPorts ?? throw new ArgumentNullException(nameof(discoverPorts)); }
public DumpStaticPortInfo(ILegoWirelessProtocol protocol, DiscoverPorts discoverPorts) { this.protocol = protocol ?? throw new ArgumentNullException(nameof(protocol)); this.discoverPorts = discoverPorts ?? throw new ArgumentNullException(nameof(discoverPorts)); }