Table of Contents

Class LsnExtensions

Namespace
Excalibur.Cdc.SqlServer
Assembly
Excalibur.Cdc.SqlServer.dll

Extension methods for working with SQL Server Change Data Capture LSN (Log Sequence Number) values.

public static class LsnExtensions
Inheritance
LsnExtensions
Inherited Members

Methods

ByteArrayToHex(byte[])

Converts a byte array to a hexadecimal string representation.

public static string ByteArrayToHex(this byte[] bytes)

Parameters

bytes byte[]

The byte array to convert.

Returns

string

A hexadecimal string representation of the byte array.

CompareLsn(byte[], byte[])

Compares two LSN values for ordering.

public static int CompareLsn(this byte[] lsn1, byte[] lsn2)

Parameters

lsn1 byte[]

The first LSN value.

lsn2 byte[]

The second LSN value.

Returns

int

A negative value if lsn1 is less than lsn2, zero if they are equal, or a positive value if lsn1 is greater than lsn2.