Exemplo n.º 1
0
        public static IADMiniClientAccessServerOrArray FindMiniCasOrArrayWithClientAccess(IFindMiniClientAccessServerOrArray findMiniCasArray, ITopologyConfigurationSession adSession, ADObjectId siteId, ADObjectId preferredServerId)
        {
            ADObjectId adobjectId = SimpleMiniClientAccessServerOrArrayLookup.FindServerIdWithClientAccess(adSession, siteId, preferredServerId);

            if (adobjectId != null)
            {
                return(findMiniCasArray.ReadMiniClientAccessServerOrArrayByObjectId(adobjectId));
            }
            return(null);
        }
Exemplo n.º 2
0
 public IADMiniClientAccessServerOrArray FindMiniClientAccessServerOrArrayWithClientAccess(ADObjectId siteId, ADObjectId preferredServerId)
 {
     return(this.LookupOrFindMiniClientAccessServerOrArray(string.Format("siteid={0}", siteId.ToString()), delegate
     {
         IADMiniClientAccessServerOrArray result = null;
         Exception ex = ADUtils.RunADOperation(delegate()
         {
             result = SimpleMiniClientAccessServerOrArrayLookup.FindMiniCasOrArrayWithClientAccess(this, this.AdSession, siteId, preferredServerId);
         }, 2);
         if (ex != null)
         {
             MiniClientAccessServerOrArrayLookupCache.Tracer.TraceDebug <Exception>((long)this.GetHashCode(), "MiniClientAccessServerOrArrayLookupCache.ReadMiniClientAccessServerOrArrayByObjectId got an exception: {0}", ex);
         }
         return result;
     }));
 }
Exemplo n.º 3
0
 public IADMiniClientAccessServerOrArray FindMiniClientAccessServerOrArrayByLegdn(string serverLegdn)
 {
     return(this.LookupOrFindMiniClientAccessServerOrArray(serverLegdn, () => SimpleMiniClientAccessServerOrArrayLookup.FindMiniCasOrArrayByLegdn(this.cdsAdSession, serverLegdn)));
 }
Exemplo n.º 4
0
 public IADMiniClientAccessServerOrArray FindMiniClientAccessServerOrArrayByFqdn(string serverFqdn)
 {
     return(SimpleMiniClientAccessServerOrArrayLookup.FindMiniCasOrArrayByFqdn(this.cdsAdSession, serverFqdn));
 }
Exemplo n.º 5
0
 public IADMiniClientAccessServerOrArray FindMiniClientAccessServerOrArrayWithClientAccess(ADObjectId siteId, ADObjectId preferredServerId)
 {
     return(SimpleMiniClientAccessServerOrArrayLookup.FindMiniCasOrArrayWithClientAccess(this, this.AdSession, siteId, preferredServerId));
 }