public OutboxPersister(int epochSize, string sourceKey, string destinationKey) { linkStateTable = new LinkStateTable(sourceKey); sequence = new OutboxSequence(sourceKey, destinationKey); this.epochSize = epochSize; this.sourceKey = sourceKey; this.destinationKey = destinationKey; }
public async Task Uninstall(string destinationKey, SqlConnection conn, SqlTransaction trans) { var leftTable = new OutboxTable(OutboxTable.Left(sourceKey, destinationKey)); var rightTable = new OutboxTable(OutboxTable.Right(sourceKey, destinationKey)); var sequence = new OutboxSequence(sourceKey, destinationKey); var linkStateTable = new LinkStateTable(sourceKey); await linkStateTable.Drop(conn, trans).ConfigureAwait(false); await leftTable.Drop(conn, trans).ConfigureAwait(false); await rightTable.Drop(conn, trans).ConfigureAwait(false); await sequence.Drop(conn, trans).ConfigureAwait(false); }