public ChannelUsersNodeNoticeHandler(NodeNotice notice, NodeConnection current, ICreateChannelsService createChannelsService, INodeRequestSender nodeRequestSender, ICrossNodeService crossNodeService) { this.notice = (ChannelUsersNodeNotice)notice; this.current = current; this.createChannelsService = createChannelsService; this.nodeRequestSender = nodeRequestSender; this.crossNodeService = crossNodeService; }
public async void SendChannelUsersNodeNoticeAsync(IEnumerable <ChannelUserVm> channelUsers, long requestorId, ChannelVm channel) { try { ChannelUsersNodeNotice notice = new ChannelUsersNodeNotice(channelUsers, requestorId, channel.ChannelId.GetValueOrDefault()); await SendNoticeToNodesAsync(notice).ConfigureAwait(false); } catch (Exception ex) { Logger.WriteLog(ex); } }