CommandStatus ICommandHandler.Operate(AnalogOutputInt16 command, ushort index, OperateType opType)
 {
     lock (mutex)
     {
         return(GetOrElseAndLogAnalog(command.value, index, analogMap, () => proxy.Operate(command, index, opType)));
     }
 }
 CommandStatus ICommandHandler.Select(AnalogOutputInt16 command, ushort index)
 {
     lock (mutex)
     {
         return(GetOrElse(index, analogMap, () => proxy.Select(command, index)));
     }
 }
示例#3
0
 CommandStatus ICommandHandler.DirectOperate(AnalogOutputInt16 command, uint index)
 {
     return status();
 }
示例#4
0
 CommandStatus ICommandHandler.Select(AnalogOutputInt16 command, uint index)
 {
     return status();
 }
示例#5
0
 CommandStatus ICommandHandler.Operate(AnalogOutputInt16 command, ushort index)
 {
     return(CommandStatus.NOT_SUPPORTED);
 }
 CommandStatus ICommandHandler.Select(AnalogOutputInt16 command, ushort index)
 {
     lock (mutex)
     {
         return GetOrElse(index, analogMap, () => proxy.Select(command, index));
     }
 }
 CommandStatus ICommandHandler.Operate(AnalogOutputInt16 command, ushort index, OperateType opType)
 {
     lock (mutex)
     {
         return GetOrElseAndLogAnalog(command.value, index, analogMap, () => proxy.Operate(command, index, opType));
     }
 }
 CommandStatus ICommandHandler.Select(AnalogOutputInt16 command, ushort index)
 {
     return CommandStatus.NOT_SUPPORTED;
 }
 CommandStatus ICommandHandler.Operate(AnalogOutputInt16 command, ushort index, OperateType opType)
 {
     return CommandStatus.NOT_SUPPORTED;
 }