Example #1
0
        public V SendVoting(T Message, IVote <V> Vote)
        {
            if (OnVoting == null)
            {
                return(Vote.Result);
            }

            OnVoting?.Invoke(Message, Vote);

            return(Vote.Result);
        }
Example #2
0
        public V SendVoting(T Message)
        {
            if (OnVoting == null)
            {
                return(DefaultValue);
            }

            var Vote = VoteCreator();

            OnVoting?.Invoke(Message, Vote);

            return(Vote.Result);
        }