/
dev-npgsql
/
npgsql
Обзор
Документация
Войти
/
dev-npgsql
/
npgsql
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
v9.0.1
src/Npgsql/NpgsqlNotificationEventArgs.cs
35 строк
1 KB
Shay Rojansky
Remove obsoletions (#5393)
13 ноя 2023, 14:42
Не верифицирован
13 ноя 2023, 14:42
dfa5c16
Код
Авторство
О чём код?
using System; using Npgsql.Internal; namespace Npgsql; /// <summary> /// Provides information on a PostgreSQL notification. Notifications are sent when your connection has registered for /// notifications on a specific channel via the LISTEN command. NOTIFY can be used to generate such notifications, /// allowing for an inter-connection communication channel. /// </summary> public sealed class NpgsqlNotificationEventArgs : EventArgs { /// <summary> /// Process ID of the PostgreSQL backend that sent this notification. /// </summary> // ReSharper disable once InconsistentNaming public int PID { get; } /// <summary> /// The channel on which the notification was sent. /// </summary> public string Channel { get; } /// <summary> /// An optional payload string that was sent with this notification. /// </summary> public string Payload { get; } internal NpgsqlNotificationEventArgs(NpgsqlReadBuffer buf) { PID = buf.ReadInt32(); Channel = buf.ReadNullTerminatedString(); Payload = buf.ReadNullTerminatedString(); } }