Esempio n. 1
0
        /// <summary>Initializes a new instance of the <see cref="EntryPointControllerDescriptionBuilder"/> class.</summary>
        /// <param name="entryPoint">The entry point to be described.</param>
        /// <param name="defaultValueRelationSelector">The default value relation selector.</param>
        public EntryPointControllerDescriptionBuilder(Url entryPoint, IDefaultValueRelationSelector defaultValueRelationSelector) : base(defaultValueRelationSelector)
        {
            if (entryPoint == null)
            {
                throw new ArgumentNullException("entryPoint");
            }

            _entryPoint = entryPoint;
        }
Esempio n. 2
0
        public ControllerDescriptionBuilder(IDefaultValueRelationSelector defaultValueRelationSelector)
        {
            if (defaultValueRelationSelector == null)
            {
                throw new ArgumentNullException("defaultValueRelationSelector");
            }

            _defaultValueRelationSelector = defaultValueRelationSelector;
            _description = new Lazy <ControllerInfo <T> >(BuildDescriptorInternal, LazyThreadSafetyMode.ExecutionAndPublication);
        }