コード例 #1
0
 public DeleteAllUserMessagesNodeNoticeHandler(NodeNotice notice, NodeConnection nodeConnection, IDeleteMessagesService deleteMessagesService, ILoadUsersService loadUsersService)
 {
     this.notice                = (DeleteAllUserMessagesNodeNotice)notice;
     this.nodeConnection        = nodeConnection;
     this.deleteMessagesService = deleteMessagesService;
     this.loadUsersService      = loadUsersService;
 }
コード例 #2
0
 public async void SendAllMessagesDeletedNodeNoticeAsync(long userId, long?conversationId, ConversationType?conversationType)
 {
     try
     {
         DeleteAllUserMessagesNodeNotice notice = new DeleteAllUserMessagesNodeNotice(userId, conversationId, conversationType);
         await SendNoticeToNodesAsync(notice).ConfigureAwait(false);
     }
     catch (Exception ex)
     {
         Logger.WriteLog(ex);
     }
 }