/// <summary> /// Initializes a new instance of the <see cref="SuccessfulIndividualHealthCheckResult"/> class. /// </summary> /// <param name="healthCheckName">Name of the health check.</param> /// <param name="healthCheckDescription">The health check description.</param> /// <param name="criticalMarking">The critical marking.</param> /// <param name="elapsedTime">The elapsed time.</param> internal SuccessfulIndividualHealthCheckResult( string healthCheckName, string healthCheckDescription, CriticalMarking criticalMarking, TimeSpan elapsedTime ) : base(healthCheckName, healthCheckDescription, true, criticalMarking, elapsedTime) { }
/// <summary> /// Initializes a new instance of the <see cref="FailedIndividualHealthCheckResult"/> class. /// </summary> /// <param name="healthCheckName">Name of the health check.</param> /// <param name="healthCheckDescription">The health check description.</param> /// <param name="failedReason">The failed reason.</param> /// <param name="criticalMarking">The critical marking.</param> /// <param name="elapsedTime">The elapsed time.</param> internal FailedIndividualHealthCheckResult( string healthCheckName, string healthCheckDescription, string failedReason, CriticalMarking criticalMarking, TimeSpan elapsedTime ) : base(healthCheckName, healthCheckDescription, false, criticalMarking, elapsedTime) { FailedReason = failedReason; }
/// <summary> /// Initializes a new instance of the <see cref="BaseIndividualHealthCheckResult"/> class. /// </summary> /// <param name="healthCheckName">Name of the health check.</param> /// <param name="healthCheckDescription">The health check description.</param> /// <param name="isSucceed">if set to <c>true</c> [is succeed].</param> /// <param name="criticalMarking">The critical marking.</param> /// <param name="elapsedTime">The elapsed time.</param> protected internal BaseIndividualHealthCheckResult( string healthCheckName, string healthCheckDescription, bool isSucceed, CriticalMarking criticalMarking, TimeSpan elapsedTime ) { HealthCheckName = healthCheckName; HealthCheckDescription = healthCheckDescription; IsSucceed = isSucceed; CriticalMarking = criticalMarking; ElapsedTime = elapsedTime; }