public async void SendChannelNodeNoticeAsync(ChannelVm channel, long requestorId, IEnumerable <ChannelUserVm> subscribers) { try { ChannelNodeNotice notice = new ChannelNodeNotice(channel, requestorId, subscribers); await SendNoticeToNodesAsync(notice, channel.NodesId).ConfigureAwait(false); } catch (Exception ex) { Logger.WriteLog(ex); } }
public ChannelNodeNoticeHandler( NodeNotice notice, NodeConnection current, IConversationsNoticeService conversationsNoticeService, ICreateChannelsService createChannelsService, ILoadChannelsService loadChannelsService, ISystemMessagesService systemMessagesService) { this.notice = (ChannelNodeNotice)notice; this.current = current; this.conversationsNoticeService = conversationsNoticeService; this.createChannelsService = createChannelsService; this.loadChannelsService = loadChannelsService; this.systemMessagesService = systemMessagesService; }