Class ApplicationBuilder
Application builder class for blazor applications.
Inheritance
System.Object
ApplicationBuilder
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: BlazorWebView
Assembly: BlazorWebView.dll
Syntax
public class ApplicationBuilder
Constructors
| Improve this Doc View SourceApplicationBuilder(IServiceProvider)
Initializes a new instance of the ApplicationBuilder class.
Declaration
public ApplicationBuilder(IServiceProvider services)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | services | The service collection to use. |
Properties
| Improve this Doc View SourceEntries
Gets a list of component entries with associated dom selectors.
Declaration
public List<(Type componentType, string domElementSelector)> Entries { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<System.ValueTuple<System.Type, System.String>> |
Services
Gets the list of services.
Declaration
public IServiceProvider Services { get; }
Property Value
Type | Description |
---|---|
System.IServiceProvider |
Methods
| Improve this Doc View SourceAddComponent(Type, String)
Adds a component to the list of Entries.
Declaration
public void AddComponent(Type componentType, string domElementSelector)
Parameters
Type | Name | Description |
---|---|---|
System.Type | componentType | The type of the component to replace the content inside the html with. |
System.String | domElementSelector | The selector to select the element in the DOM. |
AddComponent<T>(String)
Adds the specified component to the list of component entries to replace in html.
Declaration
public void AddComponent<T>(string domElementSelector)
where T : IComponent
Parameters
Type | Name | Description |
---|---|---|
System.String | domElementSelector | The selector to select the element in the DOM. |
Type Parameters
Name | Description |
---|---|
T | The type of the component to replace the content inside the html with. |