예제 #1
0
        public static TMConfig setDefaultValues(this TMConfig tmConfig)
        {
            tmConfig.TMLibraryDataVirtualPath = "..\\..";
            tmConfig.XmlLibrariesPath         = "TM_Library";
            tmConfig.DefaultAdminUserName     = "******";
            tmConfig.DefaultAdminPassword     = "******";
            tmConfig.LibrariesUploadedFiles   = "LibrariesUploadedFiles";

            tmConfig.WindowsAuthentication             = new TMConfig.WindowsAuthentication_Config();
            tmConfig.WindowsAuthentication.Enabled     = false;
            tmConfig.WindowsAuthentication.ReaderGroup = "TM_Reader";
            tmConfig.WindowsAuthentication.EditorGroup = "TM_Editor";
            tmConfig.WindowsAuthentication.AdminGroup  = "TM_Admin";

            tmConfig.TMDebugAndDev = new TMConfig.TMDebugAndDev_Config();

            return(tmConfig);
        }
예제 #2
0
        public static TMConfig setDefaultValues(this TMConfig tmConfig)
        {
            tmConfig.Libraries_Disabled       = new List <string>();
            tmConfig.WebSite_IP               = "localhost";
            tmConfig.WebSite_Port             = "12345";
            tmConfig.TMLibraryDataVirtualPath = "..\\..";
            tmConfig.XmlLibrariesPath         = "TM_Library";
            tmConfig.DefaultAdminUserName     = "******";
            tmConfig.DefaultAdminPassword     = "******";
            tmConfig.LibrariesUploadedFiles   = "LibrariesUploadedFiles";

            tmConfig.WindowsAuthentication             = new TMConfig.WindowsAuthentication_Config();
            tmConfig.WindowsAuthentication.Enabled     = false;
            tmConfig.WindowsAuthentication.ReaderGroup = "TM_Reader";
            tmConfig.WindowsAuthentication.EditorGroup = "TM_Editor";
            tmConfig.WindowsAuthentication.AdminGroup  = "TM_Admin";

            return(tmConfig);
        }