Пример #1
0
        private void ReadOnlyOpsStore_FailoverStatusChanged(object sender, FailoverStatusChangedEventArgs e)
        {
            if (!this.isInitialized)
            {
                return;
            }

            if (e.Failing)
            {
                logger.Error("ReadOnly operations store instance failed: {0}.", e.Url);
            }
            else
            {
                logger.Info("ReadOnly operations store instance recovered: {0}.", e.Url);
            }

            this.ApplyRavenConfig();
        }
Пример #2
0
        private void ReadOnlyOpsStore_FailoverStatusChanged(object sender, FailoverStatusChangedEventArgs e)
        {
            if (!this.isInitialized)
            {
                return;
            }

            if (e.Failing)
            {
                logger.Error("ReadOnly operations store instance failed: {0}.", e.Url);
            }
            else
            {
                logger.Info("ReadOnly operations store instance recovered: {0}.", e.Url);
            }

            this.ApplyRavenConfig();
        }