public DeleteAllUserMessagesNodeNoticeHandler(NodeNotice notice, NodeConnection nodeConnection, IDeleteMessagesService deleteMessagesService, ILoadUsersService loadUsersService) { this.notice = (DeleteAllUserMessagesNodeNotice)notice; this.nodeConnection = nodeConnection; this.deleteMessagesService = deleteMessagesService; this.loadUsersService = loadUsersService; }
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); } }