public async void SendProxyUsersNotificationsNodeNoticeAsync(byte[] communicationData, long userId, byte[] publicKey, NodeConnection nodeConnection) { try { ProxyUsersNotificationsNodeNotice notice = new ProxyUsersNotificationsNodeNotice(userId, publicKey, communicationData); await SendNoticeToNodeAsync(nodeConnection, notice).ConfigureAwait(false); } catch (Exception ex) { Logger.WriteLog(ex); } }
public ProxyUsersNotificationsNodeNoticeHandler(NodeNotice notice, NodeConnection nodeConnection, IConnectionsService connectionsService) { this.notice = (ProxyUsersNotificationsNodeNotice)notice; this.nodeConnection = nodeConnection; this.connectionsService = connectionsService; }