public static void Config(XmlElement
		    xmlElement, ref LogConfig logConfig, bool compulsory)
        {
            uint uintValue = new uint();
            int intValue = new int();

            Configuration.ConfigBool(xmlElement, "AutoRemove",
                ref logConfig.AutoRemove, compulsory);
            if (Configuration.ConfigUint(xmlElement, "BufferSize",
                ref uintValue, compulsory))
                logConfig.BufferSize = uintValue;
            Configuration.ConfigString(xmlElement, "Dir",
                ref logConfig.Dir, compulsory);
            if (Configuration.ConfigInt(xmlElement, "FileMode",
                ref intValue, compulsory))
                logConfig.FileMode = intValue;
            Configuration.ConfigBool(xmlElement, "ForceSync",
                ref logConfig.ForceSync, compulsory);
            Configuration.ConfigBool(xmlElement, "InMemory",
                ref logConfig.InMemory, compulsory);
            if (Configuration.ConfigUint(xmlElement, "MaxFileSize",
                ref uintValue, compulsory))
                logConfig.MaxFileSize = uintValue;
            Configuration.ConfigBool(xmlElement, "NoBuffer",
                ref logConfig.NoBuffer, compulsory);
            if (Configuration.ConfigUint(xmlElement, "RegionSize",
                ref uintValue, compulsory))
                logConfig.RegionSize = uintValue;
            Configuration.ConfigBool(xmlElement, "ZeroOnCreate",
                ref logConfig.ZeroOnCreate, compulsory);
        }
        public static void Confirm(XmlElement
		    xmlElement, LogConfig logConfig, bool compulsory)
        {
            Configuration.ConfirmBool(xmlElement, "AutoRemove",
                logConfig.AutoRemove, compulsory);
            Configuration.ConfirmUint(xmlElement, "BufferSize",
                logConfig.BufferSize, compulsory);
            Configuration.ConfirmString(xmlElement, "Dir",
                logConfig.Dir, compulsory);
            Configuration.ConfirmInt(xmlElement, "FileMode",
                logConfig.FileMode, compulsory);
            Configuration.ConfirmBool(xmlElement, "ForceSync",
                logConfig.ForceSync, compulsory);
            Configuration.ConfirmBool(xmlElement, "InMemory",
                logConfig.InMemory, compulsory);
            Configuration.ConfirmBool(xmlElement, "LogBlobContent",
                logConfig.LogBlobContent, compulsory);
            Configuration.ConfirmUint(xmlElement, "MaxFileSize",
                logConfig.MaxFileSize, compulsory);
            Configuration.ConfirmBool(xmlElement, "NoBuffer",
                logConfig.NoBuffer, compulsory);
            Configuration.ConfirmUint(xmlElement, "RegionSize",
                logConfig.RegionSize, compulsory);
            Configuration.ConfirmBool(xmlElement, "ZeroOnCreate",
                logConfig.ZeroOnCreate, compulsory);
        }
 public void TestConfig()
 {
     testName = "TestConfig";
     SetUpTest(false);
     /*
      * Configure the fields/properties and see if
      * they are updated successfully.
      */
     LogConfig logConfig = new LogConfig();
     XmlElement xmlElem = Configuration.TestSetUp(testFixtureName, testName);
     Config(xmlElem, ref logConfig, true);
     Confirm(xmlElem, logConfig, true);
 }