private static void InitializeConnections(DeviceInfo device, string connection) { if (string.IsNullOrWhiteSpace(connection)) { FailDevice(device.Name, CONNECTION_NODE); } device.AddConnection(connection); }
private static void InitializeConnections(DeviceInfo device, IDictionary <string, dynamic> connections) { if (connections == null) { FailDevice(device.Name, CONNECTION_NODE); } foreach (var container in connections.Keys) { var conDict = connections[container]; device.AddConnection(container, conDict); } }