/
dev-npgsql
/
npgsql
Обзор
Документация
Войти
/
dev-npgsql
/
npgsql
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
v6.0.12
src/Npgsql/Replication/ReplicationMessage.cs
32 строки
957 B
Shay Rojansky
Apply file-scoped namespaces for 6.0 (#4298)
28 янв 2022, 15:13
Не верифицирован
28 янв 2022, 15:13
2e0ad2d
Код
Авторство
О чём код?
using NpgsqlTypes; using System; namespace Npgsql.Replication; /// <summary> /// The common base class for all streaming replication messages /// </summary> public abstract class ReplicationMessage { /// <summary> /// The starting point of the WAL data in this message. /// </summary> public NpgsqlLogSequenceNumber WalStart { get; private set; } /// <summary> /// The current end of WAL on the server. /// </summary> public NpgsqlLogSequenceNumber WalEnd { get; private set; } /// <summary> /// The server's system clock at the time this message was transmitted, as microseconds since midnight on 2000-01-01. /// </summary> public DateTime ServerClock { get; private set; } private protected void Populate(NpgsqlLogSequenceNumber walStart, NpgsqlLogSequenceNumber walEnd, DateTime serverClock) { WalStart = walStart; WalEnd = walEnd; ServerClock = serverClock; } }