Пример #1
0
        /// <summary>
        /// Determines whether the SCIM feature is supported.
        /// </summary>
        /// <param name="feature">The feature.</param>
        /// <returns><c>true</c> if [the specified feature] is supported; otherwise, <c>false</c>.</returns>
        /// <exception cref="System.ArgumentOutOfRangeException"></exception>
        public bool IsFeatureSupported(ScimFeatureType feature)
        {
            if (!_Features.ContainsKey(feature))
            {
                throw new ArgumentOutOfRangeException();
            }

            return(_Features[feature].Supported);
        }
Пример #2
0
        /// <summary>
        /// Gets the feature.
        /// </summary>
        /// <param name="feature">The feature.</param>
        /// <returns>ScimFeature.</returns>
        /// <exception cref="System.ArgumentOutOfRangeException"></exception>
        public ScimFeature GetFeature(ScimFeatureType feature)
        {
            if (!_Features.ContainsKey(feature))
            {
                throw new ArgumentOutOfRangeException();
            }

            return(_Features[feature]);
        }
Пример #3
0
        /// <summary>
        /// Gets the feature.
        /// </summary>
        /// <typeparam name="TScimFeature">The type of the t scim feature.</typeparam>
        /// <param name="feature">The feature.</param>
        /// <returns>TScimFeature.</returns>
        /// <exception cref="System.ArgumentOutOfRangeException"></exception>
        public TScimFeature GetFeature <TScimFeature>(ScimFeatureType feature)
            where TScimFeature : ScimFeature
        {
            if (!_Features.ContainsKey(feature))
            {
                throw new ArgumentOutOfRangeException();
            }

            return((TScimFeature)_Features[feature]);
        }