/
dev-npgsql
/
npgsql
Обзор
Документация
Войти
/
dev-npgsql
/
npgsql
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
v6.0.13
src/Npgsql/NpgsqlNotificationEventArgs.cs
47 строк
1 KB
Shay Rojansky
Apply file-scoped namespaces for 6.0 (#4298)
28 янв 2022, 15:13
Не верифицирован
28 янв 2022, 15:13
2e0ad2d
Код
Авторство
О чём код?
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; } /// <summary> /// The channel on which the notification was sent. /// </summary> [Obsolete("Use Channel instead")] public string Condition => Channel; /// <summary> /// An optional payload string that was sent with this notification. /// </summary> [Obsolete("Use Payload instead")] public string AdditionalInformation => Payload; internal NpgsqlNotificationEventArgs(NpgsqlReadBuffer buf) { PID = buf.ReadInt32(); Channel = buf.ReadNullTerminatedString(); Payload = buf.ReadNullTerminatedString(); } }