// Token: 0x06000624 RID: 1572 RVA: 0x00021388 File Offset: 0x0001F588
        public override ITopologyConfigurationSession CreateTopologyConfigurationSession(string domainController, bool readOnly, ConsistencyMode consistencyMode, NetworkCredential networkCredential, ADSessionSettings sessionSettings, ConfigScopes configScope, int callerFileLine, string memberName, string callerFilePath)
        {
            ADTopologyConfigurationSession adtopologyConfigurationSession = new ADTopologyConfigurationSession(domainController, readOnly, consistencyMode, networkCredential, sessionSettings, configScope);

            adtopologyConfigurationSession.SetCallerInfo(callerFilePath, memberName, callerFileLine);
            return(adtopologyConfigurationSession);
        }
        // Token: 0x06000621 RID: 1569 RVA: 0x00021318 File Offset: 0x0001F518
        public override ITopologyConfigurationSession CreateTopologyConfigurationSession(ConsistencyMode consistencyMode, ADSessionSettings sessionSettings, int callerFileLine, string memberName, string callerFilePath)
        {
            ADTopologyConfigurationSession adtopologyConfigurationSession = new ADTopologyConfigurationSession(consistencyMode, sessionSettings);

            adtopologyConfigurationSession.SetCallerInfo(callerFilePath, memberName, callerFileLine);
            return(adtopologyConfigurationSession);
        }
Esempio n. 3
0
        // Token: 0x06000206 RID: 518 RVA: 0x00007F5C File Offset: 0x0000615C
        private Dictionary <Guid, string> ExecuteQuery(RequestDetailsLogger logger)
        {
            ADSessionSettings sessionSettings = ADSessionSettings.FromRootOrgScopeSet();
            ADTopologyConfigurationSession adtopologyConfigurationSession = new ADTopologyConfigurationSession(ConsistencyMode.IgnoreInvalid, sessionSettings);
            Stopwatch stopwatch = new Stopwatch();

            stopwatch.Start();
            Server server = adtopologyConfigurationSession.ReadLocalServer();

            Database[] databases = server.GetDatabases();
            stopwatch.Stop();
            logger.ActivityScope.SetProperty(WacRequestHandlerMetadata.MdbCacheReloadTime, stopwatch.ElapsedMilliseconds.ToString());
            logger.ActivityScope.SetProperty(WacRequestHandlerMetadata.MdbCacheSize, databases.Length.ToString());
            Dictionary <Guid, string> dictionary = new Dictionary <Guid, string>(databases.Length);

            foreach (Database database in databases)
            {
                string directoryName = Path.GetDirectoryName(database.EdbFilePath.PathName);
                string value         = Path.Combine(directoryName, "OwaCobalt");
                dictionary.Add(database.Guid, value);
            }
            return(dictionary);
        }