예제 #1
0
        /// <summary>
        /// Retrieves the disabled features.
        /// </summary>
        /// <returns>An enumeration of feature descriptors for the disabled features.</returns>
        public IEnumerable <FeatureDescriptor> GetDisabledFeatures()
        {
            var currentShellDescriptor = _shellDescriptorManager.GetShellDescriptor();

            return(_extensionManager.DisabledFeatures(currentShellDescriptor));
        }
예제 #2
0
        /// <summary>
        /// Retrieves the disabled features.
        /// </summary>
        /// <returns>An enumeration of feature descriptors for the disabled features.</returns>
        public async Task <IEnumerable <FeatureDescriptor> > GetDisabledFeaturesAsync()
        {
            var currentShellDescriptor = await _shellDescriptorManager.GetShellDescriptorAsync();

            return(_extensionManager.DisabledFeatures(currentShellDescriptor));
        }