예제 #1
0
파일: Notificator.cs 프로젝트: lanicon/Styx
        public V SendVoting(T Message, IVote <V> Vote)
        {
            if (OnVoting == null)
            {
                return(Vote.Result);
            }

            OnVoting?.Invoke(Message, Vote);

            return(Vote.Result);
        }
예제 #2
0
파일: Notificator.cs 프로젝트: lanicon/Styx
        public V SendVoting(T Message)
        {
            if (OnVoting == null)
            {
                return(DefaultValue);
            }

            var Vote = VoteCreator();

            OnVoting?.Invoke(Message, Vote);

            return(Vote.Result);
        }