diff --git a/samples/StandaloneApp/Program.cs b/samples/StandaloneApp/Program.cs index 1244342d11..dea7a06e10 100644 --- a/samples/StandaloneApp/Program.cs +++ b/samples/StandaloneApp/Program.cs @@ -2,6 +2,7 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Microsoft.AspNetCore.Blazor.Browser.Rendering; +using Microsoft.AspNetCore.Blazor.Browser.Services; namespace StandaloneApp { @@ -9,7 +10,12 @@ namespace StandaloneApp { public static void Main(string[] args) { - new BrowserRenderer().AddComponent("app"); + var serviceProvider = new BrowserServiceProvider(configure => + { + // Add any custom services here + }); + + new BrowserRenderer(serviceProvider).AddComponent("app"); } } }