// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using Microsoft.Extensions.DependencyInjection; namespace Microsoft.AspNetCore.Blazor.Hosting { /// /// Abstraction for configuring a Blazor browser-based application. /// public interface IWebAssemblyHostBuilder { /// /// A central location for sharing state between components during the host building process. /// IDictionary Properties { get; } /// /// Adds services to the container. This can be called multiple times and the results will be additive. /// /// The delegate for configuring the that will be used /// to construct the . /// The same instance of the for chaining. IWebAssemblyHostBuilder ConfigureServices(Action configureDelegate); /// /// Run the given actions to initialize the host. This can only be called once. /// /// An initialized IWebAssemblyHost Build(); } }