Esempio n. 1
0
 /* ----------------------------------------------------------------- */
 ///
 /// ResolveDependencies
 ///
 /// <summary>
 /// Resolves dependencies of the specified configuration.
 /// </summary>
 ///
 /* ----------------------------------------------------------------- */
 private void ResolveDependencies(DeviceConfig dest) =>
 new DeviceConfigResolver(
     dest,
     Printer.GetElements(),
     PrinterDriver.GetElements(),
     PortMonitor.GetElements()
     ).Invoke();
Esempio n. 2
0
 /* ----------------------------------------------------------------- */
 ///
 /// Convert
 ///
 /// <summary>
 /// Creates a collection of port monitors from the specified
 /// configuration.
 /// </summary>
 ///
 /// <param name="src">Port monitor configuration.</param>
 ///
 /// <returns>Collection of port monitors.</returns>
 ///
 /* ----------------------------------------------------------------- */
 public static IEnumerable <PortMonitor> Convert(this IEnumerable <PortMonitorConfig> src) =>
 src.Convert(PortMonitor.GetElements());