internal static LocalizedString GetMachineConfigurationString(ServerConfig machineConfig)
        {
            StringBuilder stringBuilder = new StringBuilder(4);
            string        serverName    = string.Empty;

            if (ReplicationCheckGlobals.Server != null)
            {
                serverName = ReplicationCheckGlobals.Server.Name;
            }
            if (TestReplicationHealth.AreConfigBitsSet(machineConfig, ServerConfig.DagMemberNoDatabases))
            {
                stringBuilder.AppendFormat(TestReplicationHealth.SpaceConcatFormatString, Strings.DagMemberNoDatabasesString(serverName));
            }
            else if (TestReplicationHealth.AreConfigBitsSet(machineConfig, ServerConfig.DagMember))
            {
                stringBuilder.AppendFormat(TestReplicationHealth.SpaceConcatFormatString, Strings.DagMemberString(serverName));
            }
            else
            {
                stringBuilder.AppendFormat(TestReplicationHealth.SpaceConcatFormatString, Strings.StandaloneMailboxString(serverName));
            }
            if (TestReplicationHealth.AreConfigBitsSet(machineConfig, ServerConfig.RcrSource) || TestReplicationHealth.AreConfigBitsSet(machineConfig, ServerConfig.RcrTarget))
            {
                stringBuilder.AppendFormat(TestReplicationHealth.SpaceConcatFormatString, Strings.RcrConfigString(serverName));
            }
            LocalizedString result = new LocalizedString(stringBuilder.ToString());

            return(result);
        }
 private bool AreConfigBitsSet(ServerConfig configBits)
 {
     return(TestReplicationHealth.AreConfigBitsSet(this.m_serverConfigBitfield, configBits));
 }