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

GetOrElseAndLogAnalog() private method

private GetOrElseAndLogAnalog ( double value, ushort index, CommandStatus>.IDictionary dictionary, Func action ) : CommandStatus
value double
index ushort
dictionary CommandStatus>.IDictionary
action Func
return CommandStatus
        CommandStatus GetOrElseAndLogAnalog(double value, ushort index, IDictionary<UInt16, CommandStatus> dictionary, Func<CommandStatus> action)
        {
            var result = GetOrElse(index, dictionary, action);
            if (result == CommandStatus.SUCCESS && AnalogCommandAccepted != null)
            {
                AnalogCommandAccepted(value, index);
            }
            return result;
        }