Automatak.Simulator.DNP3.Commons.ProxyCommandHandler.GetOrElseAndLogBinary C# (CSharp) Method

GetOrElseAndLogBinary() private method

private GetOrElseAndLogBinary ( ControlRelayOutputBlock command, ushort index, CommandStatus>.IDictionary dictionary, Func action ) : CommandStatus
command ControlRelayOutputBlock
index ushort
dictionary CommandStatus>.IDictionary
action Func
return CommandStatus
        CommandStatus GetOrElseAndLogBinary(ControlRelayOutputBlock command, ushort index, IDictionary<UInt16, CommandStatus> dictionary, Func<CommandStatus> action)
        {
            var result = GetOrElse(index, dictionary, action);
            if (result == CommandStatus.SUCCESS && BinaryCommandAccepted != null)
            {
                BinaryCommandAccepted(command, index);
            }
            return result;
        }