Esempio n. 1
0
        internal static SIPFEServerConfiguration Find(Server server, IConfigurationSession adSession)
        {
            if (server == null || adSession == null)
            {
                return(null);
            }
            ObjectId rootId = SIPFEServerConfiguration.GetRootId(server);

            if (rootId == null)
            {
                return(null);
            }
            SIPFEServerConfiguration[] array = adSession.Find <SIPFEServerConfiguration>(rootId as ADObjectId, QueryScope.OneLevel, null, null, 2);
            if (array == null || array.Length <= 0)
            {
                return(null);
            }
            return(array[0]);
        }
Esempio n. 2
0
        internal static SIPFEServerConfiguration Find()
        {
            IConfigurationSession tenantOrTopologyConfigurationSession = DirectorySessionFactory.Default.GetTenantOrTopologyConfigurationSession(ConsistencyMode.IgnoreInvalid, ADSessionSettings.FromRootOrgScopeSet(), 563, "Find", "f:\\15.00.1497\\sources\\dev\\data\\src\\directory\\SystemConfiguration\\SIPFEServerConfiguration.cs");

            return(SIPFEServerConfiguration.Find(LocalServer.GetServer(), tenantOrTopologyConfigurationSession));
        }