Пример #1
0
        internal static object SendWatsonReportGetter(IPropertyBag propertyBag)
        {
            object obj = propertyBag[ADMobileVirtualDirectorySchema.MobileClientFlags];

            if (obj == null)
            {
                return((ADMobileVirtualDirectorySchema.DefaultMobileClientFlags & MobileClientFlagsType.SendWatsonReport) == MobileClientFlagsType.SendWatsonReport);
            }
            MobileClientFlagsType mobileClientFlagsType = (MobileClientFlagsType)obj;

            return((mobileClientFlagsType & MobileClientFlagsType.SendWatsonReport) == MobileClientFlagsType.SendWatsonReport);
        }
Пример #2
0
        internal static object MobileClientCertProvisioningEnabledGetter(IPropertyBag propertyBag)
        {
            object obj = propertyBag[ADMobileVirtualDirectorySchema.MobileClientFlags];

            if (obj == null)
            {
                return(false);
            }
            MobileClientFlagsType mobileClientFlagsType = (MobileClientFlagsType)obj;

            return((mobileClientFlagsType & MobileClientFlagsType.ClientCertProvisionEnabled) == MobileClientFlagsType.ClientCertProvisionEnabled);
        }
Пример #3
0
        internal static object BadItemReportingEnabledGetter(IPropertyBag propertyBag)
        {
            object obj = propertyBag[ADMobileVirtualDirectorySchema.MobileClientFlags];

            if (obj == null)
            {
                return(true);
            }
            MobileClientFlagsType mobileClientFlagsType = (MobileClientFlagsType)obj;

            return((mobileClientFlagsType & MobileClientFlagsType.BadItemReportingEnabled) == MobileClientFlagsType.BadItemReportingEnabled);
        }
Пример #4
0
        internal static object RemoteDocumentsActionForUnknownServersGetter(IPropertyBag propertyBag)
        {
            object obj = propertyBag[ADMobileVirtualDirectorySchema.MobileClientFlags];

            if (obj == null)
            {
                return(RemoteDocumentsActions.Allow);
            }
            MobileClientFlagsType mobileClientFlagsType = (MobileClientFlagsType)obj;

            return(((mobileClientFlagsType & MobileClientFlagsType.RemoteDocumentsActionForUnknownServers) == MobileClientFlagsType.RemoteDocumentsActionForUnknownServers) ? RemoteDocumentsActions.Block : RemoteDocumentsActions.Allow);
        }