示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeviceController"/> class.
 /// </summary>
 /// <param name="deviceRules">The device rules.</param>
 /// <param name="iPortRules">The i port rules.</param>
 /// <param name="outPortRules"></param>
 public DeviceController(IDeviceRules deviceRules, IIPortRules iPortRules, IOutPortRules outPortRules)
 {
     _deviceRules = deviceRules;
     _iPortRules = iPortRules;
     _outPortRules = outPortRules;
     _exceptionMessage = "Error while accessing database";
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DeviceController"/> class.
 /// </summary>
 /// <param name="deviceRules">The device rules.</param>
 /// <param name="iPortRules">The i port rules.</param>
 /// <param name="outPortRules"></param>
 public DeviceController(IDeviceRules deviceRules, IIPortRules iPortRules, IOutPortRules outPortRules)
 {
     _deviceRules      = deviceRules;
     _iPortRules       = iPortRules;
     _outPortRules     = outPortRules;
     _exceptionMessage = "Error while accessing database";
 }