public async void SendNewKeysBlockNoticeAsync(IEnumerable <KeyVm> keys, long userId) { try { NewUserKeysNodeNotice notice = new NewUserKeysNodeNotice(keys, userId); await SendNoticeToNodesAsync(notice).ConfigureAwait(false); } catch (Exception ex) { Logger.WriteLog(ex); } }
public NewUserKeysNodeNoticeHandler(NodeNotice notice, NodeConnection current, IKeysService keysService) { this.notice = (NewUserKeysNodeNotice)notice; this.current = current; this.keysService = keysService; }