public async void SendDeleteUsersNodeNoticeAsync(long userId) { try { DeleteUsersNodeNotice notice = new DeleteUsersNodeNotice(userId, NodeSettings.Configs.Node.Id); await SendNoticeToNodesAsync(notice).ConfigureAwait(false); } catch (Exception ex) { Logger.WriteLog(ex); } }
public DeleteUsersNoticeHandler(CommunicationObject @object, NodeConnection nodeConnection, IDeleteUsersService deleteUsersService) { notice = (DeleteUsersNodeNotice)@object; this.nodeConnection = nodeConnection; this.deleteUsersService = deleteUsersService; }