Exemplo n.º 1
0
 public InboxPersister(string sourceKey, string destinationKey, Func <SqlConnection> connectionFactory)
 {
     linkStateTable         = new LinkStateTable(destinationKey);
     this.sourceKey         = sourceKey;
     this.destinationKey    = destinationKey;
     this.connectionFactory = connectionFactory;
 }
Exemplo n.º 2
0
        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);
        }