public InboxPersister(string sourceKey, string destinationKey, Func <SqlConnection> connectionFactory) { linkStateTable = new LinkStateTable(destinationKey); this.sourceKey = sourceKey; this.destinationKey = destinationKey; this.connectionFactory = connectionFactory; }
public async Task Uninstall(string sourceKey, SqlConnection conn, SqlTransaction trans) { var linkStateTable = new LinkStateTable(destinationKey); await linkStateTable.Drop(conn, trans).ConfigureAwait(false); await new InboxTable(InboxTable.Left(sourceKey, destinationKey)).Drop(conn, trans).ConfigureAwait(false); await new InboxTable(InboxTable.Right(sourceKey, destinationKey)).Drop(conn, trans).ConfigureAwait(false); }