Esempio n. 1
0
 private static void InitializeConnections(DeviceInfo device, string connection)
 {
     if (string.IsNullOrWhiteSpace(connection))
     {
         FailDevice(device.Name, CONNECTION_NODE);
     }
     device.AddConnection(connection);
 }
Esempio n. 2
0
 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);
     }
 }