Пример #1
0
        internal static IADMiniClientAccessServerOrArray FindMiniCasOrArrayByLegdn(IADToplogyConfigurationSession cdsAdSession, string serverLegdn)
        {
            IADMiniClientAccessServerOrArray result = null;
            Exception ex = ADUtils.RunADOperation(delegate()
            {
                bool flag = cdsAdSession.TryFindByExchangeLegacyDN(serverLegdn, out result);
                SimpleMiniClientAccessServerOrArrayLookup.Tracer.TraceDebug <string, bool>(0L, "TryFindByExchangeLegacyDN({0}) returned {1}.", serverLegdn, flag);
                if (!flag)
                {
                    SimpleMiniClientAccessServerOrArrayLookup.Tracer.TraceDebug <string>(0L, "FindMiniCasOrArrayByLegdn: Could not find a MiniServer for the legdn extracted server '{0}'.", serverLegdn);
                }
            }, 2);

            if (ex != null)
            {
                SimpleMiniClientAccessServerOrArrayLookup.Tracer.TraceDebug <Exception>(0L, "SimpleMiniClientAccessServerOrArrayLookup.FindMiniCasOrArrayByLegdn got an exception: {0}", ex);
            }
            return(result);
        }