Esempio n. 1
0
 public static void AutoDiscoverControls(this DotvvmMarkupConfiguration configuration, IControlRegistrationStrategy strategy)
 {
     foreach (var c in strategy.GetControls())
     {
         configuration.Controls.Add(c);
     }
 }
Esempio n. 2
0
		/// <summary>
		/// Registers all controls discovered by specified <see cref="IControlRegistrationStrategy"/> in the <see cref="DotvvmMarkupConfiguration"/>.
		/// </summary>
		/// <param name="strategy">A strategy that provides list of control configurations.</param>
		public static void AutoDiscoverControls(this DotvvmMarkupConfiguration configuration, IControlRegistrationStrategy strategy)
		{
			configuration.Controls.AddRange(strategy.GetControls());
		}
Esempio n. 3
0
 /// <summary>
 /// Registers all controls discovered by specified <see cref="IControlRegistrationStrategy"/> in the <see cref="DotvvmMarkupConfiguration"/>.
 /// </summary>
 /// <param name="strategy">A strategy that provides list of control configurations.</param>
 public static void AutoDiscoverControls(this DotvvmMarkupConfiguration configuration, IControlRegistrationStrategy strategy)
 {
     configuration.Controls.AddRange(strategy.GetControls());
 }