public void Update(ConstraintCheckResultType constraintResult, ConstraintCheckAgent agent, LocalizedString failureReason) { base.CheckExpired(); LegacyResourceHealthMonitor wrappedMonitor = base.GetWrappedMonitor <LegacyResourceHealthMonitor>(); wrappedMonitor.Update(constraintResult, agent, failureReason); }
public void Update(ConstraintCheckResultType constraintResult, ConstraintCheckAgent agent, LocalizedString failureReason) { this.LastUpdateUtc = DateTime.UtcNow; this.constraintResult = constraintResult; this.agent = agent; this.failureReason = failureReason; Guid databaseGuid = (base.Key as LegacyResourceHealthMonitorKey).DatabaseGuid; MrsTracer.ResourceHealth.Debug("ILegacyResourceHealthProvider.Update(): Updating health for Mdb '{0}': Result: '{1}', Agent: '{2}', Reason: '{3}'", new object[] { databaseGuid, constraintResult, this.agent, this.failureReason }); }