**** Merged from MCS ****
[mono-project.git] / mcs / class / Npgsql / Npgsql / NpgsqlNotificationEventArgs.cs
blobf0e90534a0806428ecc692a1418a675566bac370
1 // Npgsql.NpgsqlNotificationEventArgs.cs
2 //
3 // Author:
4 // Wojtek Wierzbicki
5 //
6 // Copyright (C) 2002 The Npgsql Development Team
7 // npgsql-general@gborg.postgresql.org
8 // http://gborg.postgresql.org/project/npgsql/projdisplay.php
9 //
11 // This library is free software; you can redistribute it and/or
12 // modify it under the terms of the GNU Lesser General Public
13 // License as published by the Free Software Foundation; either
14 // version 2.1 of the License, or (at your option) any later version.
16 // This library is distributed in the hope that it will be useful,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 // Lesser General Public License for more details.
21 // You should have received a copy of the GNU Lesser General Public
22 // License along with this library; if not, write to the Free Software
23 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 using System;
28 namespace Npgsql
30 /// <summary>
31 /// EventArgs class to send Notification parameters.
32 /// </summary>
33 public class NpgsqlNotificationEventArgs : EventArgs
35 /// <summary>
36 /// Process ID of the PostgreSQL backend that sent this notification.
37 /// </summary>
38 public Int32 PID = 0;
40 /// <summary>
41 /// Condition that triggered that notification.
42 /// </summary>
43 public String Condition = null;
45 internal NpgsqlNotificationEventArgs(Int32 nPID, String nCondition)
47 PID = nPID;
48 Condition = nCondition;