Beispiel #1
0
 private void OnOdbcInfoMessage(OdbcInfoMessageEventArgs e)
 {
     if (InfoMessage != null)
     {
         InfoMessage(this, e);
     }
 }
Beispiel #2
0
 private void OnInfoMessage(OdbcInfoMessageEventArgs args)
 {
     if (null != infoMessageEventHandler)
     {
         try {
             infoMessageEventHandler(this, args);
         }
         catch (Exception e) {
             //
             if (!ADP.IsCatchableOrSecurityExceptionType(e))
             {
                 throw;
             }
             ADP.TraceExceptionWithoutRethrow(e);
         }
     }
 }
        /// <summary>
        /// Extends BeginInvoke so that when a state object is not needed, null does not need to be passed.
        /// <example>
        /// odbcinfomessageeventhandler.BeginInvoke(sender, e, callback);
        /// </example>
        /// </summary>
        public static IAsyncResult BeginInvoke(this OdbcInfoMessageEventHandler odbcinfomessageeventhandler, Object sender, OdbcInfoMessageEventArgs e, AsyncCallback callback)
        {
            if(odbcinfomessageeventhandler == null) throw new ArgumentNullException("odbcinfomessageeventhandler");

            return odbcinfomessageeventhandler.BeginInvoke(sender, e, callback, null);
        }
Beispiel #4
0
		private void OnOdbcInfoMessage (OdbcInfoMessageEventArgs e)
		{
			if (InfoMessage != null)
				InfoMessage (this, e);
		}
 private void OnInfoMessage(OdbcInfoMessageEventArgs args) {
     if (null != infoMessageEventHandler) {
         try {
             infoMessageEventHandler(this, args);
         }
         catch (Exception e) {
             // 
             if (!ADP.IsCatchableOrSecurityExceptionType(e)) {
                 throw;
             }
             ADP.TraceExceptionWithoutRethrow(e);
         }
     }
 }
Beispiel #6
0
 void OdbcDbInfoMessage(object sender, OdbcInfoMessageEventArgs e)
 {
     DbInfoMessage.Append(e.Message);
 }