Show / Hide Table of Contents

Class BlazorWebViewHost

A class that initializes Blazor using the specified IBlazorWebView implementation.

Inheritance
System.Object
BlazorWebViewHost
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 static class BlazorWebViewHost

Methods

| Improve this Doc View Source

Run<TStartup>(IBlazorWebView, String, ResolveWebResourceDelegate)

Runs Blazor using the specified IBlazorWebView implementation, using the path to the index.html host file and optionally a delegate to resolve the normal (non framework) resources.

Declaration
public static IDisposable Run<TStartup>(IBlazorWebView blazorWebView, string hostHtmlPath, ResolveWebResourceDelegate defaultResolveDelegate = null)
Parameters
Type Name Description
IBlazorWebView blazorWebView

An IBlazorWebView implementation.

System.String hostHtmlPath

The specified oath to the index.html file.

ResolveWebResourceDelegate defaultResolveDelegate

An optional delegate to resolve non framework resources.

Returns
Type Description
System.IDisposable

An System.IDisposable instance that can be used to cleanup Blazor.

Type Parameters
Name Description
TStartup

A startup class.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX