Esempio n. 1
0
        public void Update(ConstraintCheckResultType constraintResult, ConstraintCheckAgent agent, LocalizedString failureReason)
        {
            base.CheckExpired();
            LegacyResourceHealthMonitor wrappedMonitor = base.GetWrappedMonitor <LegacyResourceHealthMonitor>();

            wrappedMonitor.Update(constraintResult, agent, failureReason);
        }
Esempio n. 2
0
        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
            });
        }