示例#1
0
        private void Connection_Notice(object sender, NpgsqlNoticeEventArgs e)
        {
            var listen = this.Listen;

            if (listen != null)
            {
                listen(this, e);
            }
        }
示例#2
0
        private void Listen(object sender, NpgsqlNoticeEventArgs e)
        {
            if (e.Notice.Severity.ToUpperInvariant().Equals("INFO"))
            {
                MixERPPGEventArgs args = new MixERPPGEventArgs(e.Notice.Message, e.Notice.Detail, 0);

                var notificationReceived = this.NotificationReceived;

                if (notificationReceived != null)
                {
                    notificationReceived(this, args);
                }
            }
        }
示例#3
0
        private void Connection_Notice(object sender, NpgsqlNoticeEventArgs e)
        {
            var notificationReceived = this.NotificationReceived;

            if (notificationReceived != null)
            {
                if (e.Notice != null)
                {
                    var args = new EodEventArgs(e.Notice.Message, e.Notice.Detail);

                    notificationReceived(this, args);
                }
            }
        }
示例#4
0
        private void Connection_Notice(object sender, NpgsqlNoticeEventArgs e)
        {
            EventHandler <DbNotificationArgs> listen = this.Listen;

            if (listen != null)
            {
                DbNotificationArgs args = new DbNotificationArgs
                {
                    Notice  = e.Notice,
                    Message = e.Notice.Message
                };

                listen(this, args);
            }
        }
示例#5
0
        private void Connection_Notice(object sender, NpgsqlNoticeEventArgs e)
        {
            var listen = this.Listen;

            if (listen == null)
            {
                return;
            }

            var args = new DbNotificationArgs
            {
                Notice     = e.Notice,
                ColumnName = e.Notice.ColumnName
            };

            listen(this, args);
        }
示例#6
0
 private void NpgsqlConnection_Notice(object sender, NpgsqlNoticeEventArgs e)
 {
     //OnLog(e.Notice.Detail, LogStatus.Aux, null);
 }
示例#7
0
 public void Notice(object sender, NpgsqlNoticeEventArgs e)
 {
     OnLog(sender, e.Notice.Detail);
 }
示例#8
0
 private static void conn_Notice(object sender, NpgsqlNoticeEventArgs e)
 {
     Trace.WriteLine("conn_Notice");
 }
 private void LogNotice(object sender, NpgsqlNoticeEventArgs e) => logger.LogDebug($"PGSQL: {e.Notice.MessageText}");
示例#10
0
 private static void OnNotice(object sender, NpgsqlNoticeEventArgs e)
 {
     Console.WriteLine(e.Notice.MessageText);
 }