Skip to content

Instantly share code, notes, and snippets.

@vmussak

vmussak/Program.cs

Created Mar 27, 2018
Embed
What would you like to do?
Program Blazor
using Microsoft.AspNetCore.Blazor.Browser.Rendering;
using Microsoft.AspNetCore.Blazor.Browser.Services;
namespace BlazorExample
{
class Program
{
static void Main(string[] args)
{
var serviceProvider = new BrowserServiceProvider(configure =>
{
// Add any custom services here
});
new BrowserRenderer(serviceProvider).AddComponent<App>("app");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment