public AttServerSimulatorConnection(RXDevice remoteDevice, IRXConnectionGroup connectionGroup) { ConnectionGroup = connectionGroup; RemoteRXDevice = remoteDevice; Attributes = new Dictionary <string, byte[]>(); ConnectionState = RXConnectionState.Created; }
public void AddConnection(Dictionary <string, byte[]> connectionMetadata) { var deviceName = Encoding.UTF8.GetString(connectionMetadata["DeviceName"]); var deviceId = new Guid(connectionMetadata["DeviceId"]); var rxDevice = new RXDevice(ConnectionGroup.ConnectionManager, deviceName, deviceId); AttServerSimulatorConnection connection = new AttServerSimulatorConnection(rxDevice, this.ConnectionGroup); foreach (var pair in connectionMetadata) { connection.Attributes.Add(pair.Key, pair.Value); } _ConnectionList.Add(connection); if (Status == RXScannerStatus.Started) { connection.ConnectAsync(); } }
public RXConnectionManager() { LocalRXDevice = new RXDevice(this, Environment.MachineName, Guid.NewGuid()); _RXConnectionGroupList = new List <IRXConnectionGroup>(); _RXConnectionList = new List <IRXConnection>(); }
public async Task SendAsync(RXDevice rxDevice, RXSendMessage rxMessage) { }