首次上传
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using MECF.Framework.Common.Communications;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.UPS
|
||||
{
|
||||
public abstract class UPSHandler : HandlerBase
|
||||
{
|
||||
public UPSBase Device { get; }
|
||||
|
||||
protected UPSHandler(UPSBase device, string Oid)
|
||||
: base(Oid)
|
||||
{
|
||||
Device = device;
|
||||
}
|
||||
protected UPSHandler(ITAUPS device, List<string> Oid)
|
||||
: base(Oid)
|
||||
{
|
||||
Device = device;
|
||||
}
|
||||
public override bool HandleMessage(MessageBase msg, out bool handled)
|
||||
{
|
||||
var result = msg as UPSMessage;
|
||||
ResponseMessage = msg;
|
||||
handled = true;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user