8 references to AddRootComponentAsync
Microsoft.AspNetCore.Components.WebView (1)
WebViewManager.cs (1)
118
/// <param name="selector">The CSS selector describing where in the page the component was placed. This must exactly match the selector provided on an earlier call to <see cref="
AddRootComponentAsync
(Type, string, ParameterView)"/>.</param>
Microsoft.AspNetCore.Components.WebView.Photino (1)
BlazorWindowRootComponents.cs (1)
38
await _manager.
AddRootComponentAsync
(typeof(TComponent), selector, parameterView);
Microsoft.AspNetCore.Components.WebView.Test (6)
WebViewManagerTests.cs (6)
17
await webViewManager.
AddRootComponentAsync
(typeof(MyComponent), "#app", ParameterView.Empty);
44
await webViewManager.
AddRootComponentAsync
(typeof(MyComponent), "#app", ParameterView.Empty);
59
await webViewManager.
AddRootComponentAsync
(typeof(MyComponent), "#app", ParameterView.Empty);
90
await webViewManager.
AddRootComponentAsync
(typeof(MyComponentUsingScopedAsyncDisposableService), "#app", ParameterView.Empty);
105
await webViewManager.
AddRootComponentAsync
(typeof(MyComponent), arbitraryComponentSelector, ParameterView.Empty);
108
var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await webViewManager.
AddRootComponentAsync
(typeof(MyComponent), arbitraryComponentSelector, ParameterView.Empty));