public async void SendUsersRemovedFromBlacklistNodeNoticeAsync(IEnumerable <long> usersId, long userId) { try { UsersRemovedFromUserBlacklistNodeNotice notice = new UsersRemovedFromUserBlacklistNodeNotice(userId, usersId); await SendNoticeToNodesAsync(notice).ConfigureAwait(false); } catch (Exception ex) { Logger.WriteLog(ex); } }
public UsersRemovedFromUserBlacklistNoticeHandler(NodeNotice notice, NodeConnection current, IUpdateUsersService updateUsersService) { this.notice = (UsersRemovedFromUserBlacklistNodeNotice)notice; this.current = current; this.updateUsersService = updateUsersService; }