/// <summary>
        /// Initialises a new instance of <see cref="DefaultWidgetHelper"/>.
        /// </summary>
        /// <param name="descriptorProvider">The widget descriptor collection provider.</param>
        /// <param name="invokerFactory">The invoker factory.</param>
        /// <param name="selector">The selector.</param>
        public DefaultWidgetHelper(IWidgetDescriptorCollectionProvider descriptorProvider, IWidgetInvokerFactory invokerFactory, IWidgetSelector selector)
        {
            if (descriptorProvider == null)
            {
                throw new ArgumentNullException(nameof(descriptorProvider));
            }

            if (invokerFactory == null)
            {
                throw new ArgumentNullException(nameof(invokerFactory));
            }

            if (selector == null)
            {
                throw new ArgumentNullException(nameof(selector));
            }

            _descriptorProvider = descriptorProvider;
            _invokerFactory     = invokerFactory;
            _selector           = selector;
        }
        /// <summary>
        /// Initialises a new instance of <see cref="DefaultWidgetHelper"/>.
        /// </summary>
        /// <param name="descriptorProvider">The widget descriptor collection provider.</param>
        /// <param name="invokerFactory">The invoker factory.</param>
        /// <param name="selector">The selector.</param>
        public DefaultWidgetHelper(IWidgetDescriptorCollectionProvider descriptorProvider, IWidgetInvokerFactory invokerFactory, IWidgetSelector selector)
        {
            if (descriptorProvider == null)
            {
                throw new ArgumentNullException(nameof(descriptorProvider));
            }

            if (invokerFactory == null)
            {
                throw new ArgumentNullException(nameof(invokerFactory));
            }

            if (selector == null)
            {
                throw new ArgumentNullException(nameof(selector));
            }

            _descriptorProvider = descriptorProvider;
            _invokerFactory = invokerFactory;
            _selector = selector;
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Initialises a new instance of <see cref="DefaultWidgetSelector"/>.
 /// </summary>
 /// <param name="descriptorProvider">The descriptor provider.</param>
 public DefaultWidgetSelector(IWidgetDescriptorCollectionProvider descriptorProvider)
 {
     _descriptorProvider = descriptorProvider;
 }
 /// <summary>
 /// Initialises a new instance of <see cref="DefaultWidgetSelector"/>.
 /// </summary>
 /// <param name="descriptorProvider">The descriptor provider.</param>
 public DefaultWidgetSelector(IWidgetDescriptorCollectionProvider descriptorProvider)
 {
     _descriptorProvider = descriptorProvider;
 }