# Class TestDecodingReplicationSlot

Namespace
  Npgsql.Replication.TestDecoding

Assembly
  Npgsql.dll

Acts as a proxy for a logical replication slot initialized for for the test_decoding logical decoding plugin.

    public class TestDecodingReplicationSlot : LogicalReplicationSlot

Inheritance
  object
  ReplicationSlot
  LogicalReplicationSlot
  TestDecodingReplicationSlot

Inherited Members
  LogicalReplicationSlot.SnapshotName
  LogicalReplicationSlot.OutputPlugin
  LogicalReplicationSlot.ConsistentPoint
  ReplicationSlot.Name
  object.Equals(object)
  object.Equals(object, object)
  object.GetHashCode()
  object.GetType()
  object.MemberwiseClone()
  object.ReferenceEquals(object, object)
  object.ToString()

## Constructors

### TestDecodingReplicationSlot(ReplicationSlotOptions)

Creates a new TestDecodingReplicationSlot instance.

    public TestDecodingReplicationSlot(ReplicationSlotOptions options)

#### Parameters

`options` ReplicationSlotOptions

  The ReplicationSlotOptions representing the existing replication slot

#### Remarks

Create a TestDecodingReplicationSlot instance with this constructor to wrap an existing PostgreSQL replication slot that has been initialized for the test_decoding logical decoding plugin.

### TestDecodingReplicationSlot(string)

Creates a new TestDecodingReplicationSlot instance.

    public TestDecodingReplicationSlot(string slotName)

#### Parameters

`slotName` string

  The name of the existing replication slot

#### Remarks

Create a TestDecodingReplicationSlot instance with this constructor to wrap an existing PostgreSQL replication slot that has been initialized for the test_decoding logical decoding plugin.