public PollingNodeNoticeHandler(NodeNotice notice, NodeConnection nodeConnection, IPollsService pollsService, INodeRequestSender nodeRequestSender)
 {
     this.notice            = (PollingNodeNotice)notice;
     this.nodeConnection    = nodeConnection;
     this.pollsService      = pollsService;
     this.nodeRequestSender = nodeRequestSender;
 }
Exemplo n.º 2
0
 public async void SendPollingNodeNoticeAsync(Guid pollId, long conversationId, ConversationType conversationType, List <byte> optionsId, long votedUserId, List <long> nodesId)
 {
     try
     {
         PollingNodeNotice notice = new PollingNodeNotice(pollId, conversationId, conversationType, optionsId, votedUserId);
         await SendNoticeToNodesAsync(notice, nodesId).ConfigureAwait(false);
     }
     catch (Exception ex)
     {
         Logger.WriteLog(ex);
     }
 }