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