/// <summary> /// Triggers the HealthzRequested event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="CloudFoundry.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); } }
/// <summary> /// Triggers the HealthzRequested event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="CloudFoundry.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; } }