Пример #1
0
    public async Task DiscoverAsync()
    {
        var discoverPortsFunction = new DiscoverPorts(_protocol);

        await discoverPortsFunction.ExecuteAsync(_portId);

        BuildModes();
    }
Пример #2
0
 public DevicesList(ILegoWirelessProtocol protocol, DiscoverPorts discoverPorts)
 {
     this.protocol      = protocol ?? throw new ArgumentNullException(nameof(protocol));
     this.discoverPorts = discoverPorts ?? throw new ArgumentNullException(nameof(discoverPorts));
 }
Пример #3
0
 public DumpStaticPortInfo(ILegoWirelessProtocol protocol, DiscoverPorts discoverPorts)
 {
     this.protocol      = protocol ?? throw new ArgumentNullException(nameof(protocol));
     this.discoverPorts = discoverPorts ?? throw new ArgumentNullException(nameof(discoverPorts));
 }