Animatroller.Framework.Expander.Raspberry.CheckIdempotence C# (CSharp) Method

CheckIdempotence() private method

private CheckIdempotence ( OscServer msg ) : bool
msg OscServer
return bool
        private bool CheckIdempotence(OscServer.Message msg)
        {
            return true;

            // We don't have the message id in there any more...
            if (!msg.Data.Any())
                return true;

            string messageId = (string)msg.Data.First();
            log.Trace("Received message id {0}", messageId);

            if (this.lastMessageIds.Contains(messageId))
                return false;

            this.lastMessageIds.Add(messageId);
            if (this.lastMessageIds.Count > 5)
                this.lastMessageIds.RemoveAt(0);

            return true;
        }