Пример #1
0
        /// <summary>
        ///     Raises the <see cref="E:NodeReached" /> event.
        /// </summary>
        /// <param name="e">The <see cref="AliveEventArgs" /> instance containing the event data.</param>
        public virtual void OnReached(ChannelConfigurationResponseEventArgs e)
        {
            try
            {
                this.Logger.LogBegin(this.GetType());
                if (this.EventIsReached == null)
                {
                    return;
                }

                this.EventIsReached.Invoke(this, e);
            }
            catch (Exception exception)
            {
                this.Logger.LogError(exception);
                throw;
            }
            finally
            {
                this.Logger.LogEnd(this.GetType());
            }
        }
Пример #2
0
 /// <summary>
 ///     Handles the EventIsReached event of the ChannelConfigurationResponseEventHandler control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="ChannelConfigurationResponseEventArgs" /> instance containing the event data.</param>
 private void ChannelConfigurationResponseEventHandler_EventIsReached(object sender, ChannelConfigurationResponseEventArgs e)
 {
     try
     {
         this.Logger.LogBegin(this.GetType());
         this.waitForResponse = (int)e.Channel;
     }
     catch (Exception ex)
     {
         this.Logger.LogError(ex);
         throw;
     }
     finally
     {
         this.Logger.LogEnd(this.GetType());
     }
 }