示例#1
0
 /// <summary>
 /// Constructs a Service1 instance.
 /// </summary>
 public Service1()
 {
     devicesManager = new DevicesManager();
     devicesManager.ConnectAllDevices();
     dataReceiverFactory = new DataReceiverFactory(devicesManager);
 }
 /// <summary>
 /// Constructs a Service1 instance.
 /// </summary>
 /// <param name="devicesManager">Singleton istance of devices manager.</param>
 public DataReceiverFactory(DevicesManager devicesManager)
 {
     this.devicesManager = devicesManager;
 }