Пример #1
0
        /// <summary>
        /// Triggers the HealthzRequested event.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="Uhuru.Utilities.HealthzRequestEventArgs"/> instance containing the event data.</param>
        /// <returns>A string that contains the requested message.</returns>
        private string TriggerHealthz(object sender, HealthzRequestEventArgs e)
        {
            if (this.HealthzRequested != null)
            {
                this.HealthzRequested(sender, e);
            }

            if (e != null)
            {
                return(e.HealthzMessage);
            }
            else
            {
                return(string.Empty);
            }
        }
Пример #2
0
 /// <summary>
 /// Handles the HealthzRequested event of the HttpMonitoringServer control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="Uhuru.Utilities.HealthzRequestEventArgs"/> instance containing the event data.</param>
 private void HttpMonitoringServer_HealthzRequested(object sender, HealthzRequestEventArgs e)
 {
     e.HealthzMessage = this.Healthz;
 }
Пример #3
0
        /// <summary>
        /// Triggers the HealthzRequested event.
        /// </summary>
        /// <param name="sender">The sender.</param>
        /// <param name="e">The <see cref="Uhuru.Utilities.HealthzRequestEventArgs"/> instance containing the event data.</param>
        /// <returns>A string that contains the requested message.</returns>
        private string TriggerHealthz(object sender, HealthzRequestEventArgs e)
        {
            if (this.HealthzRequested != null)
            {
                this.HealthzRequested(sender, e);
            }

            if (e != null)
            {
                return e.HealthzMessage;
            }
            else
            {
                return string.Empty;
            }
        }