private void Connection_Notice(object sender, NpgsqlNoticeEventArgs e) { var listen = this.Listen; if (listen != null) { listen(this, e); } }
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); } } }
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); } } }
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); } }
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); }
private void NpgsqlConnection_Notice(object sender, NpgsqlNoticeEventArgs e) { //OnLog(e.Notice.Detail, LogStatus.Aux, null); }
public void Notice(object sender, NpgsqlNoticeEventArgs e) { OnLog(sender, e.Notice.Detail); }
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}");
private static void OnNotice(object sender, NpgsqlNoticeEventArgs e) { Console.WriteLine(e.Notice.MessageText); }