Exemplo n.º 1
0
        public static bool IsRunningInExchangeDatacenter(bool defaultValue)
        {
            bool result = defaultValue;

            try
            {
                result = Datacenter.IsMicrosoftHostedOnly(true);
            }
            catch (CannotDetermineExchangeModeException)
            {
            }
            return(result);
        }
Exemplo n.º 2
0
 public static Datacenter.ExchangeSku GetExchangeSku()
 {
     if (Datacenter.IsMicrosoftHostedOnly(true))
     {
         return(Datacenter.ExchangeSku.ExchangeDatacenter);
     }
     if (Datacenter.IsPartnerHostedOnly(true))
     {
         return(Datacenter.ExchangeSku.PartnerHosted);
     }
     if (Datacenter.IsDatacenterDedicated(true))
     {
         return(Datacenter.ExchangeSku.DatacenterDedicated);
     }
     return(Datacenter.ExchangeSku.Enterprise);
 }
Exemplo n.º 3
0
 public static bool IsMultiTenancyEnabled()
 {
     try
     {
         if (Datacenter.IsPartnerHostedOnly(true))
         {
             return(true);
         }
     }
     catch (CannotDetermineExchangeModeException)
     {
     }
     try
     {
         if (Datacenter.IsMicrosoftHostedOnly(true))
         {
             return(true);
         }
     }
     catch (CannotDetermineExchangeModeException)
     {
     }
     return(false);
 }
Exemplo n.º 4
0
 public static bool IsLiveIDForExchangeLogin(bool wrapException)
 {
     return(Datacenter.IsMicrosoftHostedOnly(wrapException));
 }
Exemplo n.º 5
0
 public static bool IsPartnerHostedOnly(bool wrapException)
 {
     return(Datacenter.IsFeatureEnabled(wrapException, new Func <bool>(DatacenterRegistry.IsPartnerHostedOnly)));
 }
Exemplo n.º 6
0
 public static bool IsDatacenterDedicated(bool wrapException)
 {
     return(Datacenter.IsFeatureEnabled(wrapException, new Func <bool>(DatacenterRegistry.IsDatacenterDedicated)));
 }
Exemplo n.º 7
0
 public static bool TreatPreReqErrorsAsWarnings(bool wrapException)
 {
     return(Datacenter.IsFeatureEnabled(wrapException, new Func <bool>(DatacenterRegistry.TreatPreReqErrorsAsWarnings)));
 }