File: RootComponentsCollection.cs
Web Access
Project: src\src\BlazorWebView\src\Maui\Microsoft.AspNetCore.Components.WebView.Maui.csproj (Microsoft.AspNetCore.Components.WebView.Maui)
using System.Collections.ObjectModel;
using Microsoft.AspNetCore.Components.Web;
 
namespace Microsoft.AspNetCore.Components.WebView.Maui
{
	/// <summary>
	/// A collection of <see cref="RootComponent"/> items.
	/// </summary>
	public class RootComponentsCollection : ObservableCollection<RootComponent>, IJSComponentConfiguration
	{
		/// <summary>
		/// Initializes a new instance of <see cref="RootComponentsCollection"/>.
		/// </summary>
		/// <param name="jsComponents">Configuration to enable JS component support.</param>
		public RootComponentsCollection(JSComponentConfigurationStore jsComponents)
		{
			JSComponents = jsComponents;
		}
 
		/// <inheritdoc />
		public JSComponentConfigurationStore JSComponents { get; }
	}
}