public V SendVoting(T Message, IVote <V> Vote) { if (OnVoting == null) { return(Vote.Result); } OnVoting?.Invoke(Message, Vote); return(Vote.Result); }
public V SendVoting(T Message) { if (OnVoting == null) { return(DefaultValue); } var Vote = VoteCreator(); OnVoting?.Invoke(Message, Vote); return(Vote.Result); }