Esempio n. 1
0
 internal PgOutputAsyncEnumerable(
     LogicalReplicationConnection connection,
     PgOutputReplicationSlot slot,
     PgOutputReplicationOptions options,
     CancellationToken cancellationToken,
     NpgsqlLogSequenceNumber?walLocation = null)
 {
     _connection            = connection;
     _slot                  = slot;
     _options               = options;
     _baseCancellationToken = cancellationToken;
     _walLocation           = walLocation;
 }
Esempio n. 2
0
 /// <summary>
 /// Creates a new <see cref="PgOutputReplicationSlot"/> instance.
 /// </summary>
 /// <remarks>
 /// This constructor is intended to be consumed by plugins sitting on top of
 /// <see cref="PgOutputReplicationSlot"/>
 /// </remarks>
 /// <param name="slot">The <see cref="PgOutputReplicationSlot"/> from which the new instance should be initialized</param>
 protected PgOutputReplicationSlot(PgOutputReplicationSlot slot)
     : base(slot.OutputPlugin, new ReplicationSlotOptions(slot.Name, slot.ConsistentPoint, slot.SnapshotName))
 {
 }