From 523ccc80b900523d65b62e31a95eb8f2565a683b Mon Sep 17 00:00:00 2001 From: Gustau Navarro Date: Wed, 13 Oct 2021 20:17:55 +0200 Subject: [PATCH] Fix documentation --- docs/blazor_local/Quick_start.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/blazor_local/Quick_start.md b/docs/blazor_local/Quick_start.md index 481d983c..2c339237 100644 --- a/docs/blazor_local/Quick_start.md +++ b/docs/blazor_local/Quick_start.md @@ -55,11 +55,12 @@ The steps to build a grid razor page using **GridBlazor** are: 2. You have to register the service in the **Program** class: ```c# - public void ConfigureServices(IServiceCollection services) + public static async Task Main(string[] args) { + var builder = WebAssemblyHostBuilder.CreateDefault(args); ... - services.AddScoped(); + builder.Services.AddScoped(); ... }